# $Id: Portfile 69455 2010-07-06 17:25:19Z jmr@macports.org $ PortSystem 1.0 name diffutils version 3.0 categories sysutils textproc devel license GPL-3+ maintainers nomaintainer description GNU diff utilities long_description \ diffutils contains the GNU diff, diff3, sdiff, and cmp utilities. \ Their features are a superset of the Unix features and they are \ significantly faster. platforms darwin sunos homepage http://www.gnu.org/software/diffutils/ master_sites gnu checksums md5 684aaba1baab743a2a90e52162ff07da \ sha1 17fcdcd435ef6b424aa9c7a487ffde408d1a00e6 \ rmd160 a092169e12ddc2b84b927622e7e3a08e3446cca6 depends_lib port:gettext patchfiles patch-src_system.h.diff configure.args --program-prefix=g \ --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man set docdir ${prefix}/share/doc/${name} post-destroot { move ${destroot}${prefix}/share/info/diff.info ${destroot}${prefix}/share/info/gdiff.info xinstall -m 0755 -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README THANKS \ ${destroot}${docdir} } test.run yes test.target check variant with_default_names description {Install files without 'g' prefix} { post-destroot { foreach d {bin share/info share/man/man1} { foreach a [glob -directory ${destroot}${prefix}/$d g*] { regexp /g(.+)\$ $a dummy b file link -hard ${destroot}${prefix}/$d/$b $a } } } } livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)