Revision
99188
Author
jeremyhu@macports.org
Date
2012-10-28 23:38:55 -0700 (Sun, 28 Oct 2012)

Log Message

indent: Fix build failure, add license

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/dports/devel/indent/Portfile (99187 => 99188)


--- trunk/dports/devel/indent/Portfile	2012-10-29 06:25:59 UTC (rev 99187)
+++ trunk/dports/devel/indent/Portfile	2012-10-29 06:38:55 UTC (rev 99188)
@@ -4,6 +4,7 @@
 
 name            indent
 version         2.2.10
+license         GPL-3
 categories      devel
 maintainers     nomaintainer
 description     C language source code formatting program
@@ -19,13 +20,24 @@
 checksums       md5 be35ea62705733859fbf8caf816d8959 \
                 sha1 20fa8a7a4af6670c3254c8b87020291c3db37ed1 \
                 rmd160 66164db3f28ddc9726a56fb184795a335aac34b0
-configure.args  --mandir=${prefix}/share/man \
-                --infodir=${prefix}/share/info \
-                --program-prefix=gnu
+
+depends_build   port:gperf
 depends_lib     port:gettext port:libiconv
-patchfiles      patch-man__Makefile.in \
+patchfiles      patch-man__Makefile.am \
                 patch-man__texinfo2man.c \
                 patch-src__output.c
+
+post-extract {
+    file delete ${worksrcpath}/src/gperf.c
+    file delete ${worksrcpath}/src/gperf-cc.c
+}
+
+use_autoreconf  yes
+autoreconf.args -fvi
+autoreconf.env  ACLOCAL="aclocal -Iaclocal"
+
+configure.args  --program-prefix=gnu
+
 post-destroot {
     file rename ${destroot}${prefix}/doc ${destroot}${prefix}/share/doc
 }

Added: trunk/dports/devel/indent/files/patch-man__Makefile.am (0 => 99188)


--- trunk/dports/devel/indent/files/patch-man__Makefile.am	                        (rev 0)
+++ trunk/dports/devel/indent/files/patch-man__Makefile.am	2012-10-29 06:38:55 UTC (rev 99188)
@@ -0,0 +1,10 @@
+--- man/Makefile.am.orig	2012-10-28 23:25:08.000000000 -0700
++++ man/Makefile.am	2012-10-28 23:25:24.000000000 -0700
+@@ -10,6 +10,6 @@ EXTRA_DIST = $(man_MANS) @PACKAGE@.1.in
+ 
+ MAINTAINERCLEANFILES = @PACKAGE@.1 Makefile.in texinfo2man 
+ 
+-@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in  ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man.c  Makefile.am
++@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in  ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man  Makefile.am
+ 	./texinfo2man ${srcdir}/@PACKAGE@.1.in ${srcdir}/../doc/@PACKAGE@.texinfo > $@
+ 

Deleted: trunk/dports/devel/indent/files/patch-man__Makefile.in (99187 => 99188)


--- trunk/dports/devel/indent/files/patch-man__Makefile.in	2012-10-29 06:25:59 UTC (rev 99187)
+++ trunk/dports/devel/indent/files/patch-man__Makefile.in	2012-10-29 06:38:55 UTC (rev 99188)
@@ -1,11 +0,0 @@
---- man/Makefile.in.orig	2009-12-19 14:08:51.000000000 -0800
-+++ man/Makefile.in	2009-12-19 14:09:00.000000000 -0800
-@@ -507,7 +507,7 @@
- 	uninstall-man uninstall-man1
- 
- 
--@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in  ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man.c  Makefile.am
-+@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in  ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man.c  Makefile.am texinfo2man
- 	./texinfo2man ${srcdir}/@PACKAGE@.1.in ${srcdir}/../doc/@PACKAGE@.texinfo > $@
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.