From 8f7a0d485e13cfbaff5710d36c7b12089cfe120e Mon Sep 17 00:00:00 2001 From: Cecil Date: Sun, 17 Jul 2011 13:45:33 -0700 Subject: docbook2x:Initial inclusion. --- abs/extra/docbook2x/PKGBUILD | 36 +++++++++++++++++++++++++++++++++++ abs/extra/docbook2x/datadir.diff | 18 ++++++++++++++++++ abs/extra/docbook2x/docbook2x.install | 18 ++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 abs/extra/docbook2x/PKGBUILD create mode 100644 abs/extra/docbook2x/datadir.diff create mode 100644 abs/extra/docbook2x/docbook2x.install diff --git a/abs/extra/docbook2x/PKGBUILD b/abs/extra/docbook2x/PKGBUILD new file mode 100644 index 0000000..42dab69 --- /dev/null +++ b/abs/extra/docbook2x/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 19671 2010-06-26 17:37:44Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: Alessio 'mOLOk' Bolognino + +pkgname=docbook2x +pkgver=0.8.8 +pkgrel=9 +pkgdesc="A software package that converts DocBook documents into the traditional Unix man page format and the GNU Texinfo format." +arch=('i686' 'x86_64') +url="http://docbook2x.sourceforge.net" +license=("MIT") +depends=('glibc' 'perl-sgmls' 'perlxml' 'perl-xml-sax' 'libxslt') +makedepends=('texinfo') +install=docbook2x.install +source=(http://downloads.sourceforge.net/$pkgname/docbook2X-$pkgver.tar.gz + datadir.diff) +md5sums=('b9b76a6af198c4f44574cfd17a322f01' + '826fae88a435d9278c4f9614991d55a1') + +build() { + cd $srcdir/docbook2X-$pkgver + patch -p1 <$srcdir/datadir.diff + + autoreconf + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --program-transform-name 's,2x-,2,' \ + + make + + make DESTDIR=$pkgdir install + install -D -m0644 COPYING $pkgdir/usr/share/licenses/$pkgname/license + sed -i 's|http://docbook2x.sf.net/latest|/usr/share/docbook2X|g' \ + $pkgdir/usr/bin/db2x_xsltproc +} diff --git a/abs/extra/docbook2x/datadir.diff b/abs/extra/docbook2x/datadir.diff new file mode 100644 index 0000000..04d94f3 --- /dev/null +++ b/abs/extra/docbook2x/datadir.diff @@ -0,0 +1,18 @@ +Upstream patch: +http://docbook2x.cvs.sourceforge.net/viewvc/docbook2x/docbook2X/configure.ac?r1=1.21&r2=1.22&view=patch + +diff -ru docbook2X-0.8.8.orig/configure.ac docbook2X-0.8.8/configure.ac +--- docbook2X-0.8.8.orig/configure.ac 2010-06-26 04:57:04.000000000 -0430 ++++ docbook2X-0.8.8/configure.ac 2010-06-26 04:57:39.000000000 -0430 +@@ -149,6 +149,11 @@ + dnl Ensure that all static_* are fully expanded. + + eval static_datadir="$datadir" ++old_val="" ++until test "$static_datadir" = "$old_val"; do ++ old_val="$static_datadir" ++ eval static_datadir="$static_datadir" ++done + + eval static_bindir="$bindir" + old_val="" diff --git a/abs/extra/docbook2x/docbook2x.install b/abs/extra/docbook2x/docbook2x.install new file mode 100644 index 0000000..63e4818 --- /dev/null +++ b/abs/extra/docbook2x/docbook2x.install @@ -0,0 +1,18 @@ +info_dir=usr/share/info +info_files=(docbook2X.info docbook2man-xslt.info docbook2texi-xslt.info) + +post_install() { + for f in ${info_files[@]}; do + install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for f in ${info_files[@]}; do + install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} -- cgit v0.12