From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A01D513829C for ; Wed, 1 Jun 2016 18:52:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE033254027; Wed, 1 Jun 2016 18:52:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82019254027 for ; Wed, 1 Jun 2016 18:52:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6A0F340BBA for ; Wed, 1 Jun 2016 18:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 565D5342 for ; Wed, 1 Jun 2016 18:52:03 +0000 (UTC) From: "Sergey Popov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergey Popov" Message-ID: <1464807082.0b0f9f37d0995be0bb173025f37e7e34bc45a5dc.pinkbyte@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boost-numpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/boost-numpy/boost-numpy-9999.ebuild X-VCS-Directories: dev-libs/boost-numpy/ X-VCS-Committer: pinkbyte X-VCS-Committer-Name: Sergey Popov X-VCS-Revision: 0b0f9f37d0995be0bb173025f37e7e34bc45a5dc X-VCS-Branch: master Date: Wed, 1 Jun 2016 18:52:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e997152b-9a1f-4a3f-8588-2fbbb0a5a93b X-Archives-Hash: 819399c40f5a2bb082b798b4bf36d99c commit: 0b0f9f37d0995be0bb173025f37e7e34bc45a5dc Author: Sergey Popov gentoo org> AuthorDate: Wed Jun 1 18:51:22 2016 +0000 Commit: Sergey Popov gentoo org> CommitDate: Wed Jun 1 18:51:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b0f9f37 dev-libs/boost-numpy: update live ebuild Bump EAPI to 6, use git-r3 and python-single-r1 eclasses. Add compatibility with new Python ABI naming. Package-Manager: portage-2.3.0_rc1 dev-libs/boost-numpy/boost-numpy-9999.ebuild | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/dev-libs/boost-numpy/boost-numpy-9999.ebuild b/dev-libs/boost-numpy/boost-numpy-9999.ebuild index 8a984c5..aef1918 100644 --- a/dev-libs/boost-numpy/boost-numpy-9999.ebuild +++ b/dev-libs/boost-numpy/boost-numpy-9999.ebuild @@ -1,15 +1,16 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit cmake-utils +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +inherit cmake-utils python-single-r1 DESCRIPTION="Boost.Python interface for NumPy" HOMEPAGE="https://github.com/ndarray/Boost.NumPy" if [ ${PV} == 9999 ]; then - inherit git-2 + inherit git-r3 EGIT_REPO_URI="git://github.com/ndarray/Boost.NumPy.git \ https://github.com/ndarray/Boost.NumPy.git" else @@ -18,14 +19,25 @@ fi LICENSE="Boost-1.0" SLOT=0 -IUSE="doc examples" KEYWORDS="" -CDEPEND="dev-python/numpy - dev-libs/boost[python]" +IUSE="doc examples" + +CDEPEND="dev-python/numpy[${PYTHON_USEDEP}] + dev-libs/boost[python,${PYTHON_USEDEP}]" DEPEND="${CDEPEND}" RDEPEND="${CDEPEND}" +src_prepare() { + # Make sure that new Python ABI names are searched too + sed -i \ + -e 's/PythonLibsNew/PythonLibs/' \ + -e 's/python3/python/' \ + CMakeLists.txt || die + + cmake-utils_src_prepare +} + src_install() { cmake-utils_src_install