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: Mon, 22 Jul 2013 07:01:20 +0000 (UTC)	[thread overview]
Message-ID: <1374441912.891d5dd86714e1c314088bc4c5497483ff454b94.mgorny@gentoo> (raw)

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

dev-python/pypy-binpackage: Use explicit PYPY_BINPKG_STORE.

Package-Manager: portage-2.2.0_alpha188

---
 .../pypy-binpackage/pypy-binpackage-2.0.2.ebuild   | 26 +++++++++++++++-------
 1 file changed, 18 insertions(+), 8 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 4dcdd19..4cb0ff8 100644
--- a/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild
+++ b/dev-python/pypy-binpackage/pypy-binpackage-2.0.2.ebuild
@@ -33,6 +33,13 @@ DEPEND=">=sys-libs/zlib-1.1.3
 S="${WORKDIR}/${MY_P}-src"
 
 pkg_pretend() {
+	if [[ ! ${PYPY_BINPKG_STORE} ]]; then
+		eerror "Please set PYPY_BINPKG_STORE to the location where built"
+		eerror "packages are to be stored."
+
+		die "Set PYPY_BINPKG_STORE."
+	fi
+
 	CHECKREQS_MEMORY="2G"
 	use amd64 && CHECKREQS_MEMORY="4G"
 	check-reqs_pkg_pretend
@@ -47,12 +54,15 @@ pkg_setup() {
 
 	local cpu
 	if use amd64 || use amd64-linux; then
-		cpu='athlon64'
+		cpu='x86-64'
+	elif use x86 || use x86-linux; then
+		# lowest with SSE2
+		cpu='pentium-m'
 	else
 		die "Unsupported arch ${ARCH}"
 	fi
 
-	export CFLAGS="-march=${cpu} -O2 -pipe"
+	export CFLAGS="-march=${cpu} -mtune=generic -O2 -pipe"
 	export CXXFLAGS=${CFLAGS}
 }
 
@@ -116,12 +126,12 @@ src_install() {
 
 	tar -cf "${BIN_P}${suffix}.tar" "${BIN_P}${suffix}" || die
 	xz -vz9 "${BIN_P}${suffix}.tar" || die
-
-	insinto /tmp
-	doins *.tar.xz
 }
 
-pkg_postinst() {
-	mkdir -p "${ROOT%/}"/home/mgorny/pypy-bin || die
-	mv "${ROOT%/}"/tmp/${BIN_P}*.tar.xz "${ROOT%/}"/home/mgorny/pypy-bin || die
+# Yup, very hacky.
+pkg_preinst() {
+	# integrity check.
+	[[ ${PYPY_BINPKG_STORE} ]] || die 'PYPY_BINPKG_STORE unset, wtf?!'
+	mkdir -p "${ROOT%/}${PYPY_BINPKG_STORE}" || die
+	mv "${ROOT%/}"/tmp/${BIN_P}*.tar.xz "${ROOT%/}${PYPY_BINPKG_STORE}" || die
 }


             reply	other threads:[~2013-07-22  7:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22  7:01 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-21 11:32 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=1374441912.891d5dd86714e1c314088bc4c5497483ff454b94.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