[24969] trunk/dports/sysutils/grep/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed May 9 08:52:18 PDT 2007


Revision: 24969
          http://trac.macosforge.org/projects/macports/changeset/24969
Author:   pipping at macports.org
Date:     2007-05-09 08:52:17 -0700 (Wed, 09 May 2007)

Log Message:
-----------
 * add variant nls to make internationalization optional
 * override default flags for when gettext is no linked against
 ( keeping them results in link errors, if gettext *is* linked against,
   they're required however )

Modified Paths:
--------------
    trunk/dports/sysutils/grep/Portfile

Modified: trunk/dports/sysutils/grep/Portfile
===================================================================
--- trunk/dports/sysutils/grep/Portfile	2007-05-09 14:17:22 UTC (rev 24968)
+++ trunk/dports/sysutils/grep/Portfile	2007-05-09 15:52:17 UTC (rev 24969)
@@ -3,6 +3,7 @@
 PortSystem 1.0
 name            grep
 version         2.5.1a
+revision        1
 platforms	    darwin
 categories	    sysutils
 maintainers	    waqar at macports.org
@@ -18,8 +19,19 @@
                 sha1 2cd082775d30be463c0ac674a00595eb56fda22e \
                 rmd160 f02c36c5a1efe805eafb0b4c0171ddb7ff15fbeb
 configure.args  --infodir=${prefix}/share/info \
-                --mandir=${prefix}/share/man
-depends_lib     port:gettext port:libiconv port:pcre
+                --mandir=${prefix}/share/man \
+                --disable-nls
+configure.cppflags
+configure.ldflags
 
+depends_lib     port:pcre
+
+variant nls {
+    depends_lib-append          port:gettext
+    configure.args-delete       --disable-nls
+    configure.cppflags-append   -I${prefix}/include
+    configure.ldflags-append    -L${prefix}/lib
+}
+
 test.run        yes
 test.target     check

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070509/6cf34483/attachment.html


More information about the macports-changes mailing list