Date: Sat, 30 Dec 2017 06:42:38 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457585 - head/astro/py-astLib Message-ID: <201712300642.vBU6gc8q069193@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712300642.vBU6gc8q069193>