diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-01-05 03:10:53 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-01-05 03:10:53 +0000 |
commit | 2c08c68598e681ae3acc07ddbe7230afd3356bb5 (patch) | |
tree | 1d5d3ff1b12bda02768610099d5e117ef2c0e136 | |
parent | c5ec0f93922b0b90595421034d11dfb29db66a07 (diff) | |
download | slackbuilds-2c08c68598e681ae3acc07ddbe7230afd3356bb5.tar.gz slackbuilds-2c08c68598e681ae3acc07ddbe7230afd3356bb5.tar.bz2 |
perl-xml-libxml: fixing Makefile.PL
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1585 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-x | dev/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dev/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild b/dev/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild index 61e26822..aab60683 100755 --- a/dev/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild +++ b/dev/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild @@ -77,6 +77,7 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then fi TMP="$TMP/$PACKAGE" +PKG="$TMP/package-$PACKAGE" if [ ! -d "$TMP" ]; then mkdir -p $TMP @@ -86,17 +87,15 @@ tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR #cd $FILE_NAME-$VERSION cd $FILE_NAME* -# config and install! -mkdir -p /install - +# config, make and install! +eval $(perl '-V:sitelibexp') +sed -i -e "s,\(-MXML::SAX\),-I${PKG}/${sitelibexp} \1," Makefile.PL perl Makefile.PL || exit $ERROR_CONF make || exit $ERROR_MAKE make test -make install DESTDIR=$TMP/package-$PACKAGE || exit $ERROR_INSTALL - -# make the package +make install DESTDIR=$PKG || exit $ERROR_INSTALL -cd $TMP/package-$PACKAGE +cd $PKG # we need to fix .packlist string="`echo $TMP/package-$PACKAGE | sed -e 's/\//\\\\\//g'`" |