public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH python-utils-r1 3/4] Add support for PyPy 2.1 paths.
Date: Wed, 21 Aug 2013 21:54:25 +0200	[thread overview]
Message-ID: <1377114866-2669-3-git-send-email-mgorny@gentoo.org> (raw)
In-Reply-To: <20130821215352.3ba7a2af@gentoo.org>

---
 gx86/eclass/python-utils-r1.eclass | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/gx86/eclass/python-utils-r1.eclass b/gx86/eclass/python-utils-r1.eclass
index e798c8d..c34bcbd 100644
--- a/gx86/eclass/python-utils-r1.eclass
+++ b/gx86/eclass/python-utils-r1.eclass
@@ -215,19 +215,19 @@ python_export() {
 	local impl var
 
 	case "${1}" in
-		python*|jython*)
-			impl=${1/_/.}
-			shift
-			;;
 		pypy-c*)
 			impl=${1}
 			shift
 			;;
-		pypy*)
+		pypy1*|pypy2_0)
 			local v=${1#pypy}
 			impl=pypy-c${v/_/.}
 			shift
 			;;
+		python*|jython*|pypy-*)
+			impl=${1/_/.}
+			shift
+			;;
 		*)
 			impl=${EPYTHON}
 			[[ ${impl} ]] || die "python_export: no impl nor EPYTHON"
@@ -248,15 +248,15 @@ python_export() {
 			PYTHON_SITEDIR)
 				local dir
 				case "${impl}" in
-					python*)
-						dir=/usr/$(get_libdir)/${impl}
-						;;
 					jython*)
 						dir=/usr/share/${impl}/Lib
 						;;
-					pypy*)
+					pypy-c*)
 						dir=/usr/$(get_libdir)/${impl/-c/}
 						;;
+					python*|pypy*)
+						dir=/usr/$(get_libdir)/${impl}
+						;;
 				esac
 
 				export PYTHON_SITEDIR=${EPREFIX}${dir}/site-packages
@@ -271,9 +271,12 @@ python_export() {
 					jython*)
 						dir=/usr/share/${impl}/Include
 						;;
-					pypy*)
+					pypy-c*)
 						dir=/usr/$(get_libdir)/${impl/-c/}/include
 						;;
+					pypy*)
+						dir=/usr/$(get_libdir)/${impl}/include
+						;;
 				esac
 
 				export PYTHON_INCLUDEDIR=${EPREFIX}${dir}
@@ -500,7 +503,7 @@ _python_rewrite_shebang() {
 
 	local impl
 	case "${1}" in
-		python*|jython*|pypy-c*)
+		python*|jython*|pypy*)
 			impl=${1}
 			shift
 			;;
-- 
1.8.3.2



  parent reply	other threads:[~2013-08-21 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21 19:53 [gentoo-python] [PATCHES] Initial python-utils-r1 changes for PyPy 2.1 Michał Górny
2013-08-21 19:54 ` [gentoo-python] [PATCH python-utils-r1 1/4] Add python_is_python3() Michał Górny
2013-08-21 19:54 ` [gentoo-python] [PATCH python-utils-r1 2/4] Use python_is_python3 in the eclass Michał Górny
2013-08-21 19:54 ` Michał Górny [this message]
2013-08-21 19:54 ` [gentoo-python] [PATCH python-utils-r1 4/4] Support PyPy3 as Py3k provider Michał Górny
2013-08-22  7:46 ` [gentoo-python] [PATCH python-utils-r1] Add some tests for query functions Michał Górny

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=1377114866-2669-3-git-send-email-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=python@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