# $Id: Portfile 32783 2008-01-13 11:24:37Z ryandesign@macports.org $ PortSystem 1.0 name gwhich version 2.16 revision 2 categories sysutils maintainers nomaintainer description GNU Which - Everything you never wanted in a which long_description \ Which is a utility that prints out the full path of the executables \ that bash would execute when the passed program names would have \ been entered on the shell prompt. It does this by using the exact \ same algorithm as bash. Tildes and a dot in the PATH are now \ expanded to the full path by default. Options allow to rather print\ '~/*' or './*' and/or to print all executables that match any \ directory in PATH. homepage http://www.xs4all.nl/~carlo17/which/ platforms darwin master_sites gnu:which distname which-${version} checksums md5 830b83af48347a9a3520f561e47cbc9b configure.args --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man \ --program-prefix=g post-destroot { file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info if {[variant_isset with_default_names]} { 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 } } } } test.run yes test.target check variant with_default_names {}