From 3a9aeacde03485588f78984c4baf040ab003dd32 Mon Sep 17 00:00:00 2001 From: meator Date: Sat, 25 Sep 2021 17:22:09 +0200 Subject: [PATCH] libxslt: fix manpage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close: #33119 sgn: fix cross build manpage Co-authored-by: Đoàn Trần Công Danh --- srcpkgs/libxslt/patches/fix-manpage.patch | 13 +++++++++++++ srcpkgs/libxslt/template | 18 ++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/libxslt/patches/fix-manpage.patch diff --git a/srcpkgs/libxslt/patches/fix-manpage.patch b/srcpkgs/libxslt/patches/fix-manpage.patch new file mode 100644 index 00000000000..881338aca48 --- /dev/null +++ b/srcpkgs/libxslt/patches/fix-manpage.patch @@ -0,0 +1,13 @@ +--- a/doc/xsltproc.xml 2019-10-30 21:02:14.000000000 +0100 ++++ b/doc/xsltproc.xml 2021-09-24 21:00:52.628526237 +0200 +@@ -1,8 +1,8 @@ + + ++ href="/usr/share/xsl/docbook/manpages/docbook.xsl"?> + xsltproc"> + ]> diff --git a/srcpkgs/libxslt/template b/srcpkgs/libxslt/template index 42d80f08ac9..fd7fba7ba74 100644 --- a/srcpkgs/libxslt/template +++ b/srcpkgs/libxslt/template @@ -1,10 +1,11 @@ # Template file for 'libxslt' pkgname=libxslt version=1.1.34 -revision=4 +revision=5 build_style=gnu-configure configure_args="--disable-static --disable-dependency-tracking" -hostmakedepends="libtool python-devel libxml2-python pkg-config" +hostmakedepends="docbook-xml docbook-xsl 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 " @@ -15,6 +16,10 @@ distfiles="http://xmlsoft.org/sources/libxslt-${version}.tar.gz checksum="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f 98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f" +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" libxslt" +fi + post_configure() { # Remove missing seperators and errors # on don't know how to make target, needed @@ -28,6 +33,15 @@ post_configure() { fi } +post_build() { + if [ "$CROSS_BUILD" ]; then + XSLTPROC=/usr/bin/xsltproc + else + XSLTPROC=${wrksrc}/xsltproc/xsltproc + fi + make -C doc XSLTPROC=$XSLTPROC +} + post_install() { if [ "$CROSS_BUILD" ]; then # Remove $XBPS_CROSS_BASE in pkg-config