public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mgorny:master commit in: dev-python/pypy-binpackage/
Date: Sun, 21 Jul 2013 11:32:17 +0000 (UTC)	[thread overview]
Message-ID: <1374406345.f428b8b16218ee40c93d53d603c56684c047ba34.mgorny@gentoo> (raw)

commit:     f428b8b16218ee40c93d53d603c56684c047ba34
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 21 11:32:25 2013 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 21 11:32:25 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=f428b8b1

dev-python/pypy-binpackage: Force PyPy, store CFLAGS in ebuild.

Package-Manager: portage-2.2.0_alpha188

---
 dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild b/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild
index 40f0a66..4dcdd19 100644
--- a/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild
+++ b/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild
@@ -4,8 +4,9 @@
 
 EAPI=5
 
-# XXX: test other implementations
-PYTHON_COMPAT=( python2_7 pypy{1_8,1_9,2_0} )
+# pypy should be preferred, per upstream.
+# that's the easiest way of forcing it.
+PYTHON_COMPAT=( pypy{1_8,1_9,2_0} )
 inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-any-r1 toolchain-funcs versionator
 
 MY_P=pypy-${PV}
@@ -43,6 +44,16 @@ pkg_pretend() {
 pkg_setup() {
 	pkg_pretend
 	python-any-r1_pkg_setup
+
+	local cpu
+	if use amd64 || use amd64-linux; then
+		cpu='athlon64'
+	else
+		die "Unsupported arch ${ARCH}"
+	fi
+
+	export CFLAGS="-march=${cpu} -O2 -pipe"
+	export CXXFLAGS=${CFLAGS}
 }
 
 src_prepare() {


             reply	other threads:[~2013-07-21 11:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21 11:32 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-05 23:12 [gentoo-commits] dev/mgorny:master commit in: dev-python/pypy-binpackage/ Michał Górny
2014-11-05 22:20 Michał Górny
2014-07-03  6:43 Michał Górny
2014-06-30  8:46 Michał Górny
2014-06-30  8:46 Michał Górny
2013-07-24 20:41 Michał Górny
2013-07-22  7:01 Michał Górny
2013-07-22  7:01 Michał Górny
2013-07-22  7:01 Michał Górny
2013-07-21 11:16 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=1374406345.f428b8b16218ee40c93d53d603c56684c047ba34.mgorny@gentoo \
    --to=mgorny@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