Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openexr/, media-libs/openexr/files/
Date: Thu, 11 Oct 2018 18:43:02
Message-Id: 1539283369.086e36c12dff193371ce5fe3e54fb9058f1e9d52.mgorny@gentoo
1 commit: 086e36c12dff193371ce5fe3e54fb9058f1e9d52
2 Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
3 AuthorDate: Sun Sep 30 19:45:39 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 11 18:42:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=086e36c1
7
8 media-libs/openexr: bump to version 2.3.0
9
10 Closes: https://bugs.gentoo.org/639998
11 Suggested-by: Jonathan Scruggs <dracwyrm <AT> gentoo.org>
12 Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com>
13 Package-Manager: Portage-2.3.49, Repoman-2.3.10
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 media-libs/openexr/Manifest | 1 +
17 .../files/openexr-2.3.0-fix-build-system.patch | 68 +++++++++++++++++++++
18 media-libs/openexr/openexr-2.3.0.ebuild | 71 ++++++++++++++++++++++
19 3 files changed, 140 insertions(+)
20
21 diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest
22 index 12cf82682b5..dee477215a0 100644
23 --- a/media-libs/openexr/Manifest
24 +++ b/media-libs/openexr/Manifest
25 @@ -2,3 +2,4 @@ DIST openexr-1.7.0.tar.gz 13542910 BLAKE2B f187aa1b7c703bc912bfc87eb6f9d44f1ed08
26 DIST openexr-2.0.1.tar.gz 12609335 BLAKE2B 25adcf5a679a0419a7ff0ddd29d4d1c5f1c28cd3fd6c81b0a5c0cc63d907e741eaea378f4ebaa9a66afce0349edf7231ebd2bb3e493aee484860c89f05f45960 SHA512 b35e3e795496f9d4a56352c907bcffef14ae062b189c4e1df35f3ab08c5e9abf829fa9149db3198d60088fa9633816650011e5f7871e07324801b95549d6695b
27 DIST openexr-2.1.0.tar.gz 13680816 BLAKE2B 2d3cb4e0419160b07f1efe9a853f1d5deeb0499da4f79da201fc5eb1f57102891da666e161b2d8ec43a6f0b6ff6f5c7b92c2baae51a808892691182290192992 SHA512 d69924331c3392b8063229391414bb90f16ce317c76cfffe5fe0fcbb25e576f6ace8320b51c2a9987fee912cedd8e69116d4b49ba716b4a5f011131a81815403
28 DIST openexr-2.2.0.tar.gz 14489661 BLAKE2B fae3c5a255e8bf5121561687e9d704d7de3657eb38295ff96db6ddad240391379a6624483abbe619f80f0979fd9828992d236e55b5014916d4d39d6ff51d0815 SHA512 017abbeeb6b814508180721bc8e8940094965c4c55b135a198c6bcb109a04bf7f72e4aee81ee72cb2185fe818a41d892b383e8d2d59f40c673198948cb79279a
29 +DIST openexr-2.3.0.tar.gz 18412067 BLAKE2B c73c4db4e414010ed8cc9f9631f3e8b17f47edf89b4ecb459aa00ff54a316b3bb1489e332bc029e0917ac4ffe7e152082244102029fd375f183da6741788dab7 SHA512 003f5bb3bd010be1ad9ff1798643ef711c683c8191625fe9b59070c9cb0c649c277cd506d890c6b239d9cbab80e83e16f1c1d1d74117c916ee3a80e061953123
30
31 diff --git a/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch b/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch
32 new file mode 100644
33 index 00000000000..811a7af3875
34 --- /dev/null
35 +++ b/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch
36 @@ -0,0 +1,68 @@
37 +diff --git a/configure.ac b/configure.ac
38 +index 067f9d0..fdbe2f8 100644
39 +--- a/configure.ac
40 ++++ b/configure.ac
41 +@@ -13,8 +13,7 @@ AC_SUBST(OPENEXR_VERSION_API, ${OPENEXR_VERSION_MAJOR}_${OPENEXR_VERSION_MINOR})
42 + AC_CANONICAL_HOST
43 + AC_CONFIG_SRCDIR(IlmImfTest/main.cpp)
44 + AC_CONFIG_HEADERS([config/OpenEXRConfig.h])
45 +-AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
46 +-AM_MAINTAINER_MODE
47 ++AM_INIT_AUTOMAKE
48 +
49 +
50 + LIBTOOL_CURRENT=24
51 +@@ -28,7 +27,7 @@ AC_PROG_CXX
52 + AC_PROG_INSTALL
53 + AC_PROG_CC
54 + AC_PROG_LN_S
55 +-AC_PROG_LIBTOOL
56 ++LT_INIT
57 + AC_PROG_MAKE_SET
58 +
59 + dnl
60 +@@ -58,8 +57,8 @@ AM_PATH_PKGCONFIG(
61 + [ILMBASE])
62 +
63 + dnl Define the version string
64 +-AC_DEFINE_UNQUOTED([OPENEXR_VERSION_STRING], "${VERSION}", [OpenEXR version string])
65 +-AC_DEFINE_UNQUOTED([OPENEXR_PACKAGE_STRING], "${PACKAGE_STRING}", [OpenEXR version string])
66 ++AC_DEFINE_UNQUOTED([OPENEXR_VERSION_STRING], ["${VERSION}"], [OpenEXR version string])
67 ++AC_DEFINE_UNQUOTED([OPENEXR_PACKAGE_STRING], ["${PACKAGE_STRING}"], [OpenEXR version string])
68 + AC_DEFINE_UNQUOTED([OPENEXR_VERSION_MAJOR], [${OPENEXR_VERSION_MAJOR}], [OpenEXR version string])
69 + AC_DEFINE_UNQUOTED([OPENEXR_VERSION_MINOR], [${OPENEXR_VERSION_MINOR}], [OpenEXR version string])
70 + AC_DEFINE_UNQUOTED([OPENEXR_VERSION_PATCH], [${OPENEXR_VERSION_PATCH}], [OpenEXR version string])
71 +@@ -110,16 +109,7 @@ AC_ARG_ENABLE(threading,
72 + [multithread="${enableval}"], [multithread=yes])
73 +
74 + AS_IF([test "x${multithread}" != xno], [
75 +- ACX_PTHREAD(
76 +- [
77 +- AC_DEFINE(OPENEXR_IMF_HAVE_PTHREAD)
78 +- ILMBASE_LIBS="$PTHREAD_LIBS $ILMBASE_LIBS"
79 +- ILMBASE_CXXFLAGS="$ILMBASE_CXXFLAGS $PTHREAD_CFLAGS"
80 +- CC="$PTHREAD_CC"
81 +-
82 +- AM_POSIX_SEM()
83 +- ],
84 +- [AC_MSG_ERROR([POSIX thread support required])])
85 ++ AX_PTHREAD
86 +
87 + AC_DEFINE([OPENEXR_IMF_HAVE_PTHREAD], [1], [Define if pthreads are available])
88 +
89 +@@ -195,15 +185,6 @@ dnl AC_MSG_RESULT($complete_iomanip)
90 + dnl AC_LANG_RESTORE
91 + AC_DEFINE([OPENEXR_IMF_HAVE_COMPLETE_IOMANIP], [1], [Define when std::right is available])
92 +
93 +-AC_MSG_CHECKING(for gcc optimization flags)
94 +-old_cflags=$CFLAGS
95 +-CFLAGS="$CFLAGS -pipe"
96 +-AC_TRY_COMPILE([#include <stdio.h>],
97 +-[ printf ("hello, world"); ],
98 +-[ EXTRA_OPT_CFLAGS="-pipe"],[ EXTRA_OPT_CFLAGS=""])
99 +-CFLAGS=$old_cflags
100 +-AC_MSG_RESULT([$EXTRA_OPT_CFLAGS])
101 +-
102 +
103 + dnl Check to see if the toolset supports AVX instructions in inline asm
104 + AC_ARG_ENABLE([avx],
105
106 diff --git a/media-libs/openexr/openexr-2.3.0.ebuild b/media-libs/openexr/openexr-2.3.0.ebuild
107 new file mode 100644
108 index 00000000000..99f63d05e1f
109 --- /dev/null
110 +++ b/media-libs/openexr/openexr-2.3.0.ebuild
111 @@ -0,0 +1,71 @@
112 +# Copyright 1999-2018 Gentoo Foundation
113 +# Distributed under the terms of the GNU General Public License v2
114 +
115 +EAPI=6
116 +
117 +inherit autotools flag-o-matic toolchain-funcs multilib-minimal
118 +
119 +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
120 +HOMEPAGE="http://openexr.com/"
121 +SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
122 +
123 +LICENSE="BSD"
124 +SLOT="0/24" # based on SONAME
125 +KEYWORDS="~amd64 -arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
126 +IUSE="cpu_flags_x86_avx examples static-libs"
127 +
128 +RDEPEND="
129 + >=media-libs/ilmbase-${PV}:=[${MULTILIB_USEDEP}]
130 + sys-libs/zlib[${MULTILIB_USEDEP}]
131 +"
132 +DEPEND="${RDEPEND}
133 + >=sys-devel/autoconf-archive-2016.09.16
134 + virtual/pkgconfig[${MULTILIB_USEDEP}]
135 +"
136 +
137 +DOCS=( AUTHORS ChangeLog NEWS README.md )
138 +MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/OpenEXRConfig.h )
139 +
140 +PATCHES=(
141 + "${FILESDIR}/${PN}-2.2.0-fix-cpuid-on-abi_x86_32.patch"
142 + "${FILESDIR}/${PN}-2.2.0-fix-config.h-collision.patch"
143 + "${FILESDIR}/${PN}-2.2.0-Install-missing-header-files.patch"
144 + "${FILESDIR}/${P}-fix-build-system.patch"
145 +)
146 +
147 +src_prepare() {
148 + default
149 + # Fix path for testsuite
150 + sed -i -e "s:/var/tmp/:${T}:" IlmImfTest/tmpDir.h || die
151 + eautoreconf
152 +}
153 +
154 +multilib_src_configure() {
155 + local myeconfargs=(
156 + --disable-imffuzztest
157 + --disable-imfhugetest
158 + --enable-threading
159 + $(use_enable cpu_flags_x86_avx avx)
160 + $(use_enable examples imfexamples)
161 + $(use_enable static-libs static)
162 + )
163 +
164 + # TODO: check if this still applies on updates!
165 + # internal tool dwaLookup fails to run when linked with gold linker
166 + tc-ld-disable-gold
167 +
168 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
169 +}
170 +
171 +multilib_src_install_all() {
172 + einstalldocs
173 +
174 + if use examples; then
175 + docompress -x /usr/share/doc/${PF}/examples
176 + else
177 + rm -rf "${ED%/}"/usr/share/doc/${PF}/examples || die
178 + fi
179 +
180 + # package provides .pc files
181 + find "${D}" -name '*.la' -delete || die
182 +}