summaryrefslogtreecommitdiff
path: root/dev-python/pyilmbase
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pyilmbase
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/pyilmbase')
-rw-r--r--dev-python/pyilmbase/Manifest1
-rw-r--r--dev-python/pyilmbase/files/pyilmbase-2.3.0-fix-build-system.patch48
-rw-r--r--dev-python/pyilmbase/files/pyilmbase-2.3.0-link-pyimath.patch13
-rw-r--r--dev-python/pyilmbase/metadata.xml17
-rw-r--r--dev-python/pyilmbase/pyilmbase-2.3.0-r2.ebuild73
5 files changed, 152 insertions, 0 deletions
diff --git a/dev-python/pyilmbase/Manifest b/dev-python/pyilmbase/Manifest
new file mode 100644
index 000000000000..e99c4ca8492f
--- /dev/null
+++ b/dev-python/pyilmbase/Manifest
@@ -0,0 +1 @@
+DIST pyilmbase-2.3.0.tar.gz 524975 BLAKE2B 7c3114921392ad29198025c672c366e6c98d2da968ed213ccfb446533b81fae4b78c687aba2108e476e16c4e97f11924799d0b0474ff3f82f17632f886bb6a39 SHA512 c20c26155315f2ae38efc183e5f33e2c18610365f5f1bca7a50363a005ff91c8782177293290ea037cf5f164f9b404f5710ce3cccba862e5e7f830727753589f
diff --git a/dev-python/pyilmbase/files/pyilmbase-2.3.0-fix-build-system.patch b/dev-python/pyilmbase/files/pyilmbase-2.3.0-fix-build-system.patch
new file mode 100644
index 000000000000..bd35f87a0e0f
--- /dev/null
+++ b/dev-python/pyilmbase/files/pyilmbase-2.3.0-fix-build-system.patch
@@ -0,0 +1,48 @@
+diff --git a/configure.ac b/configure.ac
+index 5cbf273..9e80b48 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,8 +4,7 @@ AC_SUBST(PYILMBASE_VERSION, 2.3.0)
+ AC_CANONICAL_HOST
+ AC_CONFIG_SRCDIR(PyIex/iexmodule.cpp)
+ AC_CONFIG_HEADER(config/PyIlmBaseConfig.h)
+-AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
+-AM_MAINTAINER_MODE
++AM_INIT_AUTOMAKE
+ dnl static python modules make no sense - disable static
+ AC_DISABLE_STATIC
+
+@@ -20,7 +19,7 @@ dnl Checks for programs.
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+-AC_PROG_LIBTOOL
++LT_INIT
+ AC_PROG_MAKE_SET
+
+ dnl
+@@ -164,22 +163,13 @@ AC_C_CONST
+ AC_C_INLINE
+ AC_TYPE_SIZE_T
+
+-AC_MSG_CHECKING(for gcc optimization flags)
+-old_cflags=$CFLAGS
+-CFLAGS="$CFLAGS -pipe"
+-AC_TRY_COMPILE([#include <stdio.h>],
+-[ printf ("hello, world"); ],
+-[ EXTRA_OPT_CFLAGS="-pipe"],[ EXTRA_OPT_CFLAGS=""])
+-CFLAGS=$old_cflags
+-AC_MSG_RESULT([$EXTRA_OPT_CFLAGS])
+-
+ dnl Platform-specific stuff
+ case "$host" in
+ *linux*)
+- AC_DEFINE(HAVE_LINUX_PROCFS)
++ AC_DEFINE([HAVE_LINUX_PROCFS], [1], [define on linux])
+ ;;
+ *darwin*)
+- AC_DEFINE(HAVE_DARWIN)
++ AC_DEFINE([HAVE_DARWIN], [1], [define on OSX])
+ ;;
+ esac
+
diff --git a/dev-python/pyilmbase/files/pyilmbase-2.3.0-link-pyimath.patch b/dev-python/pyilmbase/files/pyilmbase-2.3.0-link-pyimath.patch
new file mode 100644
index 000000000000..878c270a885a
--- /dev/null
+++ b/dev-python/pyilmbase/files/pyilmbase-2.3.0-link-pyimath.patch
@@ -0,0 +1,13 @@
+diff --git a/PyImath/Makefile.am b/PyImath/Makefile.am
+index bf87542..ad69515 100644
+--- a/PyImath/Makefile.am
++++ b/PyImath/Makefile.am
+@@ -82,7 +82,7 @@ imathmodule_la_SOURCES = imathmodule.cpp \
+ PyImathBasicTypes.cpp
+
+ imathmodule_la_LDFLAGS = -avoid-version -module
+-imathmodule_la_LIBADD = -lPyImath @BOOST_PYTHON_LIBS@
++imathmodule_la_LIBADD = libPyImath.la @BOOST_PYTHON_LIBS@
+
+ noinst_HEADERS = PyImathFun.h \
+ PyImathBasicTypes.h
diff --git a/dev-python/pyilmbase/metadata.xml b/dev-python/pyilmbase/metadata.xml
new file mode 100644
index 000000000000..f8fa336bcb2d
--- /dev/null
+++ b/dev-python/pyilmbase/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>waebbl@gmail.com</email>
+ <name>Bernd Waibel</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+<longdescription>Provides python bindings for <pkg>media-libs/ilmbase</pkg></longdescription>
+<use>
+ <flag name="numpy">Add bindings for <pkg>dev-python/numpy</pkg> use.</flag>
+</use>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-python/pyilmbase/pyilmbase-2.3.0-r2.ebuild b/dev-python/pyilmbase/pyilmbase-2.3.0-r2.ebuild
new file mode 100644
index 000000000000..c3f5e7b949a1
--- /dev/null
+++ b/dev-python/pyilmbase/pyilmbase-2.3.0-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools python-single-r1
+
+DESCRIPTION="IlmBase Python bindings"
+HOMEPAGE="https://www.openexr.com"
+SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
+LICENSE="BSD"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+numpy"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ ~media-libs/ilmbase-${PV}:=
+ $(python_gen_cond_dep '
+ >=dev-libs/boost-1.62.0-r1[python(+),${PYTHON_MULTI_USEDEP}]
+ numpy? (
+ || (
+ dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}]
+ >=dev-python/numpy-1.10.4[${PYTHON_MULTI_USEDEP}]
+ )
+ )
+ ')"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=virtual/pkgconfig-0-r1"
+
+PATCHES=(
+ "${FILESDIR}/${P}-link-pyimath.patch"
+ "${FILESDIR}/${P}-fix-build-system.patch"
+)
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local boostpython_ver="${EPYTHON:6}"
+ if has_version ">=dev-libs/boost-1.70.0"; then
+ boostpython_ver="${boostpython_ver/./}"
+ else
+ boostpython_ver="-${boostpython_ver}"
+ fi
+
+ local myeconfargs=(
+ --with-boost-include-dir="${EPREFIX}/usr/include/boost"
+ --with-boost-lib-dir="${EPREFIX}/usr/$(get_libdir)"
+ --with-boost-python-libname="boost_python${boostpython_ver}"
+ $(use_with numpy)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ # Fails to install with multiple jobs
+ emake DESTDIR="${D}" -j1 install
+
+ einstalldocs
+
+ # package provides pkg-config files
+ find "${D}" -name '*.la' -delete || die
+}