2008-10-25 02:50:55 +02:00
|
|
|
# Template file for 'groff'
|
|
|
|
pkgname=groff
|
2014-11-07 09:21:34 +01:00
|
|
|
version=1.22.3
|
|
|
|
revision=1
|
2013-03-24 10:21:58 +01:00
|
|
|
hostmakedepends="perl bison"
|
|
|
|
makedepends="zlib-devel"
|
2008-10-25 02:50:55 +02:00
|
|
|
short_desc="The GNU troff text-formatting system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-13 12:55:57 +01:00
|
|
|
license="GPL-2"
|
2013-02-11 14:26:45 +01:00
|
|
|
homepage="http://www.gnu.org/software/groff/groff.html"
|
|
|
|
distfiles="http://ftp.gnu.org/gnu/groff/groff-${version}.tar.gz"
|
2014-11-07 09:21:34 +01:00
|
|
|
checksum=3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5
|
2008-10-25 02:50:55 +02:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-12 15:11:12 +02:00
|
|
|
hostmakedepends+=" groff"
|
2013-02-11 14:26:45 +01:00
|
|
|
fi
|
2008-10-25 02:50:55 +02:00
|
|
|
|
2013-02-11 14:26:45 +01:00
|
|
|
do_configure() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-11 14:26:45 +01:00
|
|
|
sed -i \
|
|
|
|
-e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
|
|
|
|
-e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
|
|
|
|
-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
|
|
|
|
-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
|
|
|
|
contrib/*/Makefile.sub \
|
|
|
|
doc/Makefile.in \
|
|
|
|
doc/Makefile.sub
|
|
|
|
fi
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --without-x --disable-rpath
|
2013-02-11 14:26:45 +01:00
|
|
|
}
|
|
|
|
do_build() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-06-05 00:19:47 +02:00
|
|
|
make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
|
2013-02-11 14:28:17 +01:00
|
|
|
else
|
2014-06-05 00:19:47 +02:00
|
|
|
make
|
2013-02-11 14:28:17 +01:00
|
|
|
fi
|
2013-02-11 14:26:45 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-10-26 15:56:48 +02:00
|
|
|
|
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/lib
|
|
|
|
|
|
|
|
# From Arch:
|
|
|
|
#
|
|
|
|
# Fix some issues when encoding to utf8 man pages
|
|
|
|
# The output chars don't match keyboard chars...
|
|
|
|
for f in man mdoc; do
|
|
|
|
cat ${FILESDIR}/site.tmac >> \
|
|
|
|
${DESTDIR}/usr/share/groff/site-tmac/${f}.local
|
|
|
|
done
|
|
|
|
}
|
2013-04-12 15:11:12 +02:00
|
|
|
|
|
|
|
groff-doc_package() {
|
2014-06-05 00:19:47 +02:00
|
|
|
short_desc+=" - documentation"
|
2013-04-12 15:11:12 +02:00
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
2013-04-12 19:13:19 +02:00
|
|
|
vmove usr/share/doc
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|