libxslt: Prepare to move system to real /usr

This commit is contained in:
Alexpux 2014-06-14 22:52:15 +04:00
parent 3eaf89b4dd
commit 0afa8e94dc
2 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,7 @@
pkgname=('libxslt' 'libxslt-devel' 'libxslt-python')
pkgver=1.1.28
pkgrel=3
pkgrel=4
pkgdesc="XML stylesheet transformation library"
arch=('i686' 'x86_64')
url="http://xmlsoft.org/XSLT/"
@ -36,6 +36,8 @@ build() {
sed -e 's|/usr/bin/python -u|/usr/bin/python2 -u|g' -e 's|/usr/bin/python$|/usr/bin/python2|g' -i python/tests/*.py
./configure --build=${CHOST} --host=${CHOST} --target=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-crypto \
--with-debugger \
--with-html-dir=/usr/share/doc/${NAME} \

View File

@ -2,19 +2,19 @@ PYTHON_SITELIB=usr/lib/python2.7/site-packages
PYTHON_LIB=usr/lib/python2.7
python_optimize() {
local pyd
local pyd
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${D}${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${D}${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
echo "Compiling ${pyd}..."
bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${pyd}
bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${pyd}
done
echo "Compiling ${pyd}..."
usr/bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${pyd}
usr/bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${pyd}
done
}
post_install() {