Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/devil/
Date: Wed, 23 Feb 2022 02:25:45
Message-Id: 1645583128.c9b77209040583b6568c4506ce2ef77616bd4dbc.sam@gentoo
1 commit: c9b77209040583b6568c4506ce2ef77616bd4dbc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 02:24:09 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 02:25:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9b77209
7
8 media-libs/devil: disable OpenEXR support in new revision
9
10 We're about to stabilise unslotted OpenEXR; nothing depends on devil[openexr],
11 and it currently fails to build with OpenEXR 3.
12
13 Let's drop the support for now unless/until something needs it (in which case
14 we can see about patching it ourselves) or a patch is available.
15
16 Closes: https://bugs.gentoo.org/833833
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 media-libs/devil/devil-1.7.8-r3.ebuild | 91 ++++++++++++++++++++++++++++++++++
20 1 file changed, 91 insertions(+)
21
22 diff --git a/media-libs/devil/devil-1.7.8-r3.ebuild b/media-libs/devil/devil-1.7.8-r3.ebuild
23 new file mode 100644
24 index 000000000000..745632b22d41
25 --- /dev/null
26 +++ b/media-libs/devil/devil-1.7.8-r3.ebuild
27 @@ -0,0 +1,91 @@
28 +# Copyright 1999-2022 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=8
32 +
33 +inherit autotools
34 +
35 +MY_P=DevIL-${PV}
36 +
37 +DESCRIPTION="DevIL image library"
38 +HOMEPAGE="http://openil.sourceforge.net/"
39 +SRC_URI="mirror://sourceforge/openil/${MY_P}.tar.gz"
40 +
41 +LICENSE="LGPL-2.1"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~x86"
44 +IUSE="allegro cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 gif glut jpeg mng nvtt opengl png sdl static-libs tiff X xpm"
45 +
46 +# OpenEXR support dropped b/c no support for OpenEXR 3
47 +# See bug #833833
48 +RDEPEND="
49 + allegro? ( media-libs/allegro:0 )
50 + gif? ( media-libs/giflib:= )
51 + glut? ( media-libs/freeglut )
52 + jpeg? ( virtual/jpeg:0 )
53 + mng? ( media-libs/libmng:= )
54 + nvtt? ( media-gfx/nvidia-texture-tools )
55 + opengl? ( virtual/opengl
56 + virtual/glu )
57 + png? ( media-libs/libpng:0= )
58 + sdl? ( media-libs/libsdl )
59 + tiff? ( media-libs/tiff:0 )
60 + X? ( x11-libs/libXext
61 + x11-libs/libX11
62 + x11-libs/libXrender )
63 + xpm? ( x11-libs/libXpm )"
64 +DEPEND="${RDEPEND}"
65 +BDEPEND="virtual/pkgconfig
66 + X? ( x11-base/xorg-proto )"
67 +
68 +PATCHES=(
69 + "${FILESDIR}/${P}"-CVE-2009-3994.patch
70 + "${FILESDIR}/${P}"-libpng14.patch
71 + "${FILESDIR}/${P}"-nvtt-glut.patch
72 + "${FILESDIR}/${P}"-ILUT.patch
73 + "${FILESDIR}/${P}"-restrict.patch
74 + "${FILESDIR}/${P}"-fix-test.patch
75 + "${FILESDIR}/${P}"-jasper-remove-uchar.patch
76 +)
77 +
78 +src_prepare() {
79 + default
80 + eautoreconf
81 +}
82 +
83 +src_configure() {
84 + econf \
85 + $(use_enable static-libs static) \
86 + --disable-lcms \
87 + --enable-ILU \
88 + --enable-ILUT \
89 + $(use_enable cpu_flags_x86_sse sse) \
90 + $(use_enable cpu_flags_x86_sse2 sse2) \
91 + $(use_enable cpu_flags_x86_sse3 sse3) \
92 + --disable-exr \
93 + $(use_enable gif) \
94 + $(use_enable jpeg) \
95 + --enable-jp2 \
96 + $(use_enable mng) \
97 + $(use_enable png) \
98 + $(use_enable tiff) \
99 + $(use_enable xpm) \
100 + $(use_enable allegro) \
101 + --disable-directx8 \
102 + --disable-directx9 \
103 + $(use_enable opengl) \
104 + $(use_enable sdl) \
105 + $(use_enable X x11) \
106 + $(use_enable X shm) \
107 + $(use_enable X render) \
108 + $(use_enable glut) \
109 + $(use_with X x) \
110 + $(use_with nvtt)
111 +}
112 +
113 +src_install() {
114 + default
115 +
116 + # Package provides .pc files
117 + find "${ED}" -name '*.la' -delete || die
118 +}