Commit a96e1dfa authored by abveritas's avatar abveritas

moving groff & man-db to pf, help2man to core

parent cf01099d
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=groff
pkgver=1.21
pkgrel=2
pkgdesc="GNU troff text-formatting system"
arch=(i686 x86_64)
url="http://www.gnu.org/software/groff/groff.html"
license=('GPL')
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
site.tmac)
install=groff.install
md5sums=('8b8cd29385b97616a0f0d96d0951c5bf'
'a1fedafd7863b37968d32ad9ae1d8c13')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --without-x
mkdir -p $pkgdir/usr
make
}
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 $pkgdir/usr/lib/groff/site-tmac
# Fix some issues when encoding to utf8 man pages
# The output chars don't match keyboard chars...
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/man.local
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/mdoc.local
}
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:
.
.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
.\}
# $Id: PKGBUILD 67994 2010-02-10 11:34:11Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Paul Mattal <paul@mattal.com>
pkgname=help2man
pkgver=1.38.2
pkgrel=1
pkgdesc="Conversion tool to create man files"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/help2man/"
license=('GPL')
depends=('perl-locale-gettext')
source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
help2man-1.37.1-respect-LDFLAGS.patch)
md5sums=('426671c6fe79e5ef2233303367eab5a6'
'6f80dfd75b46c6bfbc2eeb5516771096')
build() {
# Fix Build
export MAKEFLAGS="-j1"
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ${srcdir}/help2man-1.37.1-respect-LDFLAGS.patch || return 1
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libdir=/lib
make || return 1
echo "build done"
make DESTDIR="${pkgdir}" install || return 1
}
--- a/Makefile.in 2009-11-14 07:21:34.000000000 +0100
+++ b/Makefile.in 2010-02-10 12:23:35.000000000 +0100
@@ -103,7 +103,7 @@
preload: $(preload).so
$(preload).so: $(srcdir)/$(preload).c
- $(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -fPIC -shared $? $(LIBS)
man: $(target).1
$(target).1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m
=== modified file 'src/straycats.c'
--- src/straycats.c 2011-01-10 20:08:22 +0000
+++ src/straycats.c 2011-06-04 06:34:51 +0000
@@ -177,6 +177,7 @@
char *lang, *page_encoding;
char *mandir_base;
pipecmd *col_cmd;
+ char *col_locale;
char *fullpath;
/* we have a straycat. Need to filter it and get
@@ -226,6 +227,12 @@
col_cmd = pipecmd_new_argstr
(get_def_user ("col", COL));
pipecmd_arg (col_cmd, "-bx");
+ col_locale = find_charset_locale ("UTF-8");
+ if (col_locale) {
+ pipecmd_setenv (col_cmd, "LC_CTYPE",
+ col_locale);
+ free (col_locale);
+ }
pipeline_command (decomp, col_cmd);
fullpath = canonicalize_file_name (catdir);
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=man-db
pkgver=2.6.0
pkgrel=2
pkgdesc="A utility for reading man pages"
arch=('i686' 'x86_64')
url="http://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
groups=('base')
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline')
optdepends=('less' 'gzip')
backup=('etc/man_db.conf'
'etc/cron.daily/man-db')
conflicts=('man')
provides=('man')
replaces=('man')
install=${pkgname}.install
source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.gz
1361_1360.diff
#http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
convert-mans man-db.cron.daily)
md5sums=('a6485560fa3c11c5b7df346ed5520adb'
'9a816cf0f9a1c2594491bbdba53fe64a'
'2b7662a7d5b33fe91f9f3e034361a2f6'
'd30c39ae47560304471b5461719e0f03')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np0 -i $srcdir/1361_1360.diff
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--with-db=gdbm --disable-setuid --enable-mandirs=GNU \
--with-sections="1 n l 8 3 0 2 5 4 9 6 7"
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# part of groff pkg
rm -f ${pkgdir}/usr/bin/zsoelim
# script from LFS to convert manpages, see
# http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
#install whatis cron script
install -D -m744 ${srcdir}/man-db.cron.daily ${pkgdir}/etc/cron.daily/man-db
}
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
FILE="$1"
shift
iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
mv .tmp.iconv "$FILE"
done
#!/bin/sh
# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)
NICE=19
# 0 for none, 1 for real time, 2 for best-effort, 3 for idle
IONICE_CLASS=2
# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest
IONICE_PRIORITY=7
UPDATEMANDB="/usr/bin/mandb --quiet"
# Update the "whatis" database
#/usr/sbin/makewhatis -u -w
# taken from Debian
# man-db cron daily
set -e
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
chmod 755 /var/cache/man
fi
# regenerate man database
if [ -x /usr/bin/nice ]; then
UPDATEMANDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEMANDB}"
fi
if [ -x /usr/bin/ionice ]; then
UPDATEMANDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEMANDB}"
fi
${UPDATEMANDB}
exit 0
post_install() {
echo "it's recommended to create an initial"
echo "database running as root:"
echo "\"/usr/bin/mandb --quiet\""
}
post_upgrade() {
if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then
echo "systemuser \"man\" is no more required"
echo "run \"userdel man\". please also"
echo "chown root:root /var/cache/man"
fi
}
post_remove() {
rm -rf /var/cache/man
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment