math/palp: upgrade to 2.21

Use the new target all-dims to simplify Makefile.
This commit is contained in:
Thierry Thomas 2024-03-12 20:27:25 +01:00
parent 438d1dd99f
commit 6fe53f299a
3 changed files with 12 additions and 31 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= palp
PORTVERSION= 2.20
PORTVERSION= 2.21
CATEGORIES= math
MASTER_SITES= http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/
@ -11,40 +11,19 @@ LICENSE= GPLv3
USES= gmake
MAKEFILE= GNUmakefile
ALL_TARGET= all-dims
TEST_TARGET= check
DIMENSIONS= 4 5 6 11
RESDIR= ${WRKDIR}/result
PROGS= class cws mori nef poly
pre-build:
${MV} ${WRKSRC}/Global.h ${WRKSRC}/Global.h-template
${MKDIR} ${RESDIR}
do-build:
.for dim in ${DIMENSIONS}
${SED} "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax ${dim}/" \
${WRKSRC}/Global.h-template > ${WRKSRC}/Global.h
(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} ${ALL_TARGET})
. for prog in ${PROGS}
${CP} ${WRKSRC}/${prog}.x ${RESDIR}/${prog}-${dim}d.x
. endfor
(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} cleanall)
.endfor
do-install:
.for dim in ${DIMENSIONS}
. for prog in ${PROGS}
${INSTALL_PROGRAM} ${RESDIR}/${prog}-${dim}d.x ${STAGEDIR}${PREFIX}/bin
.for prog in ${PROGS}
${INSTALL_PROGRAM} ${WRKSRC}/${prog}.x ${STAGEDIR}${PREFIX}/bin
. for dim in ${DIMENSIONS}
${INSTALL_PROGRAM} ${WRKSRC}/${prog}-${dim}d.x ${STAGEDIR}${PREFIX}/bin
. endfor
.endfor
# symlinks for the default dimension
.for prog in ${PROGS}
(cd ${STAGEDIR}${PREFIX}/bin && \
${LN} -sf ${prog}-6d.x ${STAGEDIR}${PREFIX}/bin/${prog}.x)
.endfor
test:
# To be completed
${ECHO_CMD} "24 3 3 4 4 10" | ${RESDIR}/class-6d.x -f -po zbin
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1603211915
SHA256 (palp-2.20.tar.gz) = 723e89e78b2d3d94a720dd770c11b932b3e6b56f8a49e0bf3621c776f7a02ce0
SIZE (palp-2.20.tar.gz) = 237664
TIMESTAMP = 1710269167
SHA256 (palp-2.21.tar.gz) = 7e4a7bf219998a844c0bcce0a176e49d0743cb4b505a0e195329bf2ec196ddd7
SIZE (palp-2.21.tar.gz) = 262681

View File

@ -14,3 +14,5 @@ and manipulation of very large lists of 5-dimensional polyhedra.
While originally intended for low-dimensional applications, the algorithms work
in any dimension and our key routine for vertex and facet enumeration compares
well with existing packages.
See also <https://gitlab.com/stringstuwien/PALP/>.