gwhich: update to 2.21

This commit is contained in:
Herby Gillot
2024-07-03 19:26:02 -04:00
parent d3522c9c8a
commit 0fef4889b3
+19 -14
View File
@@ -1,13 +1,15 @@
PortSystem 1.0
# -*- 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
name gwhich
version 2.20
revision 1
categories sysutils
maintainers nomaintainer
license GPL-3+
installs_libs no
version 2.21
revision 0
homepage https://carlowood.github.io/which/
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 \
@@ -17,24 +19,27 @@ long_description \
'~/*' or './*' and/or to print all executables that match any \
directory in PATH.
homepage http://www.xs4all.nl/~carlo17/which/
platforms darwin
categories sysutils
installs_libs no
maintainers nomaintainer
license GPL-3+
master_sites gnu:which
distname which-${version}
checksums md5 95be0501a466e515422cde4af46b2744 \
sha1 3bcd6d87aa5231917ba7123319eedcae90cfa0fd \
rmd160 f0e8f464b9fe70c0126749d559e98170cdac0b98
checksums rmd160 458e7729a7658731e1902197701d3649ee09547e \
sha256 f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad \
size 149305
configure.args --disable-dependency-tracking \
--program-prefix=g
post-destroot {
file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
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]
}
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
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
}