Update to 1.6 and add test target.
This commit is contained in:
parent
b5a92325bd
commit
b3c29ed70d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545076
@ -1,8 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gdspy
|
||||
PORTVERSION= 1.3.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.6
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= cad python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -14,6 +13,7 @@ LICENSE= BSL
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR}
|
||||
TEST_DEPENDS= pytest:devel/py-pytest@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= distutils autoplist
|
||||
@ -21,15 +21,37 @@ USE_GITHUB= yes
|
||||
GH_ACCOUNT= heitzmann
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
EXAMPLES_PLIST_FILES= ${EXAMPLESDIR}/tutorial.py
|
||||
EXAMPLES_PLIST_FILES= \
|
||||
${EXAMPLESDIR}/cell.py \
|
||||
${EXAMPLESDIR}/cellarray.py \
|
||||
${EXAMPLESDIR}/cellreference.py \
|
||||
${EXAMPLESDIR}/curve.py \
|
||||
${EXAMPLESDIR}/flexpath.py \
|
||||
${EXAMPLESDIR}/functions.py \
|
||||
${EXAMPLESDIR}/gdslibrary.py \
|
||||
${EXAMPLESDIR}/gdswriter.py \
|
||||
${EXAMPLESDIR}/polygonset.py \
|
||||
${EXAMPLESDIR}/robustpath.py \
|
||||
${EXAMPLESDIR}/test.gds \
|
||||
${EXAMPLESDIR}/tutils.py \
|
||||
${EXAMPLESDIR}/maketestgds.py
|
||||
|
||||
test:
|
||||
cd ${WRKSRC} && \
|
||||
${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \
|
||||
${LOCALBASE}/bin/pytest
|
||||
|
||||
post-install:
|
||||
cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} && \
|
||||
${STRIP_CMD} boolext.so clipper.so
|
||||
${STRIP_CMD} clipper.so
|
||||
|
||||
post-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/examples/tutorial.py \
|
||||
${STAGEDIR}${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/tests && \
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
|
||||
${INSTALL_SCRIPT} *.py ${STAGEDIR}${EXAMPLESDIR} && \
|
||||
${INSTALL_DATA} *.gds ${STAGEDIR}${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/tools && \
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
|
||||
${INSTALL_SCRIPT} maketestgds.py ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1552644879
|
||||
SHA256 (heitzmann-gdspy-v1.3.2_GH0.tar.gz) = 472b71e5b996df9048d60ca383f851abc346050402600414efdcc33257ed29c2
|
||||
SIZE (heitzmann-gdspy-v1.3.2_GH0.tar.gz) = 112989
|
||||
TIMESTAMP = 1597459294
|
||||
SHA256 (heitzmann-gdspy-v1.6_GH0.tar.gz) = 32e4043659112ac1b3b11b5e4404f5ce0d5c3c0e5d5f30b1a544a24b56e992fb
|
||||
SIZE (heitzmann-gdspy-v1.6_GH0.tar.gz) = 448185
|
||||
|
Loading…
Reference in New Issue
Block a user