Index: head/devel/gindent/Makefile =================================================================== --- head/devel/gindent/Makefile (revision 257067) +++ head/devel/gindent/Makefile (revision 257068) @@ -1,49 +1,49 @@ # ex:ts=8 # New ports collection makefile for: indent # Date created: 28 August 1997 # Whom: Kapil Chowksey # # $FreeBSD$ # PORTNAME= gindent PORTVERSION= 2.2.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= indent DISTNAME= indent-${PORTVERSION} MAINTAINER= johans@FreeBSD.org COMMENT= GNU indent GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --program-prefix=g MAKE_JOBS_UNSAFE= yes .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+=--disable-nls PLIST_SUB+= NLS="@comment " .endif MAN1= gindent.1 INFO= indent .include post-patch: @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ 's|malloc\.h|stdlib.h|g' post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${DOCSDIR} .endif .include Property changes on: head/devel/gindent/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.45 \ No newline at end of property +1.46 \ No newline at end of property Index: head/devel/gindent/files/patch-ab =================================================================== --- head/devel/gindent/files/patch-ab (revision 257067) +++ head/devel/gindent/files/patch-ab (revision 257068) @@ -1,10 +1,11 @@ ---- doc/indent.texinfo.orig Tue May 21 14:40:06 2002 -+++ doc/indent.texinfo Sun Jul 14 23:20:41 2002 +--- doc/indent.texinfo.orig 2008-03-11 19:50:42.000000000 +0100 ++++ doc/indent.texinfo 2010-06-27 16:29:17.000000000 +0200 @@ -13,7 +13,7 @@ @dircategory Indent Code Formatter @direntry -* Indent: (indent). C code formatter. +* GNU indent: (indent). C code formatter. @end direntry + Property changes on: head/devel/gindent/files/patch-ab ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property Index: head/devel/gindent/files/patch-args.c =================================================================== --- head/devel/gindent/files/patch-args.c (revision 257067) +++ head/devel/gindent/files/patch-args.c (revision 257068) @@ -1,188 +1,198 @@ --- src/args.c.orig 2008-03-11 19:50:42.000000000 +0100 -+++ src/args.c 2009-03-08 13:04:43.000000000 +0100 ++++ src/args.c 2010-06-27 16:29:54.000000000 +0200 @@ -163,6 +163,7 @@ static int exp_i = 0; static int exp_il = 0; static int exp_ip = 0; +static int exp_knf = 0; static int exp_kr = 0; static int exp_l = 0; static int exp_lc = 0; @@ -237,6 +238,30 @@ static void usage (void); +#define BSD_PRO_SETTINGS {"orig", PRO_SETTINGS, 0, ONOFF_NA,\ + (int *) "-nbap\0-nbad\0-bbo\0-hnl\0-bc\0-br\0-brs\0-c33\0-cd33\0-cdb\0-ce\0\ +-ci4\0-cli0\0-cp33\0-di16\0-fc1\0-fca\0-i4\0-l75\0-lp\0-npcs\0-nprs\0-psl\0\ +-sc\0-sai\0-saf\0-saw\0-nsob\0-nss\0-ts8\0",\ + &exp_orig} + +#define KNF_PRO_SETTINGS {"knf", PRO_SETTINGS, 0, ONOFF_NA,\ + (int *) "-bad\0-bap\0-nbbb\0-nbc\0-bbo\0-br\0-brs\0-nbs\0-c33\0-cd33\0-cdb\0\ +-ce\0-ci4\0-cli0\0-cp33\0-ncs\0-d0\0-di0\0-ndj\0-nfc1\0-nfca\0-hnl\0-i8\0-ip8\0\ +-l79\0-nlp\0-npcs\0-nprs\0-psl\0-sai\0-saf\0-saw\0-sc\0-nsob\0-nss\0",\ + &exp_knf} + +#define KR_PRO_SETTINGS {"kr", PRO_SETTINGS, 0, ONOFF_NA,\ + (int *) "-nbad\0-bap\0-nbc\0-bbo\0-hnl\0-br\0-brs\0-c33\0-cd33\0\ +-ncdb\0-ce\0-ci4\0-cli0\0-d0\0-di1\0-nfc1\0-i4\0-ip0\0-l75\0-lp\0-npcs\0\ +-nprs\0-npsl\0-sai\0-saf\0-saw\0-cs\0-nsc\0-nsob\0-nfca\0-cp33\0-nss\0",\ + &exp_kr} + +#define GNU_PRO_SETTINGS {"gnu", PRO_SETTINGS, 0, ONOFF_NA,\ + (int *) "-nbad\0-bap\0-bbo\0-hnl\0-nbc\0-bl\0-bls\0-ncdb\0-cs\0-nce\0-di2\0\ +-ndj\0-nfc1\0-i2\0-ip5\0-lp\0-pcs\0-nprs\0-psl\0-nsc\0-sai\0-saf\0-saw\0\ +-nsob\0-bli2\0-cp1\0-nfca\0",\ + &exp_gnu} + #ifdef BERKELEY_DEFAULTS /** @@ -264,63 +289,66 @@ #endif {"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, {"pcs", PRO_BOOL, false, ON, &settings.proc_calls_space, &exp_pcs}, + BSD_PRO_SETTINGS, {"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o}, {"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v}, - {"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut}, - {"nss", PRO_BOOL, false, OFF, &settings.space_sp_semicolon, &exp_ss}, - {"nsob", PRO_BOOL, false, OFF, &settings.swallow_optional_blanklines, &exp_sob}, - {"nsc", PRO_BOOL, true, OFF, &settings.star_comment_cont, &exp_sc}, - {"nsaw", PRO_BOOL, true, OFF, &settings.space_after_while, &exp_saw}, - {"nsai", PRO_BOOL, true, OFF, &settings.space_after_if, &exp_sai}, - {"nsaf", PRO_BOOL, true, OFF, &settings.space_after_for, &exp_saf}, - {"npsl", PRO_BOOL, true, OFF, &settings.procnames_start_line, &exp_psl}, - {"nprs", PRO_BOOL, false, OFF, &settings.parentheses_space, &exp_prs}, + {"nut", PRO_BOOL, false, OFF, &settings.use_tabs, &exp_ut}, + {"nss", PRO_BOOL, true, OFF, &settings.space_sp_semicolon, &exp_ss}, + {"nsob", PRO_BOOL, true, OFF, &settings.swallow_optional_blanklines, &exp_sob}, + {"nsc", PRO_BOOL, false, OFF, &settings.star_comment_cont, &exp_sc}, + {"nsaw", PRO_BOOL, false, OFF, &settings.space_after_while, &exp_saw}, + {"nsai", PRO_BOOL, false, OFF, &settings.space_after_if, &exp_sai}, + {"nsaf", PRO_BOOL, false, OFF, &settings.space_after_for, &exp_saf}, + {"npsl", PRO_BOOL, false, OFF, &settings.procnames_start_line, &exp_psl}, + {"nprs", PRO_BOOL, true, OFF, &settings.parentheses_space, &exp_prs}, {"npro", PRO_IGN, 0, ONOFF_NA, 0, &exp_pro}, #ifdef PRESERVE_MTIME {"npmt", PRO_BOOL, false, OFF, &settings.preserve_mtime, &exp_pmt}, #endif - {"npcs", PRO_BOOL, false, OFF, &settings.proc_calls_space, &exp_pcs}, + {"npcs", PRO_BOOL, true, OFF, &settings.proc_calls_space, &exp_pcs}, {"nlps", PRO_BOOL, false, OFF, &settings.leave_preproc_space, &exp_lps}, {"nlp", PRO_BOOL, true, OFF, &settings.lineup_to_parens, &exp_lp}, - {"nip", PRO_SETTINGS, 0, ONOFF_NA, (int *) "-ip0", &exp_nip}, +- {"nip", PRO_SETTINGS, 0, ONOFF_NA, (int *) "-ip0", &exp_nip}, - {"nhnl", PRO_BOOL, true, OFF, &settings.honour_newlines, &exp_hnl}, ++ {"nip", PRO_SETTINGS, 0, ONOFF_NA, (int *) "-ip0\0", &exp_nip}, + {"nhnl", PRO_BOOL, false, OFF, &settings.honour_newlines, &exp_hnl}, {"nfca", PRO_BOOL, true, OFF, &settings.format_comments, &exp_fca}, {"nfc1", PRO_BOOL, true, OFF, &settings.format_col1_comments, &exp_fc1}, {"neei", PRO_BOOL, false, OFF, &settings.extra_expression_indent, &exp_eei}, - {"ndj", PRO_BOOL, false, OFF, &settings.ljust_decl, &exp_dj}, - {"ncs", PRO_BOOL, true, OFF, &settings.cast_space, &exp_cs}, - {"nce", PRO_BOOL, true, OFF, &settings.cuddle_else, &exp_ce}, + {"ndj", PRO_BOOL, true, OFF, &settings.ljust_decl, &exp_dj}, + {"ncs", PRO_BOOL, false, OFF, &settings.cast_space, &exp_cs}, + {"nce", PRO_BOOL, false, OFF, &settings.cuddle_else, &exp_ce}, {"ncdw", PRO_BOOL, false, OFF, &settings.cuddle_do_while, &exp_cdw}, - {"ncdb", PRO_BOOL, true, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb}, + {"ncdb", PRO_BOOL, false, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb}, {"nbs", PRO_BOOL, false, OFF, &settings.blank_after_sizeof, &exp_bs}, {"nbfda", PRO_BOOL, false, OFF, &settings.break_function_decl_args, &exp_bfda}, {"nbfde", PRO_BOOL, false, OFF, &settings.break_function_decl_args_end, &exp_bfde}, {"nbc", PRO_BOOL, true, ON, &settings.leave_comma, &exp_bc}, - {"nbbo", PRO_BOOL, true, OFF, &settings.break_before_boolean_operator, &exp_bbo}, - {"nbbb", PRO_BOOL, false, OFF, &settings.blanklines_before_blockcomments, &exp_bbb}, + {"nbbo", PRO_BOOL, false, OFF, &settings.break_before_boolean_operator, &exp_bbo}, + {"nbbb", PRO_BOOL, true, OFF, &settings.blanklines_before_blockcomments, &exp_bbb}, {"nbap", PRO_BOOL, false, OFF, &settings.blanklines_after_procs, &exp_bap}, {"nbadp", PRO_BOOL, false, OFF, &settings.blanklines_after_declarations_at_proctop, &exp_badp}, {"nbad", PRO_BOOL, false, OFF, &settings.blanklines_after_declarations, &exp_bad}, {"nbacc", PRO_BOOL, false, OFF, &settings.blanklines_around_conditional_compilation, &exp_bacc}, {"linux", PRO_SETTINGS, 0, ONOFF_NA, LINUX_SETTINGS_STRING, &exp_linux}, {"lps", PRO_BOOL, false, ON, &settings.leave_preproc_space, &exp_lps}, - {"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp}, + {"lp", PRO_BOOL, false, ON, &settings.lineup_to_parens, &exp_lp}, {"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc}, {"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l}, - {"kr", PRO_SETTINGS, 0, ONOFF_NA, KR_SETTINGS_STRING, &exp_kr}, - {"ip", PRO_INT, 4, ONOFF_NA, &settings.indent_parameters, &exp_ip}, - {"i", PRO_INT, 4, ONOFF_NA, &settings.ind_size, &exp_i}, + KR_PRO_SETTINGS, +/* This is now the default. */ + KNF_PRO_SETTINGS, + {"ip", PRO_INT, 8, ONOFF_NA, &settings.indent_parameters, &exp_ip}, + {"i", PRO_INT, 8, ONOFF_NA, &settings.ind_size, &exp_i}, {"il", PRO_INT, DEFAULT_LABEL_INDENT, ONOFF_NA, &settings.label_offset, &exp_il}, {"hnl", PRO_BOOL, true, ON, &settings.honour_newlines, &exp_hnl}, {"h", PRO_FUNCTION, 0, ONOFF_NA, (int *) usage, &exp_version}, - {"gnu", PRO_SETTINGS, 0, ONOFF_NA, GNU_SETTINGS_STRING, &exp_gnu}, - {"fca", PRO_BOOL, true, ON, &settings.format_comments, &exp_fca}, - {"fc1", PRO_BOOL, true, ON, &settings.format_col1_comments, &exp_fc1}, + GNU_PRO_SETTINGS, + {"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca}, + {"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1}, {"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei}, {"dj", PRO_BOOL, false, ON, &settings.ljust_decl, &exp_dj}, - {"di", PRO_INT, 16, ONOFF_NA, &settings.decl_indent, &exp_di}, + {"di", PRO_INT, 0, ONOFF_NA, &settings.decl_indent, &exp_di}, {"d", PRO_INT, 0, ONOFF_NA, &settings.unindent_displace, &exp_d}, - {"cs", PRO_BOOL, true, ON, &settings.cast_space, &exp_cs}, + {"cs", PRO_BOOL, false, ON, &settings.cast_space, &exp_cs}, {"cp", PRO_INT, 33, ONOFF_NA, &settings.else_endif_col, &exp_cp}, {"cli", PRO_INT, 0, ONOFF_NA, &settings.case_indent, &exp_cli}, {"ci", PRO_INT, 4, ONOFF_NA, &settings.continuation_indent, &exp_ci}, @@ -341,12 +369,12 @@ {"bl", PRO_BOOL, true, OFF, &settings.btype_2, &exp_bl}, {"bfda", PRO_BOOL, false, ON, &settings.break_function_decl_args, &exp_bfda}, {"bfde", PRO_BOOL, false, ON, &settings.break_function_decl_args_end, &exp_bfde}, - {"bc", PRO_BOOL, true, OFF, &settings.leave_comma, &exp_bc}, + {"bc", PRO_BOOL, false, OFF, &settings.leave_comma, &exp_bc}, {"bbo", PRO_BOOL, true, ON, &settings.break_before_boolean_operator, &exp_bbo}, {"bbb", PRO_BOOL, false, ON, &settings.blanklines_before_blockcomments, &exp_bbb}, - {"bap", PRO_BOOL, false, ON, &settings.blanklines_after_procs, &exp_bap}, - {"badp", PRO_BOOL, false, ON, &settings.blanklines_after_declarations_at_proctop, &exp_badp}, - {"bad", PRO_BOOL, false, ON, &settings.blanklines_after_declarations, &exp_bad}, + {"bap", PRO_BOOL, true, ON, &settings.blanklines_after_procs, &exp_bap}, + {"badp", PRO_BOOL, true, ON, &settings.blanklines_after_declarations_at_proctop, &exp_badp}, + {"bad", PRO_BOOL, true, ON, &settings.blanklines_after_declarations, &exp_bad}, {"bacc", PRO_BOOL, false, ON, &settings.blanklines_around_conditional_compilation, &exp_bacc}, {"T", PRO_KEY, 0, ONOFF_NA, 0, &exp_T}, {"ppi", PRO_INT, 0, ONOFF_NA, &settings.force_preproc_width, &exp_ppi}, @@ -381,7 +409,7 @@ #endif {"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, {"pcs", PRO_BOOL, true, ON, &settings.proc_calls_space, &exp_pcs}, - {"orig", PRO_SETTINGS, 0, ONOFF_NA, ORIG_SETTINGS_STRING, &exp_orig}, + BSD_PRO_SETTINGS, {"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o}, {"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v}, {"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut}, @@ -425,14 +453,15 @@ {"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp}, {"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc}, {"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l}, - {"kr", PRO_SETTINGS, 0, ONOFF_NA, KR_SETTINGS_STRING, &exp_kr}, + KR_PRO_SETTINGS, + KNF_PRO_SETTINGS, {"il", PRO_INT, DEFAULT_LABEL_INDENT, ONOFF_NA, &settings.label_offset, &exp_il}, {"ip", PRO_INT, 5, ONOFF_NA, &settings.indent_parameters, &exp_ip}, {"i", PRO_INT, 2, ONOFF_NA, &settings.ind_size, &exp_i}, {"hnl", PRO_BOOL, true, ON, &settings.honour_newlines, &exp_hnl}, {"h", PRO_FUNCTION, 0, ONOFF_NA, (int *) usage, &exp_version}, /* This is now the default. */ - {"gnu", PRO_SETTINGS, 0, ONOFF_NA, GNU_SETTINGS_STRING, &exp_gnu}, + GNU_PRO_SETTINGS, {"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca}, {"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1}, {"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei}, @@ -593,6 +622,9 @@ {"blank-lines-after-declarations", "bad"}, {"blank-lines-after-commas", "bc"}, {"blank-before-sizeof", "bs"}, + {"berkeley-kernel-style", "knf"}, + {"berkeley-kernel-normal-form", "knf"}, + {"kernel-normal-form", "knf"}, {"berkeley-style", "orig"}, {"berkeley", "orig"}, {"Bill-Shannon", "bs"}, +@@ -798,7 +830,7 @@ + + if (!found) + { +- DieError(invocation_error, _("%s: unknown option \"%s\"\n"), option_source, option - 1); ++ DieError(invocation_error, _("%s: unknown option \"%s\"\n"), option_source, option - option_length); + } + else + { Property changes on: head/devel/gindent/files/patch-args.c ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property Index: head/devel/gindent/files/patch-doc:Makefile.in =================================================================== --- head/devel/gindent/files/patch-doc:Makefile.in (revision 257067) +++ head/devel/gindent/files/patch-doc:Makefile.in (revision 257068) @@ -1,17 +1,17 @@ --- doc/Makefile.in.orig 2008-03-11 19:54:15.000000000 +0100 -+++ doc/Makefile.in 2009-03-08 13:35:49.000000000 +0100 ++++ doc/Makefile.in 2010-06-27 16:29:17.000000000 +0200 @@ -602,10 +602,10 @@ uninstall-pdf-am uninstall-ps-am -all-local: html -install-data-local: install-html -installdirs-local: installdirs-html -uninstall-local: uninstall-html +all-local: # html +install-data-local: # install-html +installdirs-local: # installdirs-html +uninstall-local: # uninstall-html html: html-$(HTMLSTYLE) install-html: install-html-$(HTMLSTYLE) Property changes on: head/devel/gindent/files/patch-doc:Makefile.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/devel/gindent/files/patch-indent.h =================================================================== --- head/devel/gindent/files/patch-indent.h (revision 257067) +++ head/devel/gindent/files/patch-indent.h (revision 257068) @@ -1,8 +1,14 @@ ---- src/indent.h.orig Thu Nov 16 19:01:04 2000 -+++ src/indent.h Fri Apr 20 01:16:45 2001 -@@ -63 +63 @@ +--- src/indent.h.orig 2008-03-11 19:50:42.000000000 +0100 ++++ src/indent.h 2010-06-27 16:29:17.000000000 +0200 +@@ -135,9 +135,9 @@ + bb_cast + } bb_code_ty; + -#define DEFAULT_RIGHT_MARGIN 78 +#define DEFAULT_RIGHT_MARGIN 79 -@@ -65 +65 @@ + -#define DEFAULT_RIGHT_COMMENT_MARGIN 78 +#define DEFAULT_RIGHT_COMMENT_MARGIN 79 + + #define DEFAULT_LABEL_INDENT -2 + Property changes on: head/devel/gindent/files/patch-indent.h ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/devel/gindent/files/patch-output.c =================================================================== --- head/devel/gindent/files/patch-output.c (revision 257067) +++ head/devel/gindent/files/patch-output.c (revision 257068) @@ -1,11 +1,11 @@ ---- src/output.c.orig Mon May 21 23:45:36 2007 -+++ src/output.c Mon May 21 23:47:36 2007 -@@ -23,7 +23,7 @@ +--- src/output.c.orig 2008-03-11 19:50:42.000000000 +0100 ++++ src/output.c 2010-06-27 16:29:17.000000000 +0200 +@@ -71,7 +71,7 @@ - RCSTAG_CC ("$Id: output.c,v 1.5 2002/12/12 17:36:49 david Exp $"); + RCSTAG_CC ("$Id$"); -static FILE * output = NULL; +FILE * output = NULL; static BOOLEAN inhibited = 0; static buf_break_st_ty * buf_break_list = NULL; Property changes on: head/devel/gindent/files/patch-output.c ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property