source: trunk/dports/sysutils/gwhich/Portfile

Last change on this file was 96195, checked in by ryandesign@…, 5 years ago

gwhich: license GPL-3+; installs_libs no

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 96195 2012-08-03 06:55:43Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            gwhich
5version         2.20
6revision        1
7categories      sysutils
8maintainers     nomaintainer
9license         GPL-3+
10installs_libs   no
11
12description     GNU Which - Everything you never wanted in a which
13long_description \
14    Which is a utility that prints out the full path of the executables \
15    that bash would execute when the passed program names would have    \
16    been entered on the shell prompt. It does this by using the exact   \
17    same algorithm as bash. Tildes and a dot in the PATH are now        \
18    expanded to the full path by default.  Options allow to rather print\
19    '~/*' or './*' and/or to print all executables that match any       \
20    directory in PATH.
21
22homepage        http://www.xs4all.nl/~carlo17/which/
23platforms       darwin
24master_sites    gnu:which
25distname        which-${version}
26checksums       md5     95be0501a466e515422cde4af46b2744 \
27                sha1    3bcd6d87aa5231917ba7123319eedcae90cfa0fd \
28                rmd160  f0e8f464b9fe70c0126749d559e98170cdac0b98
29
30configure.args  --disable-dependency-tracking \
31                --program-prefix=g
32
33post-destroot {
34    file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info
35    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
36    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
37        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
38    }
39    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
40    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
41        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
42    }
43}
44
45test.run        yes
46test.target     check
Note: See TracBrowser for help on using the repository browser.