# $Id: Portfile 28880 2007-09-10 16:59:39Z nox@macports.org $ PortSystem 1.0 name gsed set my_name sed version 4.1.5 revision 1 categories textproc platforms darwin maintainers nox description GNU version of the stream editor, sed long_description \ Sed (streams editor) isn't really a true text editor or text \ processor. Instead, it is used to filter text, i.e., it takes text \ input and performs some operation (or set of operations) on it and \ outputs the modified text. Sed is typically used for extracting part\ of a file using pattern matching or substituting multiple occurances\ of a string within a file. homepage http://www.gnu.org/software/${my_name}/ master_sites gnu:${my_name} distname ${my_name}-${version} checksums md5 7a1cbbbb3341287308e140bd4834c3ba \ sha1 8e575e8a44568392d5b6e089eab5da5cdbd45885 \ rmd160 49b12e99a55c6d2e78ad236f0205e63e46444173 patchfiles patch-configure configure.args --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man \ --program-prefix=gnu \ --disable-nls set docdir ${prefix}/share/doc/${my_name}-${version} post-destroot { cd ${destroot}${prefix}/share/info/ foreach i [glob *.info*] { move ${i} gnu${i} } 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*] { regexp gnu(.+) $a dummy b file link -hard $b gnu$b } } } } livecheck.check regex livecheck.url http://ftp.gnu.org/gnu/${my_name}/?C=M&O=D livecheck.regex ${my_name}-(\\d+\\.\\d+\\.\\d+)