Files

50 lines
1.9 KiB
Tcl
Raw Permalink Normal View History

2024-07-03 19:26:02 -04:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
2007-02-27 11:44:35 +00:00
name gwhich
2025-10-13 21:02:46 +02:00
version 2.23
2024-07-03 19:26:02 -04:00
revision 0
homepage https://carlowood.github.io/which/
2012-08-03 06:55:43 +00:00
2007-02-27 11:44:35 +00:00
description GNU Which - Everything you never wanted in a which
2024-07-03 19:26:02 -04:00
2004-02-08 16:41:45 +00:00
long_description \
2007-02-27 11:44:35 +00:00
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.
2004-02-08 16:41:45 +00:00
2024-07-03 19:26:02 -04:00
categories sysutils
installs_libs no
maintainers nomaintainer
license GPL-3+
2007-02-27 11:44:35 +00:00
master_sites gnu:which
distname which-${version}
2025-10-13 21:02:46 +02:00
checksums rmd160 23a48f685dffeddff55ec1c824830b7ac52470b6 \
sha256 a2c558226fc4d9e4ce331bd2fd3c3f17f955115d2c00e447618a4ef9978a2a73 \
size 201930
2007-02-27 11:44:35 +00:00
configure.args --disable-dependency-tracking \
2007-02-27 11:44:35 +00:00
--program-prefix=g
post-destroot {
file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info
2024-07-03 19:26:02 -04:00
xinstall -m 0755 -d ${destroot}${prefix}/libexec/gnubin
foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
}
2024-07-03 19:26:02 -04:00
xinstall -m 0755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
}
}
2007-02-27 11:44:35 +00:00
test.run yes
test.target check