math/yacas: Improve port
* Switch PORTVERSION to DISTVERSION * Convert to USES= cmake:testing * Convert to use CMAKE framework helpers * Fix typo in comment
This commit is contained in:
parent
febf7f3cc1
commit
e8ca022877
@ -1,6 +1,6 @@
|
|||||||
PORTNAME= yacas
|
PORTNAME= yacas
|
||||||
PORTVERSION= 1.9.1
|
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
|
DISTVERSION= 1.9.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
|
|
||||||
@ -12,28 +12,27 @@ LICENSE= LGPL21
|
|||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
TEST_DEPENDS= bash:shells/bash \
|
TEST_DEPENDS= bash:shells/bash \
|
||||||
|
googletest>0:devel/googletest
|
||||||
|
|
||||||
BUILD_DEPENDS= googletest>0:devel/googletest
|
USES= cmake:testing compiler:c++17-lang
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= grzegorzmazur
|
GH_ACCOUNT= grzegorzmazur
|
||||||
|
|
||||||
PLIST_SUB= SHLIB_VERSION=${PORTVERSION:S/.//}.0
|
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:
|
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.
|
# times in the file.
|
||||||
@${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \
|
@${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \
|
||||||
${WRKSRC}/tests/test-yacas
|
${WRKSRC}/tests/test-yacas
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user