* [gentoo-commits] repo/sync/gentoo:master commit in: sci-astronomy/astrometry/files/, sci-astronomy/astrometry/
@ 2016-11-17 18:31 repo mirror & CI @ bonedaddy.net
  0 siblings, 0 replies; only message in thread
From: repo mirror & CI @ bonedaddy.net @ 2016-11-17 18:31 UTC (permalink / raw
  To: gentoo-commits
commit:     80af1e25462e8f08484b82b17d9e67ac5a9c4712
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 17 00:33:05 2016 +0000
Commit:     repo mirror & CI @ bonedaddy.net <mgorny <AT> bonedaddy <DOT> net>
CommitDate: Thu Nov 17 17:26:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/sync/gentoo.git/commit/?id=80af1e25
sci-astronomy/astrometry: fixed a few issues and cleanup
* missing slashes in configuration  (bug #595024)
* QA implicit declarations (bug #595162)
* download page and upstream release metadata
* remove extra USE flag, it needs graphics in all cases (bug #595160)
Package-Manager: portage-2.3.2
 ...ry-0.67-r1.ebuild => astrometry-0.67-r2.ebuild} | 50 +++++++++++-----------
 .../astrometry/files/astrometry-0.67-qsortr.patch  | 10 +++++
 sci-astronomy/astrometry/metadata.xml              |  6 +--
 3 files changed, 38 insertions(+), 28 deletions(-)
diff --git a/sci-astronomy/astrometry/astrometry-0.67-r1.ebuild b/sci-astronomy/astrometry/astrometry-0.67-r2.ebuild
similarity index 65%
rename from sci-astronomy/astrometry/astrometry-0.67-r1.ebuild
rename to sci-astronomy/astrometry/astrometry-0.67-r2.ebuild
index f46ffd0..d3149dc 100644
--- a/sci-astronomy/astrometry/astrometry-0.67-r1.ebuild
+++ b/sci-astronomy/astrometry/astrometry-0.67-r2.ebuild
@@ -12,25 +12,24 @@ MYP=${PN}.net-${PV}
 
 DESCRIPTION="Automated astrometric calibration programs and service"
 HOMEPAGE="http://astrometry.net/"
-SRC_URI="${HOMEPAGE}/downloads/${MYP}.tar.gz"
+SRC_URI="https://github.com/dstndstn/astrometry.net/releases/download/${PV}/${MYP}.tar.gz"
 
 LICENSE="BSD GPL-2 GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="examples extra"
+IUSE="examples"
 
 RDEPEND="
 	dev-python/astropy[${PYTHON_USEDEP}]
 	dev-python/numpy[${PYTHON_USEDEP}]
+	media-libs/libpng:0
+	media-libs/netpbm
 	sci-astronomy/wcslib:0=
 	sci-libs/cfitsio:0=
 	sci-libs/gsl:0=
 	sys-libs/zlib:0=
-	extra? (
-		media-libs/libpng:0
-		media-libs/netpbm
-		virtual/jpeg:0
-		x11-libs/cairo )"
+	virtual/jpeg:0
+	x11-libs/cairo"
 DEPEND="${RDEPEND}
 	dev-lang/swig:0
 	virtual/pkgconfig"
@@ -38,8 +37,9 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${MYP}"
 
 PATCHES=(
-	"${FILESDIR}/${P}-soname.patch"
-	"${FILESDIR}/${P}-dynlink.patch"
+	"${FILESDIR}"/${P}-soname.patch
+	"${FILESDIR}"/${P}-dynlink.patch
+	"${FILESDIR}"/${P}-qsortr.patch
 )
 
 src_prepare() {
@@ -54,15 +54,16 @@ src_prepare() {
 	# respect use compilation flags
 	sed -e '/-O3/d' -e '/-fomit-frame-pointer/d' -i util/makefile.common || die
 	# as-needed
-	sed -e "s|-lm|$(pkg-config --libs wcslib gsl)|" -i util/Makefile || die
+	sed -e "s|-lm|-lm $($(tc-getPKG_CONFIG) --libs wcslib gsl)|" -i util/Makefile || die
 	export SYSTEM_GSL=yes
 }
 
 src_compile() {
 	tc-export CC RANLIB AR
+	# fragile makefiles, build targets sequentially
 	emake
 	emake py
-	use extra && emake extra
+	emake extra
 	emake report.txt
 }
 
@@ -78,30 +79,29 @@ src_test() {
 
 ap_make() {
 	emake \
-		INSTALL_DIR="${ED}usr" \
-		DATA_INSTALL_DIR="${ED}usr/share/astrometry" \
-		LIB_INSTALL_DIR="${ED}usr/$(get_libdir)" \
-		ETC_INSTALL_DIR="${ED}etc" \
-		MAN1_INSTALL_DIR="${ED}usr/share/man/man1" \
-		DOC_INSTALL_DIR="${ED}usr/share/doc/${PF}" \
-		EXAMPLE_INSTALL_DIR="${ED}usr/share/doc/${PF}/examples" \
-		PY_BASE_INSTALL_DIR="${ED}$(python_get_sitedir)/astrometry" \
+		INSTALL_DIR="${ED%/}/usr" \
+		DATA_INSTALL_DIR="${ED%/}/usr/share/astrometry" \
+		LIB_INSTALL_DIR="${ED%/}/usr/$(get_libdir)" \
+		ETC_INSTALL_DIR="${ED%/}/etc" \
+		MAN1_INSTALL_DIR="${ED%/}/usr/share/man/man1" \
+		DOC_INSTALL_DIR="${ED%/}/usr/share/doc/${PF}" \
+		EXAMPLE_INSTALL_DIR="${ED%/}/usr/share/doc/${PF}/examples" \
+		PY_BASE_INSTALL_DIR="${ED%/}$(python_get_sitedir)/astrometry" \
 		PY_BASE_LINK_DIR="../$(python_get_sitedir | sed -e 's|/usr/||')/astrometry" \
-		FINAL_DIR="${EPREFIX}usr" \
-		DATA_FINAL_DIR="${EPREFIX}usr/share/astrometry" \
+		FINAL_DIR="${EPREFIX%/}/usr" \
+		DATA_FINAL_DIR="${EPREFIX%/}/usr/share/astrometry" \
 		$@
 }
 
 src_install() {
 	ap_make install-core
 	ap_make -C util install
-	use extra && ap_make -C blind install-extra
+	ap_make -C blind install-extra
 
-	# remove cfitsio duplicates and non installable libraries
+	# remove duplicates and non installable libraries
 	rm "${ED}"/usr/bin/{fitscopy,imcopy,listhead} || die
 	rm "${ED}"/usr/$(get_libdir)/lib*.a || die
-
-	# remove license file
 	rm "${ED}"/usr/share/doc/${PF}/LICENSE || die
+
 	use examples || rm -r "${ED}"/usr/share/doc/${PF}/examples
 }
diff --git a/sci-astronomy/astrometry/files/astrometry-0.67-qsortr.patch b/sci-astronomy/astrometry/files/astrometry-0.67-qsortr.patch
new file mode 100644
index 00000000..6a78688
--- /dev/null
+++ b/sci-astronomy/astrometry/files/astrometry-0.67-qsortr.patch
@@ -0,0 +1,10 @@
+--- a/util/test_qsort_r.c	2016-11-17 00:21:29.211561563 +0000
++++ b/util/test_qsort_r.c	2016-11-17 00:21:43.281493095 +0000
+@@ -5,6 +5,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+ 
+ #include "cutest.h"
+ 
diff --git a/sci-astronomy/astrometry/metadata.xml b/sci-astronomy/astrometry/metadata.xml
index a08f005..2e74835 100644
--- a/sci-astronomy/astrometry/metadata.xml
+++ b/sci-astronomy/astrometry/metadata.xml
@@ -12,7 +12,7 @@
   calibration meta-data, plus lists of known objects falling inside
   the field of view.
 </longdescription>
-  <use>
-    <flag name="extra">Add extra tools for astrometry.net, specifically for plots</flag>
-  </use>
+<upstream>
+  <remote-id type="github">dstndstn/astrometry.net</remote-id>
+</upstream>
 </pkgmetadata>
^ permalink raw reply related	[flat|nested] only message in thread
only message in thread, other threads:[~2016-11-17 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17 18:31 [gentoo-commits] repo/sync/gentoo:master commit in: sci-astronomy/astrometry/files/, sci-astronomy/astrometry/ repo mirror & CI @ bonedaddy.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox