mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
e1d7d7f00f
This allows to use modern version of texinfo as well as allow packages to install properly on a system built WITHOUT_INFO
18 lines
418 B
YAML
18 lines
418 B
YAML
# $FreeBSD$
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
actions: [file]
|
|
post-install: |
|
|
file=%D/%@
|
|
ginstall-info --quiet %D/%@ %D/info/dir
|
|
post-deinstall: |
|
|
file=%D/%@
|
|
ginstall-info --quiet --delete %D/%@ %D/info/dir
|
|
if [ $(ginfo -d ${file%/*} --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
|
|
rm -f ${file%/*}/dir
|
|
fi
|
|
if [ ${file%/*} != "%D/info" ]; then
|
|
rmdir ${file%/*} 2> /dev/null || true
|
|
fi
|