[arch-commits] Commit in pybind11/trunk (PKGBUILD)
Daniel Bermond
dbermond at archlinux.org
Fri Jun 21 18:19:24 UTC 2019
Date: Friday, June 21, 2019 @ 18:19:23
Author: dbermond
Revision: 482624
upgpkg: pybind11 2.3.0-1
- Updated to version 2.3.0.
- Drop python2 suppport (python2 will reach End Of Life
in 2020-01-01).
Modified:
pybind11/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++--------------------------------
1 file changed, 13 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-21 17:22:42 UTC (rev 482623)
+++ PKGBUILD 2019-06-21 18:19:23 UTC (rev 482624)
@@ -1,32 +1,28 @@
-# Maintainer : Daniel Bermond < archlinux-org: dbermond >
+# Maintainer : Daniel Bermond <dbermond at archlinux.org>
# Maintainer : Santiago Torres-Arias <santiago at archlinux.org>
# Contributor: Matthew Ellison <matt+aur at arroyonetworks.com>
pkgname=pybind11
-pkgver=2.2.4
-pkgrel=5
+pkgver=2.3.0
+pkgrel=1
pkgdesc='A lightweight header-only library that exposes C++ types in Python and vice versa'
arch=('any')
url='https://pybind11.readthedocs.org/'
license=('BSD')
-optdepends=('python: to target bindings supporting python 3'
- 'python2: to target bindings supporting python 2')
+optdepends=('python: for python bindings')
makedepends=('cmake' 'boost' 'eigen' 'python' 'python-setuptools' 'python-pytest'
-'python-sphinx' 'python2' 'python2-setuptools' 'python2-pytest' 'python-breathe')
-checkdepends=('python-numpy' 'python-scipy' 'python2-numpy' 'python2-scipy')
+ 'python-sphinx' 'python-sphinx_rtd_theme' 'python-breathe')
+checkdepends=('python-py' 'python-pluggy' 'python-hypothesis' 'python-numpy' 'python-scipy')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/pybind/pybind11/archive/v${pkgver}.tar.gz")
-sha256sums=('b69e83658513215b8d1443544d0549b7d231b9f201f6fc787a2b2218b408181e')
+sha256sums=('0f34838f2c8024a6765168227ba587b3687729ebf03dc912f88ff75c7aa9cfe8')
prepare() {
cd "${pkgname}-${pkgver}"
- mkdir -p build-cmake{,-py2}
+ mkdir -p build-cmake
}
build () {
- local _pythonver
- _pythonver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"
-
# python modules
cd "${pkgname}-${pkgver}"
python setup.py build
@@ -33,19 +29,8 @@
# cmake files and tests
cd build-cmake
- cmake \
- -DCMAKE_INSTALL_PREFIX='/usr' \
- -DPYTHON_EXECUTABLE:FILEPATH="/usr/bin/python${_pythonver}" \
- -Wno-dev \
- ..
+ cmake -DCMAKE_INSTALL_PREFIX:PATH='/usr' -Wno-dev ..
make all mock_install
- cd "${srcdir}/${pkgname}-${pkgver}/build-cmake-py2"
- cmake \
- -DCMAKE_INSTALL_PREFIX='/usr' \
- -DPYTHON_EXECUTABLE:FILEPATH='/usr/bin/python2.7' \
- -Wno-dev \
- ..
- make all mock_install
# manpage
cd "${srcdir}/${pkgname}-${pkgver}/docs"
@@ -55,19 +40,14 @@
check() {
cd "${pkgname}-${pkgver}"
- make -C build-cmake check # python3 tests
- make -C build-cmake-py2 check # python2 tests
+ make -C build-cmake check
}
package() {
cd "${pkgname}-${pkgver}"
- local _pythonver
- _pythonver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"
-
# python modules
python setup.py install --root="$pkgdir" --install-headers='/usr/include/pybind11' --skip-build --optimize='1'
- python2 setup.py install --root="$pkgdir" --install-headers='/usr/include/pybind11' --skip-build --optimize='1'
# cmake files
mkdir -p "${pkgdir}/usr/share/cmake/${pkgname}"
@@ -74,9 +54,10 @@
cd build-cmake/mock_install/share/cmake/pybind11
install -m644 *.cmake "${pkgdir}/usr/share/cmake/${pkgname}"
- # manpage
+ # man page
cd "${srcdir}/${pkgname}-${pkgver}/docs/.build/man"
- install -D -m644 "${pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
+ install -D -m644 "${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"
+ sed -i '/^\.TH/s/"1"/"7"/' "${pkgdir}/usr/share/man/man7/${pkgname}.7"
# license
cd "${srcdir}/${pkgname}-${pkgver}"
More information about the arch-commits
mailing list