commit:     57ba1e264928bd287f497f1c2f44ef853b3944d4
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 21:51:02 2014 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 21:51:02 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=57ba1e26

sci-misc/fitscut: Switch to EAPI5, autotools-utils, fixed for prefix

Package-Manager: portage-2.2.8-prefix

---
 sci-misc/fitscut/ChangeLog            |  7 +++++--
 sci-misc/fitscut/fitscut-1.4.4.ebuild | 23 ++++++++++++-----------
 sci-misc/fitscut/metadata.xml         |  2 +-
 3 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/sci-misc/fitscut/ChangeLog b/sci-misc/fitscut/ChangeLog
index 7716847..6e8a138 100644
--- a/sci-misc/fitscut/ChangeLog
+++ b/sci-misc/fitscut/ChangeLog
@@ -1,7 +1,11 @@
 # ChangeLog for sci-misc/fitscut
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  27 Mar 2014; Sébastien Fabbro <bicat...@gentoo.org> fitscut-1.4.4.ebuild,
+  metadata.xml:
+  sci-misc/fitscut: Switch to EAPI5, autotools-utils, fixed for prefix
+
   14 Mar 2011; Justin Lecher <j...@gentoo.org> fitscut-1.4.4.ebuild:
   Moved media-libs/jpeg -> virtual/jpeg
 
@@ -10,4 +14,3 @@
   02 Feb 2010; Sébastien Fabbro <bicat...@gentoo.org>
   +fitscut-1.4.4.ebuild, +metadata.xml:
   Initial import
-

diff --git a/sci-misc/fitscut/fitscut-1.4.4.ebuild 
b/sci-misc/fitscut/fitscut-1.4.4.ebuild
index 3580896..1a5bdee 100644
--- a/sci-misc/fitscut/fitscut-1.4.4.ebuild
+++ b/sci-misc/fitscut/fitscut-1.4.4.ebuild
@@ -2,8 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=2
-inherit autotools
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils
 
 DESCRIPTION="Extract cutouts from FITS image files"
 HOMEPAGE="http://acs.pha.jhu.edu/general/software/fitscut/";
@@ -11,11 +14,12 @@ SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE=""
 
-RDEPEND=">=sci-libs/cfitsio-3
-       sci-astronomy/wcstools
+RDEPEND="
+       >=sci-libs/cfitsio-3:0=
+       sci-astronomy/wcstools:0=
        media-libs/libpng
        virtual/jpeg"
 DEPEND="${RDEPEND}"
@@ -25,14 +29,11 @@ src_prepare() {
        sed -i \
                -e 's/libwcs/wcs/g' \
                wcs*.c fitscut.c || die
+       # cfitsio/fitsio.h might conflict with host on prefix
        sed -i \
                -e 's/LIB(wcs,/LIB(wcstools,/' \
                -e 's/-lwcs/-lwcstools/' \
+               -e '/cfitsio\/fitsio.h/d' \
                configure.in || die
-       eautoreconf
-}
-
-src_install() {
-       emake DESDTIR="${D}" || die "emake install failed"
-       dodoc README AUTHORS TODO NEWS ChangeLog THANKS
+       autotools-utils_src_prepare
 }

diff --git a/sci-misc/fitscut/metadata.xml b/sci-misc/fitscut/metadata.xml
index 3b60a94..3d253f3 100644
--- a/sci-misc/fitscut/metadata.xml
+++ b/sci-misc/fitscut/metadata.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<herd>sci</herd>
+<herd>sci-astronomy</herd>
 <longdescription lang="en">
   fitscut is designed to extract cutouts from FITS image format
   files. FITS, PNG, and JPEG output types are supported.

Reply via email to