# $Id: Portfile 36721 2008-05-13 11:17:11Z nox@macports.org $ PortSystem 1.0 name findutils version 4.4.0 categories sysutils platforms darwin maintainers nox openmaintainer description findutils contains GNU find, xargs, and locate long_description \ ${description} homepage http://www.gnu.org/software/findutils/ master_sites gnu checksums md5 49e769ac4382fae6f104f99d54d0a112 \ sha1 25e3d4dec40cec0165ffeff50acc4d4523ec3e07 \ rmd160 0ea2b03f4d49902b64c2028abfba3a870c892420 depends_lib port:gettext \ port:libiconv configure.env SORT=/usr/bin/sort configure.args --program-prefix=g use_parallel_build yes test.run yes test.target check post-destroot { move ${destroot}${prefix}/share/info/find.info ${destroot}${prefix}/share/info/gfind.info delete ${destroot}${prefix}/lib/charset.alias set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ THANKS TODO ${destroot}${docdir} } variant with_default_names description {Install files without 'g' prefix} { post-destroot { foreach {d} {bin libexec share/info share/man/man1 share/man/man5} { foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] { ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end] } } } }