Mail archive
alpine-aports

[alpine-aports] [PATCH] main/boost: new upstream version 1.59.0, build with python3 support

From: Christian Kampka <christian_at_kampka.net>
Date: Mon, 2 Nov 2015 17:43:02 +0100

---
 main/boost/APKBUILD | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/main/boost/APKBUILD b/main/boost/APKBUILD
index c393344..80196a4 100644
--- a/main/boost/APKBUILD
+++ b/main/boost/APKBUILD
_at_@ -1,6 +1,6 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=boost
-pkgver=1.58.0
+pkgver=1.59.0
 
 _x=${pkgver%%.*}	# strip .y.z
 _y=${pkgver%.*}		# strip .z
_at_@ -8,14 +8,14 @@ _y=${_y#*.}		# strip x.
 _z=${pkgver##*.}	# strip x.y.
 _ver=${_x}_${_y}_${_z}
 
-pkgrel=2
+pkgrel=0
 pkgdesc="Free peer-reviewed portable C++ source libraries"
 url="http://www.boost.org/"
 arch="all"
 license="custom"
 depends=
 depends_dev="linux-headers"
-makedepends="$depends_dev python-dev>=2.6 flex bison bzip2-dev zlib-dev"
+makedepends="$depends_dev python-dev>=2.6 python3-dev flex bison bzip2-dev zlib-dev"
 subpackages="$pkgname-dev $pkgname-doc
 $pkgname-date_time
 $pkgname-filesystem
_at_@ -24,6 +24,7 @@ $pkgname-iostreams
 $pkgname-math
 $pkgname-prg_exec_monitor
 $pkgname-program_options
+$pkgname-python3:py3
 $pkgname-python:py
 $pkgname-random
 $pkgname-regex
_at_@ -36,6 +37,7 @@ $pkgname-wave
 $pkgname-wserialization
 "
 source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$_ver.tar.gz
+  0001-fix-condition-for-make_setter-overload.patch
 	"
 
 _builddir="$srcdir"/${pkgname}_${_ver}
_at_@ -47,10 +49,15 @@ prepare() {
 		esac
 	done
 
+	PY2_VERSION=$(python -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
+
+	PY3_VERSION=$(python3 -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
+
 	# create user-config.jam
 	cat > user-config.jam <<__EOF__
 
 using gcc : : $CC : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
+using python : ${PY3_VERSION} : /usr/bin/python3 : /usr/include/python${PY3_VERSION}m : /usr/lib ;
 
 __EOF__
 }
_at_@ -64,7 +71,7 @@ _options="--user-config=\"$_builddir/user-config.jam\"
 	link=shared,static
 	cflags=-fno-strict-aliasing
 	-sPYTHON_ROOT=/usr
-	-sPYTHON_VERSION=2.6
+	-sPYTHON_VERSION=${PY2_VERSION}
 	-sTOOLS=gcc
 	--layout=tagged
 	-q
_at_@ -114,6 +121,7 @@ package() {
 
 _mvlib() {
 	pkgdesc="Boost $1 library"
+	[ -n "$2" ] && depends="$depends $2"
 	mkdir -p "$subpkgdir"/usr/lib
 	mv "$pkgdir"/usr/lib/libboost_$1* "$subpkgdir"/usr/lib/
 }
_at_@ -125,7 +133,8 @@ iostreams() { _mvlib iostreams; }
 math() { _mvlib math; }
 prg_exec_monitor() { _mvlib prg_exec_monitor; }
 program_options() { _mvlib program_options; }
-py() { _mvlib python; }
+py3() { _mvlib python3 python3; }
+py() { _mvlib python python; }
 random() { _mvlib random; }
 regex() { _mvlib regex; }
 serialization() { _mvlib serialization; }
_at_@ -137,6 +146,9 @@ wave() { _mvlib wave; }
 wserialization() { _mvlib wserialization; }
 
 
-md5sums="5a5d5614d9a07672e1ab2a250b5defc5  boost_1_58_0.tar.gz"
-sha256sums="a004d9b3fa95e956383693b86fce1b68805a6f71c2e68944fa813de0fb8c8102  boost_1_58_0.tar.gz"
-sha512sums="b49c6e6d2eb87bf08a45ef84c3dce2a86501fbf00012669e433812b936631210bc42dc3810c17bc0dd399eb8e71b55fe51c12c41dad8fdd803b893234de01245  boost_1_58_0.tar.gz"
+md5sums="51528a0e3b33d9e10aaa311d9eb451e3  boost_1_59_0.tar.gz
+2bf0efa72bfcf98681c5e3d8b2cfd2a8  0001-fix-condition-for-make_setter-overload.patch"
+sha256sums="47f11c8844e579d02691a607fbd32540104a9ac7a2534a8ddaef50daf502baac  boost_1_59_0.tar.gz
+32adf03897e3a2bddfa1ae82034295b125dbe3f191360e6bfbccdc421b9980fa  0001-fix-condition-for-make_setter-overload.patch"
+sha512sums="05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae  boost_1_59_0.tar.gz
+7076b8151762be886f1ae8587d4fec88c48b5d47b1a2b092a09b440577b65038ac6fdfb499ffed8c2a838785ccb9955135ff1a8f0c51070c04fb26e4d9a6cfdf  0001-fix-condition-for-make_setter-overload.patch"
-- 
2.6.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Nov 02 2015 - 17:43:02 GMT