perl/perl-xml-libxml: Updated for version 1.70.
Added doinst.sh to updated sax parsers. XML::LibXML::Common is included in libxml-libxml-perl now. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
64184edeb3
commit
39ec7da5a2
|
@ -1,4 +1,7 @@
|
||||||
XML::LibXML - Perl Binding for libxml2
|
XML::LibXML - Perl Binding for libxml2
|
||||||
|
|
||||||
This requires the following from SlackBuilds.org:
|
This requires perl-xml-sax and perl-xml-namespacesupport
|
||||||
XML::NamespaceSupport, XML::LibXML::Common, XML::SAX
|
|
||||||
|
Run these 2 commands if you remove this package.
|
||||||
|
perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
|
||||||
|
perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::LibXML::SAX))->save_parsers()"
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Update SAX parsers
|
||||||
|
chroot .
|
||||||
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()" 1>/dev/null
|
||||||
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()" 1>/dev/null
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for perl-xml-namespacesupport
|
# Slackware build script for perl-xml-libxml
|
||||||
|
|
||||||
# Written by Murat D. Kadirov <banderols@gmail.com>
|
# Written by Murat D. Kadirov <banderols@gmail.com>
|
||||||
|
|
||||||
PRGNAM=perl-xml-libxml
|
PRGNAM=perl-xml-libxml
|
||||||
SRCNAM=XML-LibXML
|
VERSION=1.70
|
||||||
VERSION=1.64
|
BUILD=${BUILD:-1}
|
||||||
BUILD=${BUILD:-2}
|
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
SRCNAM=XML-LibXML
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -36,29 +35,30 @@ cd $SRCNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
perl Makefile.PL
|
perl Makefile.PL \
|
||||||
make \
|
SKIP_SAX_INSTALL=1 \
|
||||||
|
PREFIX=/usr \
|
||||||
|
INSTALLDIRS=vendor \
|
||||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||||
INSTALLVENDORMAN3DIR=/usr/man/man3
|
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||||
make \
|
make
|
||||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
make test
|
||||||
INSTALLVENDORMAN3DIR=/usr/man/man3 \
|
make install DESTDIR=$PKG
|
||||||
install_vendor \
|
|
||||||
DESTDIR=$PKG
|
|
||||||
|
|
||||||
( cd $PKG/usr/man || exit 1
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
find . -type f -exec gzip -9 {} \;
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
|
||||||
)
|
|
||||||
( cd $PKG
|
|
||||||
find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
|
|
||||||
)
|
|
||||||
|
|
||||||
# Remove empty directories
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
find $PKG -depth -type d -empty -exec rm -rf {} \;
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
|
find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||||
|
|
||||||
|
find $PKG -depth -type d -empty -delete || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a Changes LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
Changes LICENSE README \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="perl-xml-libxml"
|
PRGNAM="perl-xml-libxml"
|
||||||
VERSION="1.64"
|
VERSION="1.70"
|
||||||
HOMEPAGE="http://search.cpan.org/~pajas/XML-LibXML-1.64/"
|
HOMEPAGE="http://search.cpan.org/~pajas/XML-LibXML-1.70/"
|
||||||
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.64.tar.gz"
|
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.70.tar.gz"
|
||||||
MD5SUM="563a685d2aad2ace13a55acfeb818912"
|
MD5SUM="33d4294f708e20c298cfe534d1166844"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Murat D. Kadirov"
|
MAINTAINER="Murat D. Kadirov"
|
||||||
EMAIL="banderols@gmail.com"
|
EMAIL="banderols@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in New Issue