libxslt: Prepare to move system to real /usr
This commit is contained in:
parent
3eaf89b4dd
commit
0afa8e94dc
@ -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} \
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user