From 105de5a836c3ee7e4dae262692f8e2f011d6cb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 23 Feb 2022 10:04:27 +0700 Subject: [PATCH] libxslt: change homepage, build python 3 bindings homepage picked from specs file. --- srcpkgs/libxslt-python3 | 1 + srcpkgs/libxslt/template | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/libxslt-python3 diff --git a/srcpkgs/libxslt-python3 b/srcpkgs/libxslt-python3 new file mode 120000 index 00000000000..fbcaa3cb7ad --- /dev/null +++ b/srcpkgs/libxslt-python3 @@ -0,0 +1 @@ +libxslt \ No newline at end of file diff --git a/srcpkgs/libxslt/template b/srcpkgs/libxslt/template index fbede2817bf..ec65d71f197 100644 --- a/srcpkgs/libxslt/template +++ b/srcpkgs/libxslt/template @@ -1,18 +1,19 @@ # Template file for 'libxslt' pkgname=libxslt version=1.1.35 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static --disable-dependency-tracking" -hostmakedepends="docbook-xml docbook-xsl libtool pkg-config" -makedepends="libxml2-devel libgcrypt-devel" +hostmakedepends="docbook-xml docbook-xsl libtool pkg-config python3" +makedepends="libxml2-devel libgcrypt-devel python3-devel" short_desc="XSLT parser library from the GNOME project" maintainer="Orphaned " license="MIT" -homepage="http://xmlsoft.org/XSLT/" -distfiles="https://download.gnome.org/sources/libxslt/${version%.*}/libxslt-${version}.tar.xz" +homepage="https://gitlab.gnome.org/GNOME/libxslt" +distfiles="${GNOME_SITE}/libxslt/${version%.*}/libxslt-${version}.tar.xz" checksum=8247f33e9a872c6ac859aa45018bc4c4d00b97e2feac9eebc10c93ce1f34dd79 python_version=3 +CFLAGS="-I$XBPS_CROSS_BASE/usr/include/python$py3_ver" if [ "$CROSS_BUILD" ]; then hostmakedepends+=" libxslt" @@ -58,5 +59,15 @@ libxslt-devel_package() { vmove usr/share/aclocal vmove usr/share/doc vmove usr/share/man/man3 + vmove usr/share/gtk-doc + vmove usr/lib/cmake + } +} + +libxslt-python3_package() { + depends="python3 ${sourcepkg}>=${version}" + short_desc+=" - Python 3 bindings" + pkg_install() { + vmove "${py3_lib}" } }