git: e8ca022877b4 - main - math/yacas: Improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Apr 2024 16:51:16 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=e8ca022877b422e4c3fc91bb0f0f25db345c0bab commit e8ca022877b422e4c3fc91bb0f0f25db345c0bab Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2024-04-07 16:13:01 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2024-04-07 16:50:08 +0000 math/yacas: Improve port * Switch PORTVERSION to DISTVERSION * Convert to USES= cmake:testing * Convert to use CMAKE framework helpers * Fix typo in comment --- math/yacas/Makefile | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/math/yacas/Makefile b/math/yacas/Makefile index 76f14a6afe61..04ba5d9eac12 100644 --- a/math/yacas/Makefile +++ b/math/yacas/Makefile @@ -1,6 +1,6 @@ PORTNAME= yacas -PORTVERSION= 1.9.1 DISTVERSIONPREFIX= v +DISTVERSION= 1.9.1 PORTREVISION= 1 CATEGORIES= math @@ -12,28 +12,27 @@ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING TEST_DEPENDS= bash:shells/bash \ + googletest>0:devel/googletest -BUILD_DEPENDS= googletest>0:devel/googletest - -USES= cmake compiler:c++17-lang - -CMAKE_ARGS= -DENABLE_DOCS:BOOL=OFF \ - -DENABLE_CYACAS_CONSOLE:BOOL=ON \ - -DENABLE_CYACAS_KERNEL:BOOL=OFF \ - -DENABLE_CYACAS_GUI:BOOL=OFF \ - -DENABLE_JYACAS:BOOL=OFF \ - -DENABLE_CYACAS_UNIT_TESTS:BOOL=ON \ - -DENABLE_CYACAS_BENCHMARKS:BOOL=OFF - -TEST_TARGET= test +USES= cmake:testing compiler:c++17-lang USE_GITHUB= yes GH_ACCOUNT= grzegorzmazur PLIST_SUB= SHLIB_VERSION=${PORTVERSION:S/.//}.0 +CMAKE_TESTING_ON= ENABLE_CYACAS_UNIT_TESTS + +CMAKE_OFF= ENABLE_DOCS \ + ENABLE_CYACAS_BENCHMARKS \ + ENABLE_CYACAS_KERNEL \ + ENABLE_CYACAS_GUI \ + ENABLE_JYACAS \ + +CMAKE_ON= ENABLE_CYACAS_CONSOLE + post-patch: -# Can't use USES=shebangfix here, cause the path appears several +# Can't use USES=shebangfix here, because the path appears several # times in the file. @${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \ ${WRKSRC}/tests/test-yacas