pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math add math/py-libixion to pkgsrc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c8b9a6096701
branches:  trunk
changeset: 405690:c8b9a6096701
user:      nros <nros%pkgsrc.org@localhost>
date:      Wed Dec 04 13:31:43 2019 +0000

description:
add math/py-libixion to pkgsrc

py-libixion are python bindings for math/libixion.

diffstat:

 math/Makefile                                      |   3 ++-
 math/libixion/Makefile                             |  22 +++-------------------
 math/libixion/distinfo                             |   4 +++-
 math/libixion/patches/patch-configure.ac           |  12 ++++++++++++
 math/libixion/patches/patch-src_python_Makefile.am |  16 ++++++++++++++++
 math/py-libixion/DESCR                             |  14 ++++++++++++++
 math/py-libixion/Makefile                          |  21 +++++++++++++++++++++
 math/py-libixion/PLIST                             |   2 ++
 8 files changed, 73 insertions(+), 21 deletions(-)

diffs (151 lines):

diff -r 36872e490696 -r c8b9a6096701 math/Makefile
--- a/math/Makefile     Wed Dec 04 13:06:17 2019 +0000
+++ b/math/Makefile     Wed Dec 04 13:31:43 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.439 2019/12/01 16:17:54 minskim Exp $
+# $NetBSD: Makefile,v 1.440 2019/12/04 13:31:43 nros Exp $
 
 COMMENT=       Mathematics
 
@@ -322,6 +322,7 @@
 SUBDIR+=       py-infinity
 SUBDIR+=       py-intervals
 SUBDIR+=       py-kiwisolver
+SUBDIR+=       py-libixion
 SUBDIR+=       py-lmfit
 SUBDIR+=       py-mpmath
 SUBDIR+=       py-munkres
diff -r 36872e490696 -r c8b9a6096701 math/libixion/Makefile
--- a/math/libixion/Makefile    Wed Dec 04 13:06:17 2019 +0000
+++ b/math/libixion/Makefile    Wed Dec 04 13:31:43 2019 +0000
@@ -1,29 +1,13 @@
-# $NetBSD: Makefile,v 1.14 2019/08/22 12:23:30 ryoon Exp $
-
-DISTNAME=      libixion-0.14.1
-PKGREVISION=   2
-CATEGORIES=    math devel
-MASTER_SITES=  http://kohei.us/files/ixion/src/
-EXTRACT_SUFX=  .tar.xz
+# $NetBSD: Makefile,v 1.15 2019/12/04 13:31:43 nros Exp $
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://gitlab.com/ixion/ixion
-COMMENT=       General purpose formula parser & interpreter
-LICENSE=       mpl-2.0
+PKGREVISION=   2
 
-GNU_CONFIGURE= yes
-USE_LIBTOOL=   yes
-USE_TOOLS+=    pkg-config
-USE_LANGUAGES= c c++
-
-BUILDLINK_TRANSFORM.NetBSD+=   rm:-ldl
+.include "Makefile.common"
 
 CONFIGURE_ARGS+=       --disable-python
 
 PKGCONFIG_OVERRIDE+=   libixion.pc.in
 
-PTHREAD_AUTO_VARS=     yes
-
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
 .include "../../devel/mdds/buildlink3.mk"
diff -r 36872e490696 -r c8b9a6096701 math/libixion/distinfo
--- a/math/libixion/distinfo    Wed Dec 04 13:06:17 2019 +0000
+++ b/math/libixion/distinfo    Wed Dec 04 13:31:43 2019 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2019/02/19 15:55:47 ryoon Exp $
+$NetBSD: distinfo,v 1.5 2019/12/04 13:31:43 nros Exp $
 
 SHA1 (libixion-0.14.1.tar.xz) = 8c8f17550177f11f26343c18c6e18cfa260df0e6
 RMD160 (libixion-0.14.1.tar.xz) = ff80ec9b91c64a89c5ae459f749031304148ee57
 SHA512 (libixion-0.14.1.tar.xz) = e4ae6348833d2178c1dc76916937bcc9d7821dc6570fe13093c441ca22e0301a1ca6a4cf85d9814b83534733dba98f4c4a372791f93bc57173317657675b9ae3
 Size (libixion-0.14.1.tar.xz) = 360568 bytes
