diff options
Diffstat (limited to 'abs/core/groff')
-rw-r--r-- | abs/core/groff/PKGBUILD | 40 | ||||
-rw-r--r-- | abs/core/groff/groff.install | 20 | ||||
-rw-r--r-- | abs/core/groff/site.tmac | 16 |
3 files changed, 60 insertions, 16 deletions
diff --git a/abs/core/groff/PKGBUILD b/abs/core/groff/PKGBUILD index 5183acc..fac0af8 100644 --- a/abs/core/groff/PKGBUILD +++ b/abs/core/groff/PKGBUILD @@ -1,34 +1,42 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# $Id: PKGBUILD 71613 2010-03-07 21:58:14Z paul $ # Maintainer: judd <jvinet@zeroflux.org> pkgname=groff -pkgver=1.19.2 -pkgrel=13 +pkgver=1.20.1 +pkgrel=4 pkgdesc="GNU troff text-formatting system" -arch=(i686 x86_64) +arch=('i686' 'x86_64') url="http://www.gnu.org/software/groff/groff.html" license=('GPL') -groups=('base') -depends=('perl' 'gcc-libs') +depends=('perl' 'gcc-libs' 'texinfo') +makedepends=('netpbm' 'psutils' 'ghostscript') +optdepends=('netpbm: for use together with man -H command interaction in browsers' + 'psutils: for use together with man -H command interaction in browsers') source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz - man-utf8.tmac) -md5sums=('f7c9cf2e4b9967d3af167d7c9fadaae4' - 'faefbef2b05ee5438b632464607c6cc4') + site.tmac) +install=groff.install +md5sums=('48fa768dd6fdeb7968041dd5ae8e2b02' + 'a1fedafd7863b37968d32ad9ae1d8c13') build() { - cd $startdir/src/$pkgname-$pkgver + cd $srcdir/$pkgname-$pkgver ./configure --prefix=/usr --without-x - mkdir -p $startdir/pkg/usr + mkdir -p $pkgdir/usr make -j1 || return 1 - make prefix=$startdir/pkg/usr install - cd $startdir/pkg/usr/bin +} +package() { + cd $srcdir/$pkgname-$pkgver + make prefix=$pkgdir/usr install + cd $pkgdir/usr/bin # needed for xman ln -s eqn geqn ln -s tbl gtbl ln -s soelim zsoelim - rm -rf $startdir/pkg/usr/lib + rm -rf $pkgdir/usr/lib # Fix some issues when encoding to utf8 man pages # The output chars don't match keyboard chars... - cat $startdir/src/man-utf8.tmac >> \ - $startdir/pkg/usr/share/groff/site-tmac/man.local + cat $srcdir/site.tmac >> \ + $pkgdir/usr/share/groff/site-tmac/man.local + cat $srcdir/site.tmac >> \ + $pkgdir/usr/share/groff/site-tmac/mdoc.local } diff --git a/abs/core/groff/groff.install b/abs/core/groff/groff.install new file mode 100644 index 0000000..6807e4b --- /dev/null +++ b/abs/core/groff/groff.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(groff.info groff.info-1 groff.info-2 groff.info-3) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/groff/site.tmac b/abs/core/groff/site.tmac new file mode 100644 index 0000000..8ef1040 --- /dev/null +++ b/abs/core/groff/site.tmac @@ -0,0 +1,16 @@ +. +.if n \{\ +. \" Character translations for non-keyboard +. \" characters - to make them searchable +. if '\*[.T]'utf8' \{\ +. char \- \N'45' +. char - \N'45' +. char ' \N'39' +. char \' \N'39' +. \} +. +. \" Shut off SGR by default (groff colors) +. \" Require GROFF_SGR envvar defined to turn it on +. if '\V[GROFF_SGR]'' \ +. output x X tty: sgr 0 +.\} |