Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2021 17:29:25 +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: r567856 - in head/science/rdkit: . files
Message-ID:  <202103081729.128HTP4c060981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Mar  8 17:29:24 2021
New Revision: 567856
URL: https://svnweb.freebsd.org/changeset/ports/567856

Log:
  science/rdkit: Add PGSQL option to build the PostgreSQL cartridge
  
  Also fix build with DOCS=OFF

Modified:
  head/science/rdkit/Makefile
  head/science/rdkit/files/patch-CMakeLists.txt

Modified: head/science/rdkit/Makefile
==============================================================================
--- head/science/rdkit/Makefile	Mon Mar  8 17:06:43 2021	(r567855)
+++ head/science/rdkit/Makefile	Mon Mar  8 17:29:24 2021	(r567856)
@@ -3,6 +3,7 @@
 PORTNAME=	rdkit
 DISTVERSIONPREFIX=	Release_
 DISTVERSION=	2020_09_5
+PORTREVISION=	1
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -28,16 +29,23 @@ CMAKE_OFF=	RDK_INSTALL_INTREE RDK_USE_FLEXBISON \
 		RDK_INSTALL_STATIC_LIBS RDK_SWIG_STATIC RDK_PGSQL_STATIC \
 		RDK_OPTIMIZE_NATIVE \
 		RDK_BUILD_CPP_TESTS
-CMAKE_ARGS=	-DFREEBSD_DOCSDIR:PATH=${DOCSDIR} -DCATCH_DIR=${LOCALBASE}/include/catch2
+CMAKE_ARGS=	-DCATCH_DIR=${LOCALBASE}/include/catch2
 
 DATADIR=	${PREFIX}/share/RDKit
 DOCSDIR=	${PREFIX}/share/doc/RDKit
 
 PLIST_SUB=	SHLIB_VER=${PORTVERSION}
 
-OPTIONS_DEFINE=		PYTHON DOCS
+OPTIONS_DEFINE=		DOCS PGSQL PYTHON
 OPTIONS_DEFAULT=	PYTHON
 OPTIONS_SUB=		yes
+
+DOCS_CMAKE_BOOL=	FREEBSD_INSTALL_DOCS
+DOCS_CMAKE_ON=		-DFREEBSD_DOCSDIR:PATH=${DOCSDIR}
+
+PGSQL_USES=		pgsql
+PGSQL_DESC=		Build the PostgreSQL cartridge
+PGSQL_CMAKE_BOOL=	RDK_BUILD_PGSQL
 
 PYTHON_CMAKE_BOOL=	RDK_BUILD_PYTHON_WRAPPERS
 PYTHON_BUILD_DEPENDS=	${PYNUMPY}

Modified: head/science/rdkit/files/patch-CMakeLists.txt
==============================================================================
--- head/science/rdkit/files/patch-CMakeLists.txt	Mon Mar  8 17:06:43 2021	(r567855)
+++ head/science/rdkit/files/patch-CMakeLists.txt	Mon Mar  8 17:29:24 2021	(r567856)
@@ -1,21 +1,29 @@
---- CMakeLists.txt.orig	2020-12-12 08:00:55 UTC
+--- CMakeLists.txt.orig	2021-03-01 16:43:06 UTC
 +++ CMakeLists.txt
-@@ -68,7 +68,7 @@ if(NOT MSVC)
+@@ -68,8 +68,8 @@ if(NOT MSVC)
    if(RDK_OPTIMIZE_POPCNT)
      if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "aarch64")
        message("RDK_OPTIMIZE_POPCNT is not available on aarch64")
 -    elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ppc64le")
-+    elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(ppc64|powerpc64)")
 -      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntb")
++    elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(ppc64|powerpc64)")
 +      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntd")
      else()
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
-@@ -460,7 +460,7 @@ if(NOT RDK_INSTALL_INTREE)
+     endif()
+@@ -459,12 +459,14 @@ if(NOT RDK_INSTALL_INTREE)
+       COMPONENT data
        PATTERN ".svn" EXCLUDE
        )
++  if (FREEBSD_INSTALL_DOCS)
    install(DIRECTORY Docs DESTINATION
 -      ${RDKit_ShareDir}
 +      ${FREEBSD_DOCSDIR}
        COMPONENT docs
        PATTERN ".svn" EXCLUDE
        PATTERN "_build" EXCLUDE
+       )
++  endif()
+   install(DIRECTORY Contrib DESTINATION
+       ${RDKit_ShareDir}
+       COMPONENT extras



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