1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

science/coordgenlibs: Update 1.4.0 -> 1.4.0-6; Fix the missing file templates.mae problem

The upstream fails to install templates.mae.
The port now makes up for this by installing a reasonable default.
This commit is contained in:
Yuri Victorovich 2020-05-10 19:36:07 +00:00
parent 34f2a44a04
commit 2ed06dd321
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=534861
3 changed files with 17 additions and 5 deletions

View File

@ -2,7 +2,8 @@
PORTNAME= coordgenlibs
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.0
DISTVERSION= 1.4.0-6
DISTVERSIONSUFFIX= -g95e2367
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
@ -19,6 +20,16 @@ USE_GITHUB= yes
GH_ACCOUNT= schrodinger
USE_LDCONFIG= yes
CMAKE_ARGS= -Dmaeparser_DIR=${LOCALBASE}/lib/cmake
DATADIR= ${LOCALBASE}/share/coordgen
CMAKE_ON= COORDGEN_USE_MAEPARSER
CMAKE_OFF= COORDGEN_BUILD_TESTS COORDGEN_BUILD_EXAMPLE
post-patch: # see https://github.com/schrodinger/coordgenlibs/issues/64
@${REINPLACE_CMD} 's|return getTempFileProjDir() + suffix;|return "${DATADIR}/templates.mae";|' ${WRKSRC}/sketcherMinimizer.cpp
post-install: # see https://github.com/schrodinger/coordgenlibs/issues/64
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/templates.mae ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1584429626
SHA256 (schrodinger-coordgenlibs-v1.4.0_GH0.tar.gz) = 2c739be72d04958c158e16c8402ad0dd2171859da6486096ba1b691c18d286e7
SIZE (schrodinger-coordgenlibs-v1.4.0_GH0.tar.gz) = 154413
TIMESTAMP = 1589134573
SHA256 (schrodinger-coordgenlibs-v1.4.0-6-g95e2367_GH0.tar.gz) = 8ca75cabe12db8d15c9333c15a99feee39b32eef96e3adc9abf17c9947671ad9
SIZE (schrodinger-coordgenlibs-v1.4.0-6-g95e2367_GH0.tar.gz) = 155048

View File

@ -23,3 +23,4 @@ lib/cmake/coordgen-config.cmake
lib/libcoordgen.so
lib/libcoordgen.so.1
lib/libcoordgen.so.1.4.0
%%DATADIR%%/templates.mae