[27669] trunk/dports/textproc/gsed/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 16:32:33 PDT 2007


Revision: 27669
          http://trac.macosforge.org/projects/macports/changeset/27669
Author:   nox at macports.org
Date:     2007-08-11 16:32:33 -0700 (Sat, 11 Aug 2007)

Log Message:
-----------
gsed: See #11946.

Modified Paths:
--------------
    trunk/dports/textproc/gsed/Portfile

Modified: trunk/dports/textproc/gsed/Portfile
===================================================================
--- trunk/dports/textproc/gsed/Portfile	2007-08-11 23:01:23 UTC (rev 27668)
+++ trunk/dports/textproc/gsed/Portfile	2007-08-11 23:32:33 UTC (rev 27669)
@@ -2,14 +2,18 @@
 
 PortSystem 1.0
 name            gsed
+set my_name     sed
 version         4.1.5
-distname        sed-${version}
+revision        1
+distname        ${my_name}-${version}
 categories      textproc
 maintainers     marius at physics.aamu.edu
 platforms       darwin
-master_sites    gnu:sed
-homepage        http://www.gnu.org/software/sed/
-checksums       md5 7a1cbbbb3341287308e140bd4834c3ba
+master_sites    gnu:${my_name}
+homepage        http://www.gnu.org/software/${my_name}/
+checksums       md5 7a1cbbbb3341287308e140bd4834c3ba \
+                sha1 8e575e8a44568392d5b6e089eab5da5cdbd45885 \
+                rmd160 49b12e99a55c6d2e78ad236f0205e63e46444173
 
 description     GNU version of the stream editor, sed
 long_description \
@@ -25,15 +29,37 @@
 configure.args  --infodir=${prefix}/share/info \
                 --mandir=${prefix}/share/man \
                 --program-prefix=gnu \
-                --datadir=${prefix}/share/doc/${name}
-depends_lib     port:gettext port:libiconv
+                --disable-nls
 
+set docdir      ${prefix}/share/doc/${my_name}-${version}
+
 post-destroot {
     cd ${destroot}${prefix}/share/info/
     foreach i [glob *.info*] {
-        file rename ${i} gnu${i}
+        move ${i} gnu${i}
     }
-    if {[variant_isset with_default_names]} {
+
+    xinstall -m 0755 -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
+        ${destroot}${docdir}
+}
+
+test.run        yes
+test.target     check
+
+variant nls description {Add NLS support} {
+    configure.args-delete   --disable-nls
+
+    depends_lib-append      port:gettext \
+                            port:libiconv
+
+    post-destroot {
+        xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS ${destroot}${docdir}
+    }
+}
+
+variant with_default_names description {Install files without 'g' prefix} {
+    post-destroot {
         foreach d {bin share/info share/man/man1} {
             cd ${destroot}${prefix}/$d
             foreach a [glob gnu*] {
@@ -44,7 +70,6 @@
     }
 }
 
-test.run        yes
-test.target     check
-
-variant with_default_names {}
+livecheck.check regex
+livecheck.url   http://ftp.gnu.org/gnu/${my_name}/?M=D
+livecheck.regex ${my_name}-(\\d+\\.\\d+\\.\\d+)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070811/8c8a6927/attachment.html


More information about the macports-changes mailing list