public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergey Popov" <pinkbyte@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boost-numpy/
Date: Wed,  1 Jun 2016 18:52:03 +0000 (UTC)	[thread overview]
Message-ID: <1464807082.0b0f9f37d0995be0bb173025f37e7e34bc45a5dc.pinkbyte@gentoo> (raw)

commit:     0b0f9f37d0995be0bb173025f37e7e34bc45a5dc
Author:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  1 18:51:22 2016 +0000
Commit:     Sergey Popov <pinkbyte <AT> gentoo <DOT> 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
 


             reply	other threads:[~2016-06-01 18:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01 18:52 Sergey Popov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-06-01 19:09 [gentoo-commits] repo/gentoo:master commit in: dev-libs/boost-numpy/ Sergey Popov
2018-06-27 20:32 Pacho Ramos
2019-04-16  9:50 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464807082.0b0f9f37d0995be0bb173025f37e7e34bc45a5dc.pinkbyte@gentoo \
    --to=pinkbyte@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox