dev-python/pywcs: Correct blocker against astropy and fix distutils-r1.eclass usage
authorJustin Lecher <jlec@gentoo.org>
Thu, 22 Oct 2015 07:54:05 +0000 (09:54 +0200)
committerJustin Lecher <jlec@gentoo.org>
Thu, 22 Oct 2015 08:31:52 +0000 (10:31 +0200)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pywcs/metadata.xml
dev-python/pywcs/pywcs-1.11-r1.ebuild

index 380f3bfe46bbc0f9d4fecdc6becb54b3543f13a1..69c03782c80f71f6fc4bcd53a6e70ab51bc9825b 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>sci-astronomy</herd>
-<longdescription lang="en">
+  <herd>sci-astronomy</herd>
+  <longdescription lang="en">
   pywcs is a set of routines for handling the FITS World Coordinate
   System (WCS) standard. It is a thin wrapper around the high- and
   mid-level interfaces for wcslib. 
index ee7041a6c9121fc1bfde63ae688b203ffd230822..e9509bbb759fc00aef3ecd8cf2207367c23f6fb1 100644 (file)
@@ -6,7 +6,7 @@ EAPI=5
 
 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
 
-inherit distutils-r1 eutils
+inherit distutils-r1
 
 WCS_V=4.8.2
 MYP=${P}-${WCS_V}
@@ -26,15 +26,14 @@ DEPEND="
 RDEPEND="
        >=sci-astronomy/wcslib-${WCS_V}
        virtual/pyfits
-       !<dev-python/astropy-0.3"
+       !dev-python/astropy"
 
 # missing data to run tests
 RESTRICT=test
+
 S="${WORKDIR}/${MYP}"
 
-python_prepare_all(){
-       epatch "${FILESDIR}"/${P}-wcslib.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-wcslib.patch )
 
 python_test() {
        nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"