Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2018 09:00: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: r475056 - in head/math: . py-libpoly py-libpoly/files
Message-ID:  <201807210900.w6L907fU071123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jul 21 09:00:06 2018
New Revision: 475056
URL: https://svnweb.freebsd.org/changeset/ports/475056

Log:
  New port: math/py-libpoly: Python binding for libpoly

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

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Sat Jul 21 08:52:56 2018	(r475055)
+++ head/math/Makefile	Sat Jul 21 09:00:06 2018	(r475056)
@@ -680,6 +680,7 @@
     SUBDIR += py-intspan
     SUBDIR += py-keras
     SUBDIR += py-levmar
+    SUBDIR += py-libpoly
     SUBDIR += py-luminol
     SUBDIR += py-mathdom
     SUBDIR += py-matplotlib

Added: head/math/py-libpoly/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-libpoly/Makefile	Sat Jul 21 09:00:06 2018	(r475056)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	libpoly
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.7
+CATEGORIES=	math
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python binding for libpoly
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENCE
+
+LIB_DEPENDS=	libpoly.so:math/libpoly
+
+USES=		cmake:outsource localbase:ldflags python:2.7
+USE_GITHUB=	yes
+GH_ACCOUNT=	SRI-CSL
+USE_LDCONFIG=	yes
+USE_PYTHON=	distutils autoplist
+
+CFLAGS+=	-I${WRKSRC}/include
+LDFLAGS+=	-lpoly
+
+BUILD_WRKSRC=	${WRKSRC}/python
+INSTALL_WRKSRC=	${WRKSRC}/python
+
+do-build:
+	@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_BUILD_TARGET} ${PYDISTUTILS_BUILDARGS}
+
+do-install:
+	@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS}
+
+.include <bsd.port.mk>

Added: head/math/py-libpoly/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-libpoly/distinfo	Sat Jul 21 09:00:06 2018	(r475056)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1532161301
+SHA256 (SRI-CSL-libpoly-v0.1.7_GH0.tar.gz) = 71d08cc1e97219bde8a0af60dd436ce4266dc3f19ff3a2cabc640bd14f4d8f4d
+SIZE (SRI-CSL-libpoly-v0.1.7_GH0.tar.gz) = 491593

Added: head/math/py-libpoly/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-libpoly/files/patch-CMakeLists.txt	Sat Jul 21 09:00:06 2018	(r475056)
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig	2018-07-21 08:36:33 UTC
++++ CMakeLists.txt
+@@ -50,7 +50,7 @@ if(HAVE_OPEN_MEMSTREAM)
+ endif()
+ 
+ # Configure the library source
+-add_subdirectory(src)
++#add_subdirectory(src)
+ 
+ # Configure the headers
+ add_subdirectory(include)
+@@ -61,6 +61,6 @@ if(LIBPOLY_BUILD_PYTHON_API)
+   add_subdirectory(python)
+ 
+   # Configure the tests
+-  add_subdirectory(test)
++  #add_subdirectory(test)
+ 
+ endif()

Added: head/math/py-libpoly/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-libpoly/pkg-descr	Sat Jul 21 09:00:06 2018	(r475056)
@@ -0,0 +1,3 @@
+The python binding for libpoly, the C library for manipulating polynomials.
+
+WWW: https://github.com/SRI-CSL/libpoly



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