Skip to content

Commit

Permalink
math/yacas: Improve port
Browse files Browse the repository at this point in the history
* Switch PORTVERSION to DISTVERSION
* Convert to USES= cmake:testing
* Convert to use CMAKE framework helpers
* Fix typo in comment
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Apr 7, 2024
1 parent febf7f3 commit e8ca022
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions math/yacas/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= yacas
PORTVERSION= 1.9.1
DISTVERSIONPREFIX= v
DISTVERSION= 1.9.1
PORTREVISION= 1
CATEGORIES= math

Expand All @@ -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
Expand Down

0 comments on commit e8ca022

Please sign in to comment.