core/groff/Pkgfile
Juergen Daubert 03500f7196 [notify] groff: groff: don't hard-code papersize setting
the default papersize for groff is no longer determined at build-time but
must be defined in /ect/papersize now. See README for more infomations.
2013-03-04 17:25:42 +01:00

40 lines
1.0 KiB
Plaintext

# Description: The GNU troff text-formatting system
# URL: http://www.gnu.org/software/groff/groff.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=groff
version=1.22.2
release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
# we install only the Base14 and EURO pdf fonts
# and don't lookup for fonts in the filesystem
# https://savannah.gnu.org/bugs/?38029
sed -r -e '/^EURO\|/s/N/Y/' \
-e '/^[A-Z]+\|N/d' \
-e '/\(gs\)/d' \
-i font/devpdf/Foundry.in
./configure --prefix=/usr \
--mandir=/usr/man \
--without-x
make
make DESTDIR=$PKG install
sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
-i $PKG/usr/share/groff/current/font/*/DESC
install -d $PKG/etc
echo 'letter' > $PKG/etc/papersize
rm -rf $PKG/usr/share/{info,doc}
ln -s eqn $PKG/usr/bin/geqn
ln -s tbl $PKG/usr/bin/gtbl
ln -s soelim $PKG/usr/bin/zsoelim
}