Commit d685497b authored by Phil's avatar Phil

core tools updates

parent 5e315c4c
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
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
}
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=""
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
}
......@@ -5,26 +5,28 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=module-init-tools
pkgver=3.12
pkgver=3.16
pkgrel=1
pkgdesc="utilities needed by Linux systems for managing loadable kernel modules"
arch=('i686' 'x86_64')
url="http://kerneltools.org"
license=('GPL')
depends=('glibc')
makedepends=('docbook2x')
backup=('etc/modprobe.d/modprobe.conf')
options=('sign')
source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2
modprobe.conf)
md5sums=('8b2257ce9abef74c4a44d825d23140f3'
'316f1bda4c21af02b30252eb014a0a55')
modprobe.conf
docfix.patch)
md5sums=('bc44832c6e41707b8447e2847d2019f5'
'316f1bda4c21af02b30252eb014a0a55'
'4320d19902ded43bed55c804b065cdc7')
build() {
cd $srcdir/$pkgname-$pkgver
# do not regenerate man pages
touch *.{5,8}
# fix headers in SGML manpage sources and an XML typo
patch -Np0 < "$srcdir/docfix.patch"
./configure --prefix=/usr --exec-prefix=/ --enable-zlib
make
}
......@@ -33,10 +35,7 @@ package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
# Install our custom (read: empty) modprobe.conf
install -Dm644 $srcdir/modprobe.conf $pkgdir/etc/modprobe.d/modprobe.conf
# fix man page (FS#17559)
sed -i "s#mod#man5/mod#" $pkgdir/usr/share/man/man5/modprobe.d.5
}
--- doc/depmod.conf.sgml.orig 2011-06-25 10:07:15.897805024 -0400
+++ doc/depmod.conf.sgml 2011-06-25 10:07:48.810805020 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/depmod.sgml.orig 2011-06-25 10:07:15.898805024 -0400
+++ doc/depmod.sgml 2011-06-25 10:07:56.636805021 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
@@ -52,7 +52,7 @@
<arg><option>-n</option></arg>
<arg><option>-v</option></arg>
<arg><option>-P <replaceable>prefix</replaceable></option></arg>
- <arg><option>-w</option><arg>
+ <arg><option>-w</option></arg>
<arg><option><replaceable>version</replaceable></option></arg>
<arg rep='repeat'><option><replaceable>filename</replaceable></option></arg>
</cmdsynopsis>
--- doc/insmod.sgml.orig 2011-06-25 10:07:15.899805024 -0400
+++ doc/insmod.sgml 2011-06-25 10:07:59.228805019 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/lsmod.sgml.orig 2011-06-25 10:07:15.899805024 -0400
+++ doc/lsmod.sgml 2011-06-25 10:08:04.804805020 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/modinfo.sgml.orig 2011-06-25 10:07:15.900805024 -0400
+++ doc/modinfo.sgml 2011-06-25 10:08:07.630805019 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/modprobe.conf.sgml.orig 2011-06-25 10:07:15.901805024 -0400
+++ doc/modprobe.conf.sgml 2011-06-25 10:08:10.173805018 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/modprobe.sgml.orig 2011-06-25 10:07:15.902805024 -0400
+++ doc/modprobe.sgml 2011-06-25 10:08:13.623805019 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/modules.dep.sgml.orig 2011-06-25 10:07:15.903805024 -0400
+++ doc/modules.dep.sgml 2011-06-25 10:08:19.323805019 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
--- doc/rmmod.sgml.orig 2011-06-25 10:07:15.904805024 -0400
+++ doc/rmmod.sgml 2011-06-25 10:08:27.691805017 -0400
@@ -1,4 +1,5 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY docbook "<productname>DocBook</productname>">
<!ENTITY sgml "<abbrev>SGML</abbrev>">
# Chakra 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=perl-xml-namespacesupport
pkgver=1.11
pkgrel=1
pkgdesc="Generic namespace helpers (ported from SAX2)"
arch=('any')
url="http://search.cpan.org/dist/XML-NamespaceSupport"
license=('GPL')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-${pkgver}.tar.gz)
md5sums=('222cca76161cd956d724286d36b607da')
build() {
cd "${srcdir}/XML-NamespaceSupport-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR="${pkgdir}" || return 1
find ${pkgdir} -name '.packlist' -delete
find ${pkgdir} -name '*.pod' -delete
}
# Chakra 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=perl-xml-sax
pkgver=0.96
pkgrel=1
pkgdesc="Simple API for XML"
arch=('any')
url="http://search.cpan.org/dist/XML-SAX"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-xml-namespacesupport>=0.03')
options=('!emptydirs')
install=perl-xml-sax.install
source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" 'perl-xml-sax.patch')
md5sums=('bdcd4119a62505184e211e9dfaef0ab1'
'b8ad2da4195ac0eede28dfaed4d874c3')
build() {
cd $srcdir
patch -p0 < perl-xml-sax.patch
cd $srcdir/XML-SAX-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
make test
}
package() {
cd $srcdir/XML-SAX-$pkgver
make install DESTDIR=$pkgdir
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
}
post_install() {
if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null
fi
}
post_upgrade() {
if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null
fi
}
--- XML-SAX-0.96/Makefile.PL.orig 2008-08-04 23:07:21.000000000 +0200
+++ XML-SAX-0.96/Makefile.PL 2008-12-09 11:52:24.806540909 +0100
@@ -12,42 +12,3 @@
},
);
-sub MY::install {
- package MY;
- my $script = shift->SUPER::install(@_);
-
- # Only modify existing ParserDetails.ini if user agrees
-
- my $write_ini_ok = 0;
-
- eval { require XML::SAX };
- if ($@) {
- $write_ini_ok = 1;
- }
- else {
- my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
- $write_ini_ok =
- ExtUtils::MakeMaker::prompt(
- "Do you want XML::SAX to alter ParserDetails.ini?", "Y"
- ) =~ /^y/i;
- }
- else {
- $write_ini_ok = 1;
- }
- }
-
- if ($write_ini_ok) {
- $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m;
- $script .= <<"INSTALL";
-
-install_sax_pureperl :
-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
-
-INSTALL
-
- }
-
- return $script;
-}
-
......@@ -37,7 +37,8 @@ package_udev() {
'module-init-tools>=3.11' 'pciutils')
install=udev.install
backup=(etc/udev/udev.conf
etc/modprobe.d/framebuffer_blacklist.conf)
etc/modprobe.d/framebuffer_blacklist.conf
lib/udev/rules.d/81-chakra.rules)
conflicts=('pcmcia-cs' 'hotplug' 'initscripts<2009.07')
replaces=('devfsd')
......
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