CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openssl: adapted to 64b
[crossrootfs.git] / groff / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: The GNU troff text-formatting system
2# URL: http://www.gnu.org/software/groff/groff.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=groff
26da711f 8version=1.22.3
90dc53e1 9release=2
6dca1d21
JB
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12build() {
13 cd $name-$version
02834ec3
VM
14 cat > config.cache << EOF
15ac_try_echo=yes
16EOF
17 pushd src/libs/gnulib
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
02834ec3
VM
21 --without-x \
22 --cache-file=config.cache
23 popd
90dc53e1
VM
24
25
26 # we install only the Base14 and EURO pdf fonts
27 # and don't lookup for fonts in the filesystem
28 # https://savannah.gnu.org/bugs/?38029
29 sed -r -e '/^EURO\|/s/N/Y/' \
30 -e '/^[A-Z]+\|N/d' \
31 -e '/\(gs\)/d' \
32 -i font/devpdf/Foundry.in
33
6dca1d21
JB
34 ./configure --build=$CHOST \
35 --host=$CTARGET \
36 --prefix=/usr \
02834ec3
VM
37 --without-x \
38 --cache-file=config.cache
90dc53e1 39
6dca1d21
JB
40 make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
41 make DESTDIR=$PKG install
26da711f
VM
42
43 sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
44 -i $PKG/usr/share/groff/current/font/*/DESC
90dc53e1
VM
45
46 install -d $PKG/etc
47 echo 'letter' > $PKG/etc/papersize
6dca1d21
JB
48
49 rm -rf $PKG/usr/share/{info,doc}
26da711f 50
6dca1d21
JB
51 ln -sf eqn $PKG/usr/bin/geqn
52 ln -sf tbl $PKG/usr/bin/gtbl
53 ln -sf soelim $PKG/usr/bin/zsoelim
54}