diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-07-16 17:13:02 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-07-16 17:14:19 +0200 |
commit | bebd2316cf3283bfc26293acf4afd4e8fd4085c7 (patch) | |
tree | e251e718f656486801ebfcc5c622194ac2d1914e /media-libs | |
parent | media-libs/openimageio: Disable installing bundled media-fonts/droid (diff) | |
download | gentoo-bebd2316cf3283bfc26293acf4afd4e8fd4085c7.tar.gz gentoo-bebd2316cf3283bfc26293acf4afd4e8fd4085c7.tar.bz2 gentoo-bebd2316cf3283bfc26293acf4afd4e8fd4085c7.zip |
media-libs/openimageio: Fix USE python
Closes: https://bugs.gentoo.org/688750
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/openimageio/files/openimageio-1.8.17-boostpython.patch | 28 | ||||
-rw-r--r-- | media-libs/openimageio/openimageio-1.8.17-r1.ebuild | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/media-libs/openimageio/files/openimageio-1.8.17-boostpython.patch b/media-libs/openimageio/files/openimageio-1.8.17-boostpython.patch new file mode 100644 index 000000000000..970ada64a1f8 --- /dev/null +++ b/media-libs/openimageio/files/openimageio-1.8.17-boostpython.patch @@ -0,0 +1,28 @@ +From 22ce65bfbaa24d79427852755c4bf8a1d77159b4 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Tue, 16 Jul 2019 17:03:40 +0200 +Subject: [PATCH] Find Boost_PYTHON + +--- + src/python/CMakeLists.txt | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt +index e58d372d..98d91c48 100644 +--- a/src/python/CMakeLists.txt ++++ b/src/python/CMakeLists.txt +@@ -16,9 +16,8 @@ find_package (PythonLibs ${PYTHON_VERSION_FOUND} REQUIRED) + if (NOT BOOST_CUSTOM) + # Finding the python component for boost is a little tricky, since it has + # different names on different systems. Try the most common ones. +- foreach (_py_lib python-${PYTHON_VERSION_FOUND} python +- python${PYTHON_VERSION_MAJOR} +- python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}) ++ foreach (_py_lib python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} ++ python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) + find_package (Boost QUIET COMPONENTS ${_py_lib}) + string (TOUPPER ${_py_lib} _py_lib_name) + if (Boost_${_py_lib_name}_FOUND) +-- +2.22.0 + diff --git a/media-libs/openimageio/openimageio-1.8.17-r1.ebuild b/media-libs/openimageio/openimageio-1.8.17-r1.ebuild index dd606a1dc504..23d889796d64 100644 --- a/media-libs/openimageio/openimageio-1.8.17-r1.ebuild +++ b/media-libs/openimageio/openimageio-1.8.17-r1.ebuild @@ -72,6 +72,8 @@ DEPEND="${RDEPEND}" DOCS=( CHANGES.md CREDITS.md README.md src/doc/${PN}.pdf ) +PATCHES=( "${FILESDIR}/${P}-boostpython.patch" ) + S="${WORKDIR}/oiio-Release-${PV}" pkg_setup() { |