From 3ec7edb4d0376fe8d34b7162ba7e519e766f1be2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 23 Jul 2016 19:01:21 +0200 Subject: [PATCH] libtorrent-rasterbar: split python bindings into -python; fixes cross compilation. --- srcpkgs/libtorrent-rasterbar-python | 1 + srcpkgs/libtorrent-rasterbar/template | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/libtorrent-rasterbar-python diff --git a/srcpkgs/libtorrent-rasterbar-python b/srcpkgs/libtorrent-rasterbar-python new file mode 120000 index 00000000000..ee820823e81 --- /dev/null +++ b/srcpkgs/libtorrent-rasterbar-python @@ -0,0 +1 @@ +libtorrent-rasterbar \ No newline at end of file diff --git a/srcpkgs/libtorrent-rasterbar/template b/srcpkgs/libtorrent-rasterbar/template index 5b579c38800..4a665a2207c 100644 --- a/srcpkgs/libtorrent-rasterbar/template +++ b/srcpkgs/libtorrent-rasterbar/template @@ -1,23 +1,37 @@ # Template file for 'libtorrent-rasterbar' pkgname=libtorrent-rasterbar version=1.0.9 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--enable-python-binding --with-libgeoip" -hostmakedepends="pkg-config intltool python-devel" -makedepends="libressl-devel boost-devel boost-python python-devel geoip-devel" +configure_args="--with-libgeoip --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib" +hostmakedepends="pkg-config intltool" +makedepends="libressl-devel boost-devel geoip-devel" short_desc="C++ bittorrent library by Rasterbar Software" maintainer="Eivind Uggedal " homepage="http://www.rasterbar.com/products/libtorrent/" license="BSD" distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz" checksum=11a93125ed49f796fca83da925ab7dc29e91d88b915f078caaddaaf559d63db6 -nocross="http://build.voidlinux.eu/builders/armv6l_builder/builds/16858/steps/shell_3/logs/stdio" + +subpackages="libtorrent-rasterbar-devel" + +if [ -z "$CROSS_BUILD" ]; then + configure_args+=" --enable-python-binding" + makedepends+=" boost-python python-devel" + subpackages+=" libtorrent-rasterbar-python" +fi post_install() { vlicense LICENSE } +libtorrent-rasterbar-python_package() { + replaces="${sourcepkg}<1.0.9_2" + short_desc+=" - python bindings" + pkg_install() { + vmove usr/lib/python* + } +} libtorrent-rasterbar-devel_package() { depends="${sourcepkg}>=${version}_${revision} libressl-devel>=2.1.4 boost-devel geoip-devel" short_desc+=" - development files"