libxslt: fix xslt-config
This commit is contained in:
parent
a4e87af2b5
commit
2114ea84b5
1 changed files with 10 additions and 17 deletions
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'libxslt'
|
||||
pkgname=libxslt
|
||||
version=1.1.34
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --disable-dependency-tracking"
|
||||
hostmakedepends="libtool"
|
||||
hostmakedepends="libtool python-devel libxml2-python pkg-config"
|
||||
makedepends="python-devel libxml2-devel libxml2-python libgcrypt-devel"
|
||||
short_desc="XSLT parser library from the GNOME project"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
|
@ -15,33 +15,26 @@ distfiles="http://xmlsoft.org/sources/libxslt-${version}.tar.gz
|
|||
checksum="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f
|
||||
98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends="libtool automake gettext-devel ${makedepends}"
|
||||
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
|
||||
|
||||
post_configure() {
|
||||
# Remove missing seperators and errors
|
||||
# on don't know how to make target, needed
|
||||
# by Usage:
|
||||
# Makefile is created after configure so fix here
|
||||
find ${wrksrc} -type f -name Makefile | xargs sed -i '/Usage/,/--version/d'
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
sed -e "s|/usr/include/python2.7|$XBPS_CROSS_BASE/&|g" \
|
||||
-e "s|/usr/lib/python2.7/site-packages|$XBPS_CROSS_BASE/&|g" \
|
||||
-i python/Makefile
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# Remove references to the install(1) wrapper.
|
||||
vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i ${DESTDIR}/usr/bin/xslt-config
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# Remove $XBPS_CROSS_BASE in pkg-config
|
||||
vsed -i -e "s,-I${XBPS_CROSS_BASE}/usr/include,-I\${includedir}," \
|
||||
$DESTDIR/usr/bin/xslt-config
|
||||
vsed -i -e "s,$XBPS_CROSS_BASE,,g" \
|
||||
$DESTDIR/usr/bin/xslt-config \
|
||||
$DESTDIR/usr/lib/pkgconfig/libxslt.pc \
|
||||
$DESTDIR/usr/lib/pkgconfig/libexslt.pc \
|
||||
$DESTDIR/usr/lib/xsltConf.sh
|
||||
$DESTDIR/usr/lib/pkgconfig/libexslt.pc
|
||||
fi
|
||||
vlicense COPYING
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue