1 |
commit: 7868cf824003c710cbf58cd04d316765e7ce9a02 |
2 |
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Oct 8 13:12:14 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 8 16:57:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7868cf82 |
7 |
|
8 |
media-gfx/enblend: Bump version to 4.2.0_p20161007 |
9 |
|
10 |
Gentoo-bug: 577512, 593094, 595630 |
11 |
|
12 |
The 4.2.0 release has missing CMake files, thus doesn't build, and |
13 |
there are general runtime bugs. This patch is from upstream that |
14 |
fixes all these issues. |
15 |
|
16 |
* Added more depends for document building |
17 |
* Added fix for document fonts access violation |
18 |
* Changed to EAPI 6 |
19 |
* Added SIMD use flag |
20 |
* General ebuild tidy ups |
21 |
* Depend on Boost version >=1.62 (due to C++11/14) |
22 |
|
23 |
Signed off by: Jonathan Scruggs (j.scruggs <AT> gmail.com, irc: Dracwyrm) |
24 |
Closes: https://github.com/gentoo/gentoo/pull/2510 |
25 |
|
26 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
27 |
|
28 |
media-gfx/enblend/Manifest | 1 + |
29 |
media-gfx/enblend/enblend-4.2.0_p20161007.ebuild | 73 ++++++++++++++++++++++ |
30 |
.../files/enblend-4.2-doc-install-dir-fix.patch | 66 +++++++++++++++++++ |
31 |
media-gfx/enblend/metadata.xml | 22 +++---- |
32 |
4 files changed, 151 insertions(+), 11 deletions(-) |
33 |
|
34 |
diff --git a/media-gfx/enblend/Manifest b/media-gfx/enblend/Manifest |
35 |
index a505c8f..1ec31a5 100644 |
36 |
--- a/media-gfx/enblend/Manifest |
37 |
+++ b/media-gfx/enblend/Manifest |
38 |
@@ -1 +1,2 @@ |
39 |
+DIST enblend-4.2.0_p20161007.tar.xz 494060 SHA256 4fe05af3d697bd6b2797facc8ba5aeabdc91e233156552301f1c7686232ff4c3 SHA512 ede037f19a7c3b358f533ecfb235f70824261eaf189d0bdcde6f9cedaa5952be2a6940884e688418b725cb3a67fc1b7d366483a76b7c62326ca857b8efe3a3f3 WHIRLPOOL 791c36ee422496170a7cfc8da7d701e40a4d9d1205ebebd692d4d4c4f694d99dad4260bf8b6b1a8957c686590f20edbd5b561760311151c4bc04394542979de7 |
40 |
DIST enblend-enfuse-4.1.3.tar.gz 862079 SHA256 1c00ae95cd05502759d7d47f99e6ba1150f8807f8f4f46c800cd46c5ad0df9ac SHA512 0a3487783afadee896b84411330898393cda4be4cbb79d36013daa98c17ab88f97a298c21a5c398b7cb2ce83e8dc4519a80e18be472c5fec10c3114037b6db73 WHIRLPOOL ab33a8ca5c38d9a5dca6aaeed7cbc806f7c34c5642f9e568a90d14789ecede896c0da888e5fe7e7d30e586778e0734495d06055fc189732e55bc0c013e699b48 |
41 |
|
42 |
diff --git a/media-gfx/enblend/enblend-4.2.0_p20161007.ebuild b/media-gfx/enblend/enblend-4.2.0_p20161007.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000..0c86b867 |
45 |
--- /dev/null |
46 |
+++ b/media-gfx/enblend/enblend-4.2.0_p20161007.ebuild |
47 |
@@ -0,0 +1,73 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit cmake-utils |
55 |
+ |
56 |
+DESCRIPTION="Image Blending with Multiresolution Splines" |
57 |
+HOMEPAGE="http://enblend.sourceforge.net/" |
58 |
+SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz" |
59 |
+ |
60 |
+LICENSE="GPL-2 VIGRA" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~ppc ~x86" |
63 |
+IUSE="debug doc openmp tcmalloc cpu_flags_x86_sse2" |
64 |
+REQUIRED_USE="tcmalloc? ( !debug )" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ >=dev-libs/boost-1.62.0:= |
68 |
+ media-libs/glew:* |
69 |
+ media-libs/lcms:2 |
70 |
+ media-libs/libpng:0= |
71 |
+ media-libs/openexr:= |
72 |
+ media-libs/plotutils[X] |
73 |
+ media-libs/tiff:0 |
74 |
+ media-libs/vigra[openexr] |
75 |
+ sci-libs/gsl:= |
76 |
+ virtual/jpeg:0 |
77 |
+ debug? ( dev-libs/dmalloc ) |
78 |
+ tcmalloc? ( dev-util/google-perftools ) |
79 |
+ media-libs/freeglut" |
80 |
+DEPEND="${RDEPEND} |
81 |
+ media-gfx/imagemagick |
82 |
+ sys-apps/help2man |
83 |
+ virtual/pkgconfig |
84 |
+ doc? ( |
85 |
+ media-gfx/transfig |
86 |
+ sci-visualization/gnuplot[gd] |
87 |
+ virtual/latex-base |
88 |
+ dev-lang/perl |
89 |
+ dev-perl/Readonly |
90 |
+ media-gfx/graphviz |
91 |
+ gnome-base/librsvg |
92 |
+ dev-tex/hevea |
93 |
+ )" |
94 |
+ |
95 |
+PATCHES=( "${FILESDIR}/${PN}-4.2-doc-install-dir-fix.patch" ) |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ cmake-utils_src_prepare |
99 |
+ |
100 |
+ sed -i -e "s:share/doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ local mycmakeargs=( |
105 |
+ -DENABLE_DMALLOC=$(usex debug) |
106 |
+ -DENABLE_TCMALLOC=$(usex tcmalloc) |
107 |
+ -DDOC=$(usex doc) |
108 |
+ -DINSTALL_HTML_DOC=$(usex doc) |
109 |
+ -DINSTALL_PDF_DOC=$(usex doc) |
110 |
+ -DENABLE_OPENMP=$(usex openmp) |
111 |
+ -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) |
112 |
+ ) |
113 |
+ cmake-utils_src_configure |
114 |
+} |
115 |
+ |
116 |
+src_compile() { |
117 |
+ export VARTEXFONTS="${T}/fonts" |
118 |
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM. |
119 |
+ cmake-utils_src_compile -j1 |
120 |
+} |
121 |
|
122 |
diff --git a/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch b/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch |
123 |
new file mode 100644 |
124 |
index 00000000..c952eeb |
125 |
--- /dev/null |
126 |
+++ b/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch |
127 |
@@ -0,0 +1,66 @@ |
128 |
+* Remove the CMAKE_BUILD_TYPE conditional code, in order to build using CMAKE_BUILD_TYPE=Gentoo |
129 |
+* Install html files in html subdir of doc dir |
130 |
+ |
131 |
+--- a/CMakeLists.txt |
132 |
++++ b/CMakeLists.txt |
133 |
+@@ -11,9 +11,6 @@ |
134 |
+ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) |
135 |
+ |
136 |
+ project(enblend) |
137 |
+-IF(NOT MSVC) |
138 |
+- SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE) |
139 |
+-ENDIF(NOT MSVC) |
140 |
+ # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ |
141 |
+ # is checked |
142 |
+ # For now, reuse the hugin modules directory |
143 |
+@@ -130,7 +127,6 @@ |
144 |
+ ENDIF() |
145 |
+ |
146 |
+ IF(CMAKE_COMPILER_IS_GNUCXX) |
147 |
+- SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -ffast-math -DNDEBUG -Wall") |
148 |
+ IF(APPLE AND CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION LESS 5) |
149 |
+ ## Add needed Compiler and Linker flags for OSX |
150 |
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flat_namespace -undefined suppress") |
151 |
+@@ -154,20 +150,6 @@ |
152 |
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") |
153 |
+ ENDIF(CMAKE_CL_64) |
154 |
+ |
155 |
+- # compile everything for the static C runtime |
156 |
+- FOREACH(TYPE C CXX) |
157 |
+- # makefiles use blank configuration |
158 |
+- FOREACH(CFG "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO") |
159 |
+- #MESSAGE("Replacing CMAKE_${TYPE}_FLAGS${CFG}: ${CMAKE_${TYPE}_FLAGS${CFG}}") |
160 |
+- SET(NEW_FLAGS "${CMAKE_${TYPE}_FLAGS${CFG}}") |
161 |
+- # fix up static libc flags |
162 |
+- STRING(REPLACE "/MD" "/MT" NEW_FLAGS "${NEW_FLAGS}") |
163 |
+- # *FORCE* to override whats already placed into the cache |
164 |
+- SET(CMAKE_${TYPE}_FLAGS${CFG} "${NEW_FLAGS}" CACHE STRING |
165 |
+- "CMAKE_${TYPE}_FLAGS${CFG} (overwritten to ensure static build)" FORCE) |
166 |
+- #MESSAGE("New CMAKE_${TYPE}_FLAGS${CFG}: ${CMAKE_${TYPE}_FLAGS${CFG}}") |
167 |
+- ENDFOREACH(CFG) |
168 |
+- ENDFOREACH(TYPE) |
169 |
+ # link only with the static C runtime !! THIS IS A MUST !! |
170 |
+ SET(NEW_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") |
171 |
+ # ensure that the flags are not duplicated on subsequent runs |
172 |
+--- a/doc/CMakeLists.txt |
173 |
++++ b/doc/CMakeLists.txt |
174 |
+@@ -406,7 +406,7 @@ |
175 |
+ "${CMAKE_BINARY_DIR}/doc/enfuse.html" |
176 |
+ ${ENBLEND_PNGFILES} |
177 |
+ ${ENFUSE_PNGFILES} |
178 |
+- DESTINATION ${DocumentsDirectory} |
179 |
++ DESTINATION ${DocumentsDirectory}/html |
180 |
+ ) |
181 |
+ endif() |
182 |
+ |
183 |
+--- a/src/CMakeLists.txt |
184 |
++++ b/src/CMakeLists.txt |
185 |
+@@ -102,7 +102,7 @@ |
186 |
+ endif(OpenMP_CXX_FLAGS AND NOT MSVC) |
187 |
+ target_link_libraries(enblend ${common_libs} ${additional_libs}) |
188 |
+ target_link_libraries(enfuse ${common_libs} ${additional_libs}) |
189 |
+-install(TARGETS enblend enfuse DESTINATION bin CONFIGURATIONS Release RelWithDebInfo MinSizeRel) |
190 |
++install(TARGETS enblend enfuse DESTINATION bin) |
191 |
+ |
192 |
+ if(NOT WIN32) |
193 |
+ # create enblend.1 and enfuse.1 |
194 |
|
195 |
diff --git a/media-gfx/enblend/metadata.xml b/media-gfx/enblend/metadata.xml |
196 |
index 5d7ddb7..621b21a 100644 |
197 |
--- a/media-gfx/enblend/metadata.xml |
198 |
+++ b/media-gfx/enblend/metadata.xml |
199 |
@@ -1,15 +1,15 @@ |
200 |
<?xml version="1.0" encoding="UTF-8"?> |
201 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
202 |
<pkgmetadata> |
203 |
- <maintainer type="project"> |
204 |
- <email>graphics@g.o</email> |
205 |
- <name>Gentoo Graphics Project</name> |
206 |
- </maintainer> |
207 |
- <use> |
208 |
- <flag name="gpu">GPU support for Enblend</flag> |
209 |
- <flag name="image-cache">allow for processing of large images</flag> |
210 |
- </use> |
211 |
- <upstream> |
212 |
- <remote-id type="sourceforge">enblend</remote-id> |
213 |
- </upstream> |
214 |
+ <maintainer type="project"> |
215 |
+ <email>graphics@g.o</email> |
216 |
+ <name>Gentoo Graphics Project</name> |
217 |
+ </maintainer> |
218 |
+ <use> |
219 |
+ <flag name="gpu">GPU support for Enblend</flag> |
220 |
+ <flag name="image-cache">allow for processing of large images</flag> |
221 |
+ </use> |
222 |
+ <upstream> |
223 |
+ <remote-id type="sourceforge">enblend</remote-id> |
224 |
+ </upstream> |
225 |
</pkgmetadata> |