Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2018 17:52:35 +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: r482717 - in head/science: . py-avogadrolibs py-avogadrolibs/files
Message-ID:  <201810211752.w9LHqZo8078306@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Oct 21 17:52:35 2018
New Revision: 482717
URL: https://svnweb.freebsd.org/changeset/ports/482717

Log:
  New port: science/py-avogadrolibs: Python bindings for Avogadro2 chemistry libraries

Added:
  head/science/py-avogadrolibs/
  head/science/py-avogadrolibs/Makefile   (contents, props changed)
  head/science/py-avogadrolibs/distinfo   (contents, props changed)
  head/science/py-avogadrolibs/files/
  head/science/py-avogadrolibs/files/patch-CMakeLists.txt   (contents, props changed)
  head/science/py-avogadrolibs/pkg-descr   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Sun Oct 21 17:49:53 2018	(r482716)
+++ head/science/Makefile	Sun Oct 21 17:52:35 2018	(r482717)
@@ -208,6 +208,7 @@
     SUBDIR += py-SimpleSpectral
     SUBDIR += py-abipy
     SUBDIR += py-ase
+    SUBDIR += py-avogadrolibs
     SUBDIR += py-cdo
     SUBDIR += py-chempy
     SUBDIR += py-coards

Added: head/science/py-avogadrolibs/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-avogadrolibs/Makefile	Sun Oct 21 17:52:35 2018	(r482717)
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME=	avogadrolibs
+DISTVERSION=	1.91.0-107
+DISTVERSIONSUFFIX=	-g60c69b0
+CATEGORIES=	science
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python bindings for Avogadro2 chemistry libraries
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/../LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11
+LIB_DEPENDS=	libAvogadroCore.so:science/avogadrolibs
+
+USES=		cmake:outsource compiler:c++11-lang eigen:3 python:3.5+
+USE_GITHUB=	yes
+GH_ACCOUNT=	OpenChemistry
+USE_PYTHON=	flavors
+
+WRKSRC_SUBDIR=	python
+
+CMAKE_ARGS=	-DINSTALL_LIBRARY_DIR:STRING=${PYTHON_SITELIBDIR}
+
+PLIST_FILES=	${PYTHON_SITELIBDIR}/avogadro/__init__.py \
+		${PYTHON_SITELIBDIR}/avogadro/core.so \
+		${PYTHON_SITELIBDIR}/avogadro/io.so
+
+.include <bsd.port.mk>

Added: head/science/py-avogadrolibs/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-avogadrolibs/distinfo	Sun Oct 21 17:52:35 2018	(r482717)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1539886254
+SHA256 (OpenChemistry-avogadrolibs-1.91.0-107-g60c69b0_GH0.tar.gz) = 576868081a8e858ed8fa1eef0f84130ef1699391fa98bc1fd29f83116ca43c2f
+SIZE (OpenChemistry-avogadrolibs-1.91.0-107-g60c69b0_GH0.tar.gz) = 2706803

Added: head/science/py-avogadrolibs/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-avogadrolibs/files/patch-CMakeLists.txt	Sun Oct 21 17:52:35 2018	(r482717)
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig	2018-10-18 17:54:14 UTC
++++ CMakeLists.txt
+@@ -1,4 +1,8 @@
+-find_package(PythonInterp 3 REQUIRED)
++cmake_minimum_required(VERSION 3.12)
++
++link_directories(${CMAKE_INSTALL_PREFIX}/lib)
++
++find_package(Python3 REQUIRED)
+ find_package(PythonLibs 3 REQUIRED)
+ set(PYBIND11_PYTHON_VERSION "3" CACHE STRING "")
+ set(PYBIND11_CPP_STANDARD "-std=c++11" CACHE STRING "")

Added: head/science/py-avogadrolibs/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-avogadrolibs/pkg-descr	Sun Oct 21 17:52:35 2018	(r482717)
@@ -0,0 +1,8 @@
+Python bindings for Avogadro2 libraries, libraries that are a foundation of the
+Avogadro 2 project.
+
+Avogadro 2 is a chemical editor and visualization application, it is also a set
+of reusable software libraries written in C++ using principles of modularity for
+maximum reuse.
+
+WWW: https://www.openchemistry.org/projects/avogadro2/



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