groff: fix issues with some UTF-8 manpages (from Arch), added -doc subpkg.

This commit is contained in:
Juan RP 2010-10-26 15:56:48 +02:00
parent 7ec2bb545f
commit e17a19259a
4 changed files with 50 additions and 2 deletions

1
srcpkgs/groff-doc Symbolic link
View file

@ -0,0 +1 @@
groff

View file

@ -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
.\}

View file

@ -0,0 +1,14 @@
# Template file for 'groff-doc'.
#
short_desc="${sourcepkg} documentation"
long_desc="${long_desc}
This package contains the GNU Groff documentation."
noarch=yes
do_install()
{
mkdir -p ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
}

View file

@ -1,10 +1,10 @@
# Template file for 'groff'
pkgname=groff
version=1.20.1
revision=2
revision=3
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--with-appresdir=/usr/lib/X11/app-defaults"
configure_args="--without-x"
short_desc="The GNU troff text-formatting system"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805
@ -17,6 +17,8 @@ long_desc="
All the standard macro packages are supported. A number of other utilities
are also included together with several fonts."
subpackages="groff-doc"
Add_dependency run glibc
Add_dependency run libgcc
Add_dependency run libstdc++
@ -26,3 +28,18 @@ Add_dependency build texinfo
Add_dependency build zlib-devel
Add_dependency full bash
Add_dependency full sed
post_install()
{
# 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
}