2008-10-13 06:26:35 +02:00
|
|
|
# Template build file for 'libxslt'.
|
|
|
|
pkgname=libxslt
|
2012-11-27 22:19:15 +01:00
|
|
|
version=1.1.28
|
2014-06-16 13:36:41 +02:00
|
|
|
revision=5
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-09-30 17:03:19 +02:00
|
|
|
configure_args="--disable-static"
|
2013-03-20 12:05:32 +01:00
|
|
|
makedepends="python-devel libxml2-devel libgcrypt-devel"
|
2008-10-13 06:26:35 +02:00
|
|
|
short_desc="XSLT parser library from the GNOME project"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-09-30 17:03:19 +02:00
|
|
|
homepage="http://xmlsoft.org/XSLT/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="ftp://xmlsoft.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
2012-11-27 22:19:15 +01:00
|
|
|
checksum=5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
|
2009-03-21 01:01:42 +01:00
|
|
|
|
2013-04-17 11:20:09 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-02-04 18:00:34 +01:00
|
|
|
hostmakedepends="libtool automake gettext-devel ${makedepends}"
|
2013-04-17 11:20:09 +02:00
|
|
|
pre_configure() {
|
|
|
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
pre_build() {
|
|
|
|
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" \
|
|
|
|
-e "s|/usr/\(lib/python2.7/site-packages\)|$XBPS_CROSS_BASE/\1|g" \
|
|
|
|
-i python/Makefile
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2012-09-30 17:03:19 +02:00
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-12 13:13:49 +02:00
|
|
|
|
|
|
|
libxslt-devel_package() {
|
2014-02-04 18:00:34 +01:00
|
|
|
depends="libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/xslt-config
|
|
|
|
vmove usr/lib/xsltConf.sh
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-04 18:00:34 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/share/aclocal
|
|
|
|
vmove usr/share/doc/${sourcepkg}-${version}
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libxslt-python_package() {
|
2014-04-04 14:14:51 +02:00
|
|
|
lib32disabled=yes
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - python extension"
|
2013-04-12 13:13:49 +02:00
|
|
|
pycompile_module="libxslt.py"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
vmove usr/share/doc/${sourcepkg}-python-${version}
|
|
|
|
}
|
|
|
|
}
|