Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 2020 19:36:07 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r534861 - head/science/coordgenlibs
Message-ID:  <202005101936.04AJa7tH076091@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun May 10 19:36:07 2020
New Revision: 534861
URL: https://svnweb.freebsd.org/changeset/ports/534861

Log:
  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.

Modified:
  head/science/coordgenlibs/Makefile
  head/science/coordgenlibs/distinfo
  head/science/coordgenlibs/pkg-plist

Modified: head/science/coordgenlibs/Makefile
==============================================================================
--- head/science/coordgenlibs/Makefile	Sun May 10 19:24:44 2020	(r534860)
+++ head/science/coordgenlibs/Makefile	Sun May 10 19:36:07 2020	(r534861)
@@ -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>

Modified: head/science/coordgenlibs/distinfo
==============================================================================
--- head/science/coordgenlibs/distinfo	Sun May 10 19:24:44 2020	(r534860)
+++ head/science/coordgenlibs/distinfo	Sun May 10 19:36:07 2020	(r534861)
@@ -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

Modified: head/science/coordgenlibs/pkg-plist
==============================================================================
--- head/science/coordgenlibs/pkg-plist	Sun May 10 19:24:44 2020	(r534860)
+++ head/science/coordgenlibs/pkg-plist	Sun May 10 19:36:07 2020	(r534861)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005101936.04AJa7tH076091>