Skip to content
Snippets Groups Projects
Commit 488781bd authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

cad/xyce: Chenge MASTER_SITES to GitHub URL; Add test target

parent 972bbf13
No related branches found
No related tags found
No related merge requests found
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>
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment