diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-22 11:09:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-22 11:09:47 +0100 |
commit | 64e107b9b6058580ff0432107eb37cefb0b2a7d8 (patch) | |
tree | 9a44e603e2ae365e2b1fe35ac37f73e830cdee1d /dev-python/pyilmbase | |
parent | 957235cf19a691360c720f7913672adda4258ed0 (diff) |
gentoo resync : 22.10.2018
Diffstat (limited to 'dev-python/pyilmbase')
-rw-r--r-- | dev-python/pyilmbase/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyilmbase/files/pyilmbase-2.3.0-fix-build-system.patch | 48 | ||||
-rw-r--r-- | dev-python/pyilmbase/files/pyilmbase-2.3.0-link-pyimath.patch | 13 | ||||
-rw-r--r-- | dev-python/pyilmbase/pyilmbase-2.3.0.ebuild | 59 |
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-python/pyilmbase/Manifest b/dev-python/pyilmbase/Manifest index 0321ca322df4..1cce9abcd36c 100644 --- a/dev-python/pyilmbase/Manifest +++ b/dev-python/pyilmbase/Manifest @@ -1,4 +1,8 @@ AUX pyilmbase-2.2.0-configure-boost_python.patch 782 BLAKE2B eaafa48b991524400c70f9c6c156ae8abb5dc25132dde1f001b8852efc7fc6187fa27aec533c0022d15efd1ba60342c051f071d32582e0675838a8a20c8593dd SHA512 ffbba202eea36a14a9734633a9510632f8859bdf4f9791f72f020c9600a48a1941e58ea74d5f6b2b9b1e03d874f04cb6e9f5e8ef9cbcc5cd604e0b33ce297772 +AUX pyilmbase-2.3.0-fix-build-system.patch 1169 BLAKE2B 6afa0faf264ffb4c863a148684d162ef3154fa2802cffb2802315933e5df4781fc24d9fca23a985627a29d123a53cd4d6815beaa3b56487cace67896a22ae57c SHA512 691cdeec3361954fd41c085b38f8ec3a2a6a024ac174aeecb2b32df83844c3e25dbffcb3905b91e0b516eea6ac4597a067bb9ac794a25f5d1ac8502094b4095a +AUX pyilmbase-2.3.0-link-pyimath.patch 454 BLAKE2B 5e2bc6d09bb7012f8d0087aa0d76b8a89280349fa978cbf926cd9cbce1b2b611a6862d73da35642e037ba84161e658915831e63ed9aeafac9db5669e38e5c4f4 SHA512 760a217d5af2e8de48f52351bab18370f3a74453135a401d8f5d964d3c445519ddc41a853c989c4f29d492764e42dfbcf4a8bcf839e43164b4bbe3e125e9d1fc DIST pyilmbase-2.2.0.tar.gz 469927 BLAKE2B 74a806f30bf8881a4c58135110c3e805b9748074eab08e9afa17735630ee7de16ffe6a797ced926bb93d122eafdeb04c5e6e80ddba1a90bc551cb87ddeb30671 SHA512 111deb65a73b4d0454454d4fb64d09165fb25aad2e5714e35510c2b7ef301dc8765041de3188c2f89c9bd2770494a55a24372953fcda8dcedb23c401137e4344 +DIST pyilmbase-2.3.0.tar.gz 524975 BLAKE2B 7c3114921392ad29198025c672c366e6c98d2da968ed213ccfb446533b81fae4b78c687aba2108e476e16c4e97f11924799d0b0474ff3f82f17632f886bb6a39 SHA512 c20c26155315f2ae38efc183e5f33e2c18610365f5f1bca7a50363a005ff91c8782177293290ea037cf5f164f9b404f5710ce3cccba862e5e7f830727753589f EBUILD pyilmbase-2.2.0.ebuild 1129 BLAKE2B b3876947d8104e5dca92dc6e02780228b30c5c3b3fcf0975b8a8876b3b48e8f95990d16b1a94101626d439972128e0c4f0d901d847a93468f88592e92f0855bc SHA512 abe726f6a70ee90242eee1a9b70ca8386e09a1c7de32e30372407cf4c49ef653e260f392b15407f7d13d76b737a424699d72d0c35f92793c470bddeedbda3e65 +EBUILD pyilmbase-2.3.0.ebuild 1248 BLAKE2B 41abe6232321ab9a84d0397cd771c9cebf0cfab053a2c1aaca1570f5e2a548b2b5baa616f1f64753442450f8e3742b4250f6ab1a63300350f41e58d81d64124b SHA512 25237d6858103cede2d287d546f119ae546422aac9209091d84f50d4f68ca05a262ca1b9064131e804266ea2843e8e088107e8e67d1b1a3ba11df435c47ad511 MISC metadata.xml 537 BLAKE2B 88a1d7d89fac2094eefd766ad23b01c12cc49bff080e83f6ad63318294c97b18ecd83c6d908979ae8345a6601898b7a01295d9db886f0de500e460129d9c4a6a SHA512 c685de970979ac4ad5c3392a4b41b23bb523da5d003e3f6757a8d61fbdf0be1ea2bddc1a756176a9887101cc5bd6e19f5ac7e038e9dc9e5976c676a8817b9a87 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/pyilmbase-2.3.0.ebuild b/dev-python/pyilmbase/pyilmbase-2.3.0.ebuild new file mode 100644 index 000000000000..fda4c62db801 --- /dev/null +++ b/dev-python/pyilmbase/pyilmbase-2.3.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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="http://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_DEP} + >=dev-libs/boost-1.62.0-r1[python(+),${PYTHON_USEDEP}] + ~media-libs/ilmbase-${PV}:= + numpy? ( >=dev-python/numpy-1.10.4 )" +DEPEND="${RDEPEND} + ${PYTHON_DEP} + >=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 myeconfargs=( + --with-boost-include-dir="${EPREFIX}/usr/include/boost" + --with-boost-lib-dir="${EPREFIX}/usr/$(get_libdir)" + --with-boost-python-libname="boost_python-${EPYTHON:6}" + $(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 +} |