aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-07-10 18:50:02 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-07-10 18:51:20 +0000
commit488781bde8f00a043ff9a71f2d55966951019d3d (patch)
tree1d11c2495e34b8d85bd06ce9bb3692ae7618811e
parent972bbf13b42495101400b8afee66b96775e2f31c (diff)
downloadports-488781bde8f00a043ff9a71f2d55966951019d3d.tar.gz
ports-488781bde8f00a043ff9a71f2d55966951019d3d.zip
cad/xyce: Chenge MASTER_SITES to GitHub URL; Add test target
-rw-r--r--cad/xyce/Makefile33
-rw-r--r--cad/xyce/distinfo6
2 files changed, 33 insertions, 6 deletions
diff --git a/cad/xyce/Makefile b/cad/xyce/Makefile
index b3214a50f508..558dca5707a6 100644
--- a/cad/xyce/Makefile
+++ b/cad/xyce/Makefile
@@ -1,8 +1,9 @@
PORTNAME= xyce
-DISTVERSION= 7.5
+DISTVERSION= 7.5.0
CATEGORIES= cad
-MASTER_SITES= https://xyce.sandia.gov/files/xyce/
-DISTNAME= Xyce-${DISTVERSION}
+MASTER_SITES= https://github.com/Xyce/Xyce/archive/refs/tags/
+DISTNAME= Release-${DISTVERSION}
+DIST_SUBDIR= xyce-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Xyce electronic simulator
@@ -16,17 +17,43 @@ LIB_DEPENDS= libamd.so:math/suitesparse-amd \
liblapack.so:math/lapack \
libtpetra.so:science/trilinos \
libumfpack.so:math/suitesparse-umfpack
+TEST_DEPENDS= git:devel/git
USES= bison cmake localbase
CMAKE_ON= BUILD_SHARED_LIBS
+WRKSRC= ${WRKDIR}/Xyce-Release-${DISTVERSION}
+
post-install:
@cd ${STAGEDIR}${PREFIX} && \
${RM} ${STAGEDIR}${PREFIX}/doc/README.TXT && \
${RMDIR} ${STAGEDIR}${PREFIX}/doc
+do-test:
+ # checkout tests
+ @cd ${WRKDIR} && \
+ ${ECHO} "cloning git repository ..." && \
+ ${RM} -rf Xyce_Regression && \
+ git clone -q https://github.com/Xyce/Xyce_Regression.git && \
+ cd Xyce_Regression && \
+ git checkout -q Release-${DISTVERSION}
+
+ # run tests
+ @cd ${TEST_WRKSRC} && ( \
+ ${ECHO} "running tests ..."; \
+ eval `${WRKDIR}/Xyce_Regression/TestScripts/suggestXyceTagList.sh ${STAGEDIR}${PREFIX}/bin/Xyce` ; \
+ ${WRKDIR}/Xyce_Regression/TestScripts/run_xyce_regression \
+ --output=${WRKDIR}/Xyce_Test \
+ --xyce_test="${WRKDIR}/Xyce_Regression" \
+ --resultfile=${WRKDIR}/serial_results \
+ --taglist="$$TAGLIST" \
+ ${STAGEDIR}${PREFIX}/bin/Xyce \
+ )
+ # Testssuite doesn't stop when Ctrl-C is pressed: https://github.com/Xyce/Xyce_Regression/issues/1
+
# Trilinos build instructions for Xyce: https://xyce.sandia.gov/documentation-tutorials/building-guide/#instTrilinos
+# Xyce build instructions: https://xyce.sandia.gov/documentation-tutorials/building-guide/
# docs are in https://xyce.sandia.gov/files/xyce/Xyce_Docs-7.5.tar.gz
.include <bsd.port.mk>
diff --git a/cad/xyce/distinfo b/cad/xyce/distinfo
index ffee29842322..b733d21cad6e 100644
--- a/cad/xyce/distinfo
+++ b/cad/xyce/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1657259069
-SHA256 (Xyce-7.5.tar.gz) = 855e865316e8ca3a668fb4e92cb39e63023702f79012a1461c06066e1567f5ce
-SIZE (Xyce-7.5.tar.gz) = 24310294
+TIMESTAMP = 1657478670
+SHA256 (xyce-7.5.0/Release-7.5.0.tar.gz) = 854d7d5e19e0ee2138d1f20f10f8f27f2bebb94ec81c157040955cff7250dacd
+SIZE (xyce-7.5.0/Release-7.5.0.tar.gz) = 23184780