From owner-svn-ports-head@freebsd.org Sat Dec 30 06:42:39 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C829FEAD10A; Sat, 30 Dec 2017 06:42:39 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 887E670E45; Sat, 30 Dec 2017 06:42:39 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBU6gcdP069194; Sat, 30 Dec 2017 06:42:38 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBU6gc8q069193; Sat, 30 Dec 2017 06:42:38 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201712300642.vBU6gc8q069193@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 30 Dec 2017 06:42:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457585 - head/astro/py-astLib X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/astro/py-astLib X-SVN-Commit-Revision: 457585 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2017 06:42:40 -0000 Author: sunpoet Date: Sat Dec 30 06:42:38 2017 New Revision: 457585 URL: https://svnweb.freebsd.org/changeset/ports/457585 Log: Update *_DEPENDS: change from deprecated py-pyfits to py-astropy - Sort *_DEPENDS - Bump PORTREVISION for dependency change Modified: head/astro/py-astLib/Makefile Modified: head/astro/py-astLib/Makefile ============================================================================== --- head/astro/py-astLib/Makefile Sat Dec 30 06:42:33 2017 (r457584) +++ head/astro/py-astLib/Makefile Sat Dec 30 06:42:38 2017 (r457585) @@ -3,6 +3,7 @@ PORTNAME= astLib PORTVERSION= 0.9.2 +PORTREVISION= 1 CATEGORIES= astro python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,16 +15,20 @@ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYNUMPY} \ - ${PKGNAMEPREFIX}scipy>=0.7.0:science/py-scipy@${FLAVOR} \ + ${PKGNAMEPREFIX}astropy>=1.1:astro/py-astropy@${FLAVOR} \ + ${PKGNAMEPREFIX}matplotlib>=0.98:math/py-matplotlib@${FLAVOR} \ ${PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR} \ - ${PKGNAMEPREFIX}pyfits>=1.1:astro/py-pyfits@${FLAVOR} \ - ${PKGNAMEPREFIX}matplotlib>=0.98:math/py-matplotlib@${FLAVOR} + ${PKGNAMEPREFIX}scipy>=0.7.0:science/py-scipy@${FLAVOR} RUN_DEPENDS:= ${BUILD_DEPENDS} PORTSCOUT= skipv:0.15,0.17,0.17.1 # incorrect versioning upstream USES= python:2.7 USE_PYTHON= autoplist distutils + +post-patch: + @${REINPLACE_CMD} -e 's|import pyfits|from astropy.io import fits as pyfits|' \ + ${WRKSRC}/astLib/astPlots.py ${WRKSRC}/examples/*/*.py post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyWCSTools/*.so