# $Id: Portfile 36572 2008-05-07 00:50:48Z nox@macports.org $ PortSystem 1.0 name findutils version 4.3.13 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 http://alpha.gnu.org/gnu/${name}/ \ ftp://alpha.gnu.org/gnu/${name}/ checksums md5 90ef3353f78c62eb8a3b2fb6c0127034 \ sha1 e4ba80c195b517236fe28afcded9639ccda9639e \ rmd160 e75ca08435e80d02f188739d5862f431b4d8f8d6 depends_lib port:gettext \ port:libiconv configure.env SORT=/usr/bin/sort configure.args --program-prefix=g 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] } } } } livecheck.url "[lindex ${master_sites} 0]?C=M&O=D"