public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-astronomy/astrometry/
Date: Tue, 18 Mar 2014 19:28:44 +0000 (UTC)	[thread overview]
Message-ID: <1395016420.b99794fb384ae6826a5a46c1dc2cc755798f923f.jlec@gentoo> (raw)

commit:     b99794fb384ae6826a5a46c1dc2cc755798f923f
Author:     Joseph Jon Booker <joe <AT> neoturbine <DOT> net>
AuthorDate: Mon Mar 17 00:33:40 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Mar 17 00:33:40 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b99794fb

Use python-single-r1 and fix typo for USE=extra

Package-Manager: portage-2.2.8-r1

---
 sci-astronomy/astrometry/ChangeLog              |  5 ++++-
 sci-astronomy/astrometry/astrometry-0.43.ebuild | 18 +++++++++++++-----
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/sci-astronomy/astrometry/ChangeLog b/sci-astronomy/astrometry/ChangeLog
index afb42de..dfd71da 100644
--- a/sci-astronomy/astrometry/ChangeLog
+++ b/sci-astronomy/astrometry/ChangeLog
@@ -1,7 +1,10 @@
 # ChangeLog for sci-astronomy/astrometry
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  17 Mar 2014; Joseph Jon Booker <joe@neoturbine.net> astrometry-0.43.ebuild:
+  Use python-single-r1 and fix typo for USE=extra
+
   14 Jun 2013; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml:
   sci-astronomy/astrometry: Added extra use flag to plot
 

diff --git a/sci-astronomy/astrometry/astrometry-0.43.ebuild b/sci-astronomy/astrometry/astrometry-0.43.ebuild
index 7ba8005..4db5cfb 100644
--- a/sci-astronomy/astrometry/astrometry-0.43.ebuild
+++ b/sci-astronomy/astrometry/astrometry-0.43.ebuild
@@ -4,7 +4,8 @@
 
 EAPI=5
 
-inherit eutils toolchain-funcs
+PYTHON_COMPAT=( python2_6 python2_7 )
+inherit eutils toolchain-funcs python-single-r1
 
 MYP=${PN}.net-${PV}
 
@@ -19,12 +20,12 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="examples extra python"
 
 RDEPEND="
-	dev-python/numpy
+	dev-python/numpy[${PYTHON_USEDEP}]
 	sci-astronomy/wcslib
 	sci-libs/cfitsio
 	sci-libs/gsl
 	sys-libs/zlib
-	virtual/pyfits
+	virtual/pyfits[${PYTHON_USEDEP}]
 	extra? (
 		media-libs/libpng
 		media-libs/netpbm
@@ -41,6 +42,13 @@ src_prepare() {
 		"${FILESDIR}"/0.43-as-needed.patch \
 		"${FILESDIR}"/0.43-respect-user-flags.patch \
 		"${FILESDIR}"/0.43-system-libs.patch
+
+	python_fix_shebang "${S}"
+	sed "s|python setup-util.py|${EPYTHON} setup-util.py|" "${S}"/util/Makefile -i
+	sed "s|python setup.py|${EPYTHON} setup.py|" "${S}"/{libkd,sdss,blind}/Makefile -i
+	sed "s|python -c|${EPYTHON} -c|" "${S}"/blind/Makefile -i
+	sed "s|python <<EOF|${EPYTHON} <<EOF|" "${S}"/blind/simplexy.c -i
+	sed "s|python -V|${EPYTHON} -V|" "${S}"/Makefile -i
 }
 
 src_compile() {
@@ -56,7 +64,7 @@ src_compile() {
 			AR=$(tc-getAR) \
 			extra
 	fi
-	# TODO: work it out for multiple python abi
+
 	if use python; then
 		emake \
 			CC=$(tc-getCC) \
@@ -70,7 +78,7 @@ src_install() {
 	# TODO: install in standard directories to respect FHS
 	export INSTALL_DIR="${ED}"/usr/astrometry
 	emake install-core
-	use extra && emake -C blind install-extras
+	use extra && emake -C blind install-extra
 
 	# remove cfitsio duplicates
 	rm ${INSTALL_DIR}/bin/{fitscopy,imcopy,listhead} || die


             reply	other threads:[~2014-03-18 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 19:28 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-10-22 10:25 [gentoo-commits] proj/sci:master commit in: sci-astronomy/astrometry/ Justin Lecher
2013-06-17  1:07 Sebastien Fabbro
2013-06-14 11:26 Justin Lecher
2013-03-03 17:52 Justin Lecher

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=1395016420.b99794fb384ae6826a5a46c1dc2cc755798f923f.jlec@gentoo \
    --to=jlec@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