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
|
||||
|
||||
This requires the following from SlackBuilds.org:
|
||||
XML::NamespaceSupport, XML::LibXML::Common, XML::SAX
|
||||
This requires perl-xml-sax and perl-xml-namespacesupport
|
||||
|
||||
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
|
||||
|
||||
# Slackware build script for perl-xml-namespacesupport
|
||||
# Slackware build script for perl-xml-libxml
|
||||
|
||||
# Written by Murat D. Kadirov <banderols@gmail.com>
|
||||
|
||||
PRGNAM=perl-xml-libxml
|
||||
SRCNAM=XML-LibXML
|
||||
VERSION=1.64
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=1.70
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
SRCNAM=XML-LibXML
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -36,29 +35,30 @@ cd $SRCNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
perl Makefile.PL
|
||||
make \
|
||||
perl Makefile.PL \
|
||||
SKIP_SAX_INSTALL=1 \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||
make \
|
||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 \
|
||||
install_vendor \
|
||||
DESTDIR=$PKG
|
||||
make
|
||||
make test
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG/usr/man || exit 1
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
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
|
||||
)
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# Remove empty directories
|
||||
find $PKG -depth -type d -empty -exec rm -rf {} \;
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
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
|
||||
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
|
||||
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="perl-xml-libxml"
|
||||
VERSION="1.64"
|
||||
HOMEPAGE="http://search.cpan.org/~pajas/XML-LibXML-1.64/"
|
||||
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.64.tar.gz"
|
||||
MD5SUM="563a685d2aad2ace13a55acfeb818912"
|
||||
VERSION="1.70"
|
||||
HOMEPAGE="http://search.cpan.org/~pajas/XML-LibXML-1.70/"
|
||||
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.70.tar.gz"
|
||||
MD5SUM="33d4294f708e20c298cfe534d1166844"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Murat D. Kadirov"
|
||||
EMAIL="banderols@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in New Issue