mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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'
|
# Template file for 'libxslt'
|
||||||
pkgname=libxslt
|
pkgname=libxslt
|
||||||
version=1.1.34
|
version=1.1.34
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-dependency-tracking"
|
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"
|
makedepends="python-devel libxml2-devel libxml2-python libgcrypt-devel"
|
||||||
short_desc="XSLT parser library from the GNOME project"
|
short_desc="XSLT parser library from the GNOME project"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -15,33 +15,26 @@ distfiles="http://xmlsoft.org/sources/libxslt-${version}.tar.gz
|
||||||
checksum="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f
|
checksum="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f
|
||||||
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() {
|
post_configure() {
|
||||||
# Remove missing seperators and errors
|
# Remove missing seperators and errors
|
||||||
# on don't know how to make target, needed
|
# on don't know how to make target, needed
|
||||||
# by Usage:
|
# by Usage:
|
||||||
# Makefile is created after configure so fix here
|
# Makefile is created after configure so fix here
|
||||||
find ${wrksrc} -type f -name Makefile | xargs sed -i '/Usage/,/--version/d'
|
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() {
|
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
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Remove $XBPS_CROSS_BASE in pkg-config
|
# 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" \
|
vsed -i -e "s,$XBPS_CROSS_BASE,,g" \
|
||||||
$DESTDIR/usr/bin/xslt-config \
|
$DESTDIR/usr/lib/pkgconfig/libexslt.pc
|
||||||
$DESTDIR/usr/lib/pkgconfig/libxslt.pc \
|
|
||||||
$DESTDIR/usr/lib/pkgconfig/libexslt.pc \
|
|
||||||
$DESTDIR/usr/lib/xsltConf.sh
|
|
||||||
fi
|
fi
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue