1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/Keywords/info.yaml
Baptiste Daroussin e1d7d7f00f Use print/texinfo-lite to install info pages
This allows to use modern version of texinfo as well as allow packages to
install properly on a system built WITHOUT_INFO
2014-06-25 08:36:36 +00:00

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