libxml2: Prepare to move system to real /usr

This commit is contained in:
Alexpux
2014-06-14 22:43:38 +04:00
parent a6bf4236bf
commit 3eaf89b4dd
3 changed files with 18 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
pkgname=('libxml2' 'libxml2-devel' 'libxml2-python')
pkgver=2.9.1
pkgrel=4
pkgrel=5
pkgdesc="XML parsing library, version 2"
arch=(i686 x86_64)
license=('MIT')
@@ -63,9 +63,11 @@ build() {
cd ${pkgname}-${pkgver}
./configure --build=${CHOST} --host=${CHOST} --target=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-ipv6 \
--with-history \
--with-python=/usr/bin/python2 \
--with-python=/usr/bin/python2 \
--with-html-dir=/usr/share/doc \
--with-html-subdir=libxml2/html
make

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 ${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
echo "Compiling ${pyd}..."
usr/bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
usr/bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
done
echo "Compiling ${pyd}..."
usr/bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
usr/bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
done
}
post_install() {

View File

@@ -1,6 +1,6 @@
post_install() {
if test ! -f usr/etc/xml/catalog; then
usr/bin/mkdir -p usr/etc/xml
usr/bin/xmlcatalog --noout --create usr/etc/xml/catalog
if test ! -f etc/xml/catalog; then
usr/bin/mkdir -p etc/xml
usr/bin/xmlcatalog --noout --create etc/xml/catalog
fi
}