1 |
commit: 480753efd49061c8ea1fff89a9f0a7c16678c175 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 11 15:31:24 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 12 13:19:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=480753ef |
7 |
|
8 |
media-gfx/enblend: Fix Find{LCMS2,OpenGL}.cmake hardcoded lib32 paths |
9 |
|
10 |
Fixes build on amd64 without ABI_X86_32 enabled deps. |
11 |
|
12 |
- enblend-4.1.3-r2: EAPI 6, cleanup deps, add missing virtual/glu dep |
13 |
- enblend-4.2.0_p20161007-r1: Cleanup, fix, sort, drop unused deps |
14 |
- push back media-libs/libpng, virtual/jpeg to DEPEND (only headers) |
15 |
- media-gfx/imagemagick -> virtual/imagemagick-tools, only if USE=doc |
16 |
|
17 |
Package-Manager: portage-2.3.3 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/3923 |
19 |
|
20 |
media-gfx/enblend/enblend-4.1.3-r2.ebuild | 87 ++++++++++++++++++++++ |
21 |
.../enblend/enblend-4.2.0_p20161007-r1.ebuild | 79 ++++++++++++++++++++ |
22 |
media-gfx/enblend/files/enblend-4.1.3-cmake.patch | 22 ++++++ |
23 |
.../enblend/files/enblend-4.1.3-vigra_check.patch | 4 +- |
24 |
.../files/enblend-4.2.0_p20161007-cmake.patch | 11 +++ |
25 |
5 files changed, 201 insertions(+), 2 deletions(-) |
26 |
|
27 |
diff --git a/media-gfx/enblend/enblend-4.1.3-r2.ebuild b/media-gfx/enblend/enblend-4.1.3-r2.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000000..4405286b04 |
30 |
--- /dev/null |
31 |
+++ b/media-gfx/enblend/enblend-4.1.3-r2.ebuild |
32 |
@@ -0,0 +1,87 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit cmake-utils |
40 |
+ |
41 |
+MY_P="${PN}-enfuse-${PV}" |
42 |
+ |
43 |
+DESCRIPTION="Image Blending with Multiresolution Splines" |
44 |
+HOMEPAGE="http://enblend.sourceforge.net/" |
45 |
+SRC_URI="mirror://sourceforge/enblend/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2 VIGRA" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ppc ~x86" |
50 |
+IUSE="debug doc gpu openmp" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-libs/boost:= |
54 |
+ media-libs/lcms:2 |
55 |
+ media-libs/openexr:= |
56 |
+ media-libs/tiff:= |
57 |
+ media-libs/vigra[openexr] |
58 |
+ sci-libs/gsl:= |
59 |
+ debug? ( dev-libs/dmalloc ) |
60 |
+ gpu? ( |
61 |
+ media-libs/freeglut |
62 |
+ media-libs/glew:* |
63 |
+ virtual/glu |
64 |
+ virtual/opengl |
65 |
+ )" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ media-libs/libpng:0 |
68 |
+ sys-apps/help2man |
69 |
+ virtual/jpeg:0 |
70 |
+ virtual/pkgconfig |
71 |
+ doc? ( |
72 |
+ media-gfx/transfig |
73 |
+ sci-visualization/gnuplot[gd] |
74 |
+ virtual/imagemagick-tools |
75 |
+ virtual/latex-base |
76 |
+ )" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+DOCS=( AUTHORS NEWS README ) |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${P}-vigra_check.patch |
84 |
+ "${FILESDIR}"/${P}-texinfo-5-upstream.patch |
85 |
+ "${FILESDIR}"/${P}-texinfo-5-more.patch |
86 |
+ "${FILESDIR}"/${P}-cmake.patch |
87 |
+) |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ cmake-utils_src_prepare |
91 |
+ |
92 |
+ # CRLF in files, don't bother with patch |
93 |
+ sed -i -e "/FIND_LIBRARY(LCMS2_LIBRARIES/s/lib32/lib/" \ |
94 |
+ CMakeModules/FindLCMS2.cmake || die |
95 |
+ sed -e "/FIND_LIBRARY(OPENGL_gl_LIBRARY/s/lib32/lib/" \ |
96 |
+ -e "/NAMES.*MesaGLU/s/lib32/lib/" \ |
97 |
+ -i CMakeModules/FindOpenGL.cmake || die |
98 |
+ |
99 |
+ sed -i -e "/CXX_FLAGS/s:-O3::g" CMakeLists.txt || die |
100 |
+ sed -i -e "s:doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ local mycmakeargs=( |
105 |
+ -DCMAKE_CXX_FLAGS_RELEASE="" |
106 |
+ -DENABLE_DMALLOC=$(usex debug) |
107 |
+ -DDOC=$(usex doc) |
108 |
+ -DENABLE_GPU=$(usex gpu) |
109 |
+ -DENABLE_IMAGECACHE=$(usex !openmp) |
110 |
+ -DENABLE_OPENMP=$(usex openmp) |
111 |
+ ) |
112 |
+ CMAKE_BUILD_TYPE="Release" |
113 |
+ cmake-utils_src_configure |
114 |
+} |
115 |
+ |
116 |
+src_compile() { |
117 |
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM. |
118 |
+ cmake-utils_src_compile -j1 |
119 |
+} |
120 |
|
121 |
diff --git a/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild b/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild |
122 |
new file mode 100644 |
123 |
index 0000000000..3480db3193 |
124 |
--- /dev/null |
125 |
+++ b/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild |
126 |
@@ -0,0 +1,79 @@ |
127 |
+# Copyright 1999-2017 Gentoo Foundation |
128 |
+# Distributed under the terms of the GNU General Public License v2 |
129 |
+# $Id$ |
130 |
+ |
131 |
+EAPI=6 |
132 |
+ |
133 |
+inherit cmake-utils |
134 |
+ |
135 |
+DESCRIPTION="Image Blending with Multiresolution Splines" |
136 |
+HOMEPAGE="http://enblend.sourceforge.net/" |
137 |
+SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz" |
138 |
+ |
139 |
+LICENSE="GPL-2 VIGRA" |
140 |
+SLOT="0" |
141 |
+KEYWORDS="~amd64 ~ppc ~x86" |
142 |
+IUSE="debug doc openmp tcmalloc cpu_flags_x86_sse2" |
143 |
+ |
144 |
+REQUIRED_USE="tcmalloc? ( !debug )" |
145 |
+ |
146 |
+RDEPEND=" |
147 |
+ media-libs/lcms:2 |
148 |
+ media-libs/openexr:= |
149 |
+ media-libs/tiff:0 |
150 |
+ media-libs/vigra[openexr] |
151 |
+ sci-libs/gsl:= |
152 |
+ debug? ( dev-libs/dmalloc ) |
153 |
+ tcmalloc? ( dev-util/google-perftools )" |
154 |
+DEPEND="${RDEPEND} |
155 |
+ >=dev-libs/boost-1.62.0 |
156 |
+ media-libs/libpng:0 |
157 |
+ sys-apps/help2man |
158 |
+ virtual/jpeg:0 |
159 |
+ virtual/pkgconfig |
160 |
+ doc? ( |
161 |
+ dev-lang/perl |
162 |
+ dev-perl/Readonly |
163 |
+ dev-tex/hevea |
164 |
+ gnome-base/librsvg |
165 |
+ media-gfx/graphviz |
166 |
+ media-gfx/transfig |
167 |
+ sci-visualization/gnuplot[gd] |
168 |
+ virtual/imagemagick-tools |
169 |
+ virtual/latex-base |
170 |
+ )" |
171 |
+ |
172 |
+PATCHES=( |
173 |
+ "${FILESDIR}"/${PN}-4.2-doc-install-dir-fix.patch |
174 |
+ "${FILESDIR}"/${P}-cmake.patch |
175 |
+) |
176 |
+ |
177 |
+src_prepare() { |
178 |
+ cmake-utils_src_prepare |
179 |
+ |
180 |
+ sed -i -e "s:share/doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die |
181 |
+} |
182 |
+ |
183 |
+src_configure() { |
184 |
+ local mycmakeargs=( |
185 |
+ -DENABLE_DMALLOC=$(usex debug) |
186 |
+ -DENABLE_TCMALLOC=$(usex tcmalloc) |
187 |
+ -DDOC=$(usex doc) |
188 |
+ -DINSTALL_HTML_DOC=$(usex doc) |
189 |
+ -DINSTALL_PDF_DOC=$(usex doc) |
190 |
+ -DENABLE_OPENMP=$(usex openmp) |
191 |
+ -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) |
192 |
+ ) |
193 |
+ cmake-utils_src_configure |
194 |
+} |
195 |
+ |
196 |
+src_compile() { |
197 |
+ # To allow icon resizing with renderers (no way to disable) |
198 |
+ addpredict /dev/dri |
199 |
+ |
200 |
+ # To compile fonts in the temp directory |
201 |
+ export VARTEXFONTS="${T}/fonts" |
202 |
+ |
203 |
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM. |
204 |
+ cmake-utils_src_compile -j1 |
205 |
+} |
206 |
|
207 |
diff --git a/media-gfx/enblend/files/enblend-4.1.3-cmake.patch b/media-gfx/enblend/files/enblend-4.1.3-cmake.patch |
208 |
new file mode 100644 |
209 |
index 0000000000..e9fef85278 |
210 |
--- /dev/null |
211 |
+++ b/media-gfx/enblend/files/enblend-4.1.3-cmake.patch |
212 |
@@ -0,0 +1,22 @@ |
213 |
+--- a/CMakeLists.txt 2017-02-12 13:43:46.862787952 +0100 |
214 |
++++ b/CMakeLists.txt 2017-02-12 13:50:03.461229021 +0100 |
215 |
+@@ -185,7 +185,6 @@ |
216 |
+ FIND_PACKAGE(TIFF REQUIRED) |
217 |
+ FIND_PACKAGE(Perl REQUIRED) |
218 |
+ # this one is needed in doc. (Especially the program "convert") |
219 |
+-FIND_PACKAGE(ImageMagick REQUIRED) |
220 |
+ FIND_PACKAGE(GSL REQUIRED) |
221 |
+ include_directories(${GSL_INCLUDE_DIR}) |
222 |
+ LIST(APPEND common_libs ${LCMS2_LIBRARIES} ${TIFF_LIBRARIES} ${GSL_LIBRARIES}) |
223 |
+@@ -394,8 +393,9 @@ |
224 |
+ add_subdirectory(src) |
225 |
+ |
226 |
+ # you really should have perl installed, when creating doc's |
227 |
+-if (PERL_FOUND AND IMAGEMAGICK_FOUND AND DOC) |
228 |
+- # this should be set from comman line |
229 |
++if (PERL_FOUND AND DOC) |
230 |
++ FIND_PACKAGE(ImageMagick REQUIRED) |
231 |
++ # this should be set from command line |
232 |
+ # Possible values like described in README: @smallbook @afivepaper @afourpaper @afourwide @afourlatex |
233 |
+ # @letter is default |
234 |
+ set(EXTRATEXI2DVIFLAGS "@afourpaper" CACHE STRING "Papersize: @letter @smallbook @afivepaper @afourpaper @afourwide @afourlatex") |
235 |
|
236 |
diff --git a/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch b/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch |
237 |
index 982293e477..d067df3c57 100644 |
238 |
--- a/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch |
239 |
+++ b/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch |
240 |
@@ -1,5 +1,5 @@ |
241 |
---- ConfigureChecks.cmake.orig 2013-10-07 10:50:00.000000000 +0400 |
242 |
-+++ ConfigureChecks.cmake 2015-03-31 13:42:40.179527224 +0300 |
243 |
+--- a/ConfigureChecks.cmake 2013-10-07 10:50:00.000000000 +0400 |
244 |
++++ b/ConfigureChecks.cmake 2015-03-31 13:42:40.179527224 +0300 |
245 |
@@ -53,7 +53,7 @@ |
246 |
if(VIGRA_FOUND AND NOT VIGRA_VERSION_CHECK) |
247 |
unset(VIGRA_SETIMAGEINDEX CACHE) |
248 |
|
249 |
diff --git a/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch b/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch |
250 |
new file mode 100644 |
251 |
index 0000000000..fcbeb64232 |
252 |
--- /dev/null |
253 |
+++ b/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch |
254 |
@@ -0,0 +1,11 @@ |
255 |
+--- a/CMakeModules/FindLCMS2.cmake 2016-09-24 11:28:47.000000000 +0200 |
256 |
++++ b/CMakeModules/FindLCMS2.cmake 2017-02-11 16:15:33.492507341 +0100 |
257 |
+@@ -5,7 +5,7 @@ |
258 |
+ /usr/local/include |
259 |
+ /usr/include |
260 |
+ ) |
261 |
+- FIND_LIBRARY(LCMS2_LIBRARIES lcms2 HINTS /usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib32) |
262 |
++ FIND_LIBRARY(LCMS2_LIBRARIES lcms2 HINTS /usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib) |
263 |
+ ELSE(NOT WIN32) |
264 |
+ FIND_PATH(LCMS2_ROOT_DIR |
265 |
+ NAMES include/lcms2.h |