+SHA1 (patch-configure.ac) = 47f20ec412c7f8b8ae91b12fea9e211cecdd7d5a
+SHA1 (patch-src_python_Makefile.am) = f67180858a87e6a5af941642d1ffbfbc4610ad2a
diff -r 36872e490696 -r c8b9a6096701 math/libixion/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libixion/patches/patch-configure.ac  Wed Dec 04 13:31:43 2019 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-configure.ac,v 1.1 2019/12/04 13:31:43 nros Exp $
+* check for pkgsrc libixion, used by math/py-libixion
+--- configure.ac.orig  2018-09-14 19:32:48.000000000 +0000
++++ configure.ac
+@@ -123,6 +123,7 @@ PKG_CHECK_MODULES([MDDS],[mdds-1.4 >= 1.
+ AS_IF([test "x$enable_python" != "xno"], [
+     AM_PATH_PYTHON(3)
+     PKG_CHECK_MODULES([PYTHON], [python3 >= 3.4])
++    PKG_CHECK_MODULES([DEPLIBIXION], [libixion-$IXION_API_VERSION >= $IXION_API_VERSION])
+ ])
+ 
+ AS_IF([test "x$enable_threads" != "xno"], [
diff -r 36872e490696 -r c8b9a6096701 math/libixion/patches/patch-src_python_Makefile.am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libixion/patches/patch-src_python_Makefile.am        Wed Dec 04 13:31:43 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_python_Makefile.am,v 1.1 2019/12/04 13:31:43 nros Exp $
+* use pkgsrc libixion, used by math/py-libixion
+--- src/python/Makefile.am.orig        2018-09-08 01:05:48.000000000 +0000
++++ src/python/Makefile.am
+@@ -11,9 +11,9 @@ ixion_la_SOURCES = \
+       sheet.cpp
+ 
+ ixion_la_LDFLAGS = -module -avoid-version -export-symbols-regex PyInit_ixion
+-ixion_la_CPPFLAGS = -I$(top_srcdir)/include $(PYTHON_CFLAGS) $(MDDS_CFLAGS)
++ixion_la_CPPFLAGS = -I$(top_srcdir)/include $(PYTHON_CFLAGS) $(MDDS_CFLAGS) $(DEPLIBIXION_CFLAGS)
+ ixion_la_LIBADD = \
+-      ../libixion/libixion-@IXION_API_VERSION@.la \
++      $(DEPLIBIXION_LIBS)\
+       $(PYTHON_LIBS)
+ 
+ if OSX
diff -r 36872e490696 -r c8b9a6096701 math/py-libixion/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-libixion/DESCR    Wed Dec 04 13:31:43 2019 +0000
@@ -0,0 +1,14 @@
+Python bindings for Ixion.
+
+Ixion is a general purpose formula parser & interpreter that can
+calculate multiple named targets, or "cells".
+
+The goal of this project is to create a library for calculating
+the results of formula expressions stored in multiple named targets,
+or "cells". The cells can be referenced from each other, and the
+library takes care of resolving their dependencies automatically
+upon calculation. The caller can run the calculation routine either
+in a single-threaded mode, or a multi-threaded mode. The library
+also supports re-calculations where the contents of one or more
+cells have been modified since the last calculation, and a partial
+calculation of only the affected cells need to be calculated.
diff -r 36872e490696 -r c8b9a6096701 math/py-libixion/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-libixion/Makefile Wed Dec 04 13:31:43 2019 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/12/04 13:31:43 nros Exp $
+
+.include "../../math/libixion/Makefile.common"
+
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+
+USE_TOOLS+=    aclocal autoconf automake
+BUILD_DIRS=    src/python
+PY_PATCHPLIST= yes
+
+pre-configure:
+       ${LN} -s ${BUILDLINK_DIR}/lib/pkgconfig/python-${PYVERSSUFFIX}.pc \
+               ${BUILDLINK_DIR}/lib/pkgconfig/python3.pc
+       set -e; cd ${WRKSRC}; \
+               aclocal; automake -a --foreign -i; autoconf
+
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/mdds/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../math/libixion/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 36872e490696 -r c8b9a6096701 math/py-libixion/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-libixion/PLIST    Wed Dec 04 13:31:43 2019 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/12/04 13:31:43 nros Exp $
+${PYSITELIB}/ixion.la



Home | Main Index | Thread Index | Old Index