From d1482156f19261b9cb18a66921a34c71cdbbb5be Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 11 Aug 2019 11:14:12 +0200 Subject: [PATCH] py3boost: initial commit, version 1.69.0 --- py3boost/.footprint | 6 ++++++ py3boost/.signature | 5 +++++ py3boost/Pkgfile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 py3boost/.footprint create mode 100644 py3boost/.signature create mode 100644 py3boost/Pkgfile diff --git a/py3boost/.footprint b/py3boost/.footprint new file mode 100644 index 000000000..509ca9ac1 --- /dev/null +++ b/py3boost/.footprint @@ -0,0 +1,6 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libboost_python3.so -> libboost_python37.so.1.69.0 +-rw-r--r-- root/root usr/lib/libboost_python37.a +lrwxrwxrwx root/root usr/lib/libboost_python37.so -> libboost_python37.so.1.69.0 +-rwxr-xr-x root/root usr/lib/libboost_python37.so.1.69.0 diff --git a/py3boost/.signature b/py3boost/.signature new file mode 100644 index 000000000..897790f96 --- /dev/null +++ b/py3boost/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF32FWDt/eFQYjFKYgZqwja6s6MV+Ex6RhrJfZqtTp5TQMYkCfuWefa7kSn1nStAVJvCB94btty04xQFQQAEwfEQI= +SHA256 (Pkgfile) = 960404933b4d195797d067867b6b0ea0155f03e6b393c79032884751749cd806 +SHA256 (.footprint) = 0101b202cda513205e2b3541ba592c82ca29e08b81433c99f30d48351031ed64 +SHA256 (boost_1_69_0.tar.bz2) = 8f32d4617390d1c2d16f26a27ab60d97807b35440d45891fa340fc2648b04406 diff --git a/py3boost/Pkgfile b/py3boost/Pkgfile new file mode 100644 index 000000000..ab0bd2284 --- /dev/null +++ b/py3boost/Pkgfile @@ -0,0 +1,45 @@ +# Description: Boost python3 binding. +# URL: https://www.boost.org/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Packager: Pedja, predivan at mts dot rs +# Depends on: boost python3 + +name=py3boost +version=1.69.0 +release=2 +source=(https://downloads.sourceforge.net/project/${name#py3}/${name#py3}/$version/${name#py3}_${version//./_}.tar.bz2) + +build() { + cd ${name#py3}_${version//./_} + + # these numbers need to be changed according to systems python3 version + sed -i '19s:=python:=python3.7:' bootstrap.sh + # here too + sed -i '20s:=:=3.7:' bootstrap.sh + + export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3" + + export _stagedir="$SRC/stagedir" + + ./bootstrap.sh \ + --prefix="${_stagedir}" \ + --with-toolset=gcc \ + --with-icu \ + --with-libraries=python + + ./b2 stage \ + variant=release \ + threading=multi \ + runtime-link=shared \ + link=shared,static \ + debug-symbols=off \ + toolset=gcc \ + --prefix="${_stagedir/python3}" \ + --with-python \ + install + + install -dm 755 $PKG/usr/lib + cp -a ${_stagedir}/lib/libboost_python3* $PKG/usr/lib + #https://github.com/boostorg/python/issues/203#issuecomment-391477685 + ln -srL $PKG/usr/lib/libboost_python3{7,}.so +}