summaryrefslogtreecommitdiffstats
path: root/abs/core/groff
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/groff')
-rw-r--r--abs/core/groff/PKGBUILD34
-rw-r--r--abs/core/groff/man-utf8.tmac9
2 files changed, 43 insertions, 0 deletions
diff --git a/abs/core/groff/PKGBUILD b/abs/core/groff/PKGBUILD
new file mode 100644
index 0000000..5183acc
--- /dev/null
+++ b/abs/core/groff/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=groff
+pkgver=1.19.2
+pkgrel=13
+pkgdesc="GNU troff text-formatting system"
+arch=(i686 x86_64)
+url="http://www.gnu.org/software/groff/groff.html"
+license=('GPL')
+groups=('base')
+depends=('perl' 'gcc-libs')
+source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz
+ man-utf8.tmac)
+md5sums=('f7c9cf2e4b9967d3af167d7c9fadaae4'
+ 'faefbef2b05ee5438b632464607c6cc4')
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ ./configure --prefix=/usr --without-x
+ mkdir -p $startdir/pkg/usr
+ make -j1 || return 1
+ make prefix=$startdir/pkg/usr install
+ cd $startdir/pkg/usr/bin
+ # needed for xman
+ ln -s eqn geqn
+ ln -s tbl gtbl
+ ln -s soelim zsoelim
+ rm -rf $startdir/pkg/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
+}
diff --git a/abs/core/groff/man-utf8.tmac b/abs/core/groff/man-utf8.tmac
new file mode 100644
index 0000000..17c0983
--- /dev/null
+++ b/abs/core/groff/man-utf8.tmac
@@ -0,0 +1,9 @@
+.\" This file is loaded after an-old.tmac.
+.\" Put any local modifications to an-old.tmac here.
+
+.if '\*[.T]'utf8' \
+. char \- \N'45'
+. char - \N'45'
+. char ' \N'39'
+..
+