1 |
commit: c218434f3307b192d81fec4dd08f5345744af39f |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 4 11:21:58 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 4 11:24:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c218434f |
7 |
|
8 |
media-video/dcpomatic: Initial import. |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
media-video/dcpomatic/Manifest | 2 + |
13 |
media-video/dcpomatic/dcpomatic-2.10.2.ebuild | 96 ++++++++++++++++++++++ |
14 |
media-video/dcpomatic/dcpomatic-2.9.0.ebuild | 65 +++++++++++++++ |
15 |
.../files/dcpomatic-2.10.2-respect-cxxflags.patch | 13 +++ |
16 |
.../dcpomatic/files/dcpomatic-2.8.0-desktop.patch | 32 ++++++++ |
17 |
.../files/dcpomatic-2.8.0-no-ldconfig.patch | 12 +++ |
18 |
.../dcpomatic/files/dcpomatic-2.8.0-wxGTK3.patch | 13 +++ |
19 |
media-video/dcpomatic/metadata.xml | 13 +++ |
20 |
8 files changed, 246 insertions(+) |
21 |
|
22 |
diff --git a/media-video/dcpomatic/Manifest b/media-video/dcpomatic/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..85327d34fc7 |
25 |
--- /dev/null |
26 |
+++ b/media-video/dcpomatic/Manifest |
27 |
@@ -0,0 +1,2 @@ |
28 |
+DIST dcpomatic-2.10.2.tar.bz2 37503820 SHA256 18182dda94de584299e660db3e232be8d98be5aa99255561154eb2048f3c2211 SHA512 dc4fff96db31ee7645cdc9aac59b37a8dc37f2d77287c41bd4da4df074802a518d4b9c0e5143272d50d2dfee03d46b4ac761c0423b51b327185aae0510c0deb5 WHIRLPOOL ed8b0d780e5ea50eae0bcce6ad1f2a087f9b8d703516fb3e1abe246af79bbeb92a18552642bb4517e5f2604856308ffe39bf47891e0dc59cac357c9866e2f52a |
29 |
+DIST dcpomatic-2.9.0.tar.bz2 37453226 SHA256 4596bb660e5339c6a633ceb40656d2787405ad91b706080335b1b466e17f920d SHA512 23a0882265b21ff6f7d74d4fdd10fc49a2427d907a6de1dec9f2b51ee5a4bc9a98f405adb2153214f43820887f7d481220ca25e762f253d31976e3ff2687fc0a WHIRLPOOL e49e866b7c4936a915d140dedb13764437c080080b36cd94796c6ae6d9c20ddb451600ebc00614bbe8ba55fea280e3285f073a0ab5029e72888f6080941b5d2c |
30 |
|
31 |
diff --git a/media-video/dcpomatic/dcpomatic-2.10.2.ebuild b/media-video/dcpomatic/dcpomatic-2.10.2.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..7456ff62c3e |
34 |
--- /dev/null |
35 |
+++ b/media-video/dcpomatic/dcpomatic-2.10.2.ebuild |
36 |
@@ -0,0 +1,96 @@ |
37 |
+# Copyright 1999-2017 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 ) |
43 |
+PYTHON_REQ_USE="threads(+)" |
44 |
+inherit python-any-r1 waf-utils wxwidgets |
45 |
+ |
46 |
+DESCRIPTION="create Digital Cinema Packages (DCPs) from videos, images and sound files" |
47 |
+HOMEPAGE="http://dcpomatic.com/" |
48 |
+SRC_URI="http://${PN}.com/downloads/${PV}/${P}.tar.bz2" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="+gtk" |
54 |
+ |
55 |
+RDEPEND="dev-cpp/cairomm |
56 |
+ dev-cpp/glibmm:2 |
57 |
+ dev-cpp/libxmlpp:2.6 |
58 |
+ dev-cpp/pangomm:1.4 |
59 |
+ dev-libs/boost |
60 |
+ dev-libs/glib:2 |
61 |
+ dev-libs/icu |
62 |
+ dev-libs/libcxml |
63 |
+ dev-libs/libzip |
64 |
+ dev-libs/openssl:0 |
65 |
+ || ( media-gfx/graphicsmagick media-gfx/imagemagick ) |
66 |
+ media-libs/fontconfig:1.0 |
67 |
+ >=media-libs/libdcp-1.4.1:1.0 |
68 |
+ media-libs/libsamplerate |
69 |
+ media-libs/libsndfile |
70 |
+ >=media-libs/libsub-1.2.1:1.0 |
71 |
+ >=media-video/ffmpeg-3:= |
72 |
+ net-libs/libssh |
73 |
+ net-misc/curl |
74 |
+ gtk? ( x11-libs/gtk+:2 |
75 |
+ x11-libs/wxGTK:3.0 )" |
76 |
+DEPEND="${RDEPEND} |
77 |
+ dev-util/waf |
78 |
+ virtual/pkgconfig" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${PN}-2.8.0-wxGTK3.patch |
82 |
+ "${FILESDIR}"/${PN}-2.8.0-no-ldconfig.patch |
83 |
+ "${FILESDIR}"/${PN}-2.8.0-desktop.patch |
84 |
+ "${FILESDIR}"/${PN}-2.10.2-respect-cxxflags.patch |
85 |
+ ) |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ rm -v waf |
89 |
+ export WAF_BINARY=${EROOT}usr/bin/waf |
90 |
+ if [ -z "${PYTHONPATH}" ] ; then |
91 |
+ export PYTHONPATH="${S}" |
92 |
+ else |
93 |
+ export PYTHONPATH="${S}:${PYTHONPATH}" |
94 |
+ fi |
95 |
+ |
96 |
+ ewarn "Some tests failing due missing files/certs are disabled." |
97 |
+ sed \ |
98 |
+ -e '/4k_test.cc/d' \ |
99 |
+ -e '/audio_analysis_test.cc/d' \ |
100 |
+ -e '/audio_decoder_test.cc/d' \ |
101 |
+ -e '/audio_processor_test.cc/d' \ |
102 |
+ -e '/black_fill_test.cc/d' \ |
103 |
+ -e '/client_server_test.cc/d' \ |
104 |
+ -e '/dcp_subtitle_test.cc/d' \ |
105 |
+ -e '/ffmpeg_decoder_sequential_test.cc/d' \ |
106 |
+ -e '/file_naming_test.cc/d' \ |
107 |
+ -e '/import_dcp_test.cc/d' \ |
108 |
+ -e '/interrupt_encoder_test.cc/d' \ |
109 |
+ -e '/j2k_bandwidth_test.cc/d' \ |
110 |
+ -e '/recover_test.cc/d' \ |
111 |
+ -e '/reels_test.cc/d' \ |
112 |
+ -e '/render_subtitles_test.cc/d' \ |
113 |
+ -e '/repeat_frame_test.cc/d' \ |
114 |
+ -e '/scaling_test.cc/d' \ |
115 |
+ -e '/skip_frame_test.cc/d' \ |
116 |
+ -e '/srt_subtitle_test.cc/d' \ |
117 |
+ -e '/ssa_subtitle_test.cc/d' \ |
118 |
+ -e '/vf_test.cc/d' \ |
119 |
+ -e '/video_mxf_content_test.cc/d' \ |
120 |
+ -e '/film_metadata_test.cc/d' \ |
121 |
+ -i test/wscript || die |
122 |
+ |
123 |
+ default |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ waf-utils_src_configure $(usex gtk "" "--disable-gui") |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ ./run/tests || die |
132 |
+} |
133 |
|
134 |
diff --git a/media-video/dcpomatic/dcpomatic-2.9.0.ebuild b/media-video/dcpomatic/dcpomatic-2.9.0.ebuild |
135 |
new file mode 100644 |
136 |
index 00000000000..80f5ab33c1c |
137 |
--- /dev/null |
138 |
+++ b/media-video/dcpomatic/dcpomatic-2.9.0.ebuild |
139 |
@@ -0,0 +1,65 @@ |
140 |
+# Copyright 1999-2017 Gentoo Foundation |
141 |
+# Distributed under the terms of the GNU General Public License v2 |
142 |
+ |
143 |
+EAPI=6 |
144 |
+ |
145 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) |
146 |
+PYTHON_REQ_USE="threads(+)" |
147 |
+inherit python-any-r1 waf-utils wxwidgets |
148 |
+ |
149 |
+DESCRIPTION="create Digital Cinema Packages (DCPs) from videos, images and sound files" |
150 |
+HOMEPAGE="http://dcpomatic.com/" |
151 |
+SRC_URI="http://${PN}.com/downloads/${PV}/${P}.tar.bz2" |
152 |
+ |
153 |
+LICENSE="GPL-2" |
154 |
+SLOT="0" |
155 |
+KEYWORDS="~amd64" |
156 |
+IUSE="+gtk" |
157 |
+ |
158 |
+RDEPEND="dev-cpp/cairomm |
159 |
+ dev-cpp/glibmm:2 |
160 |
+ dev-cpp/libxmlpp:2.6 |
161 |
+ dev-cpp/pangomm:1.4 |
162 |
+ dev-libs/boost |
163 |
+ dev-libs/glib:2 |
164 |
+ dev-libs/icu |
165 |
+ dev-libs/libcxml |
166 |
+ dev-libs/libzip |
167 |
+ dev-libs/openssl:0 |
168 |
+ || ( media-gfx/graphicsmagick media-gfx/imagemagick ) |
169 |
+ media-libs/fontconfig:1.0 |
170 |
+ media-libs/libdcp:1.0 |
171 |
+ media-libs/libsamplerate |
172 |
+ media-libs/libsndfile |
173 |
+ media-libs/libsub:1.0 |
174 |
+ >=media-video/ffmpeg-3 |
175 |
+ <media-video/ffmpeg-3.2.4 |
176 |
+ net-libs/libssh |
177 |
+ net-misc/curl |
178 |
+ gtk? ( x11-libs/gtk+:2 |
179 |
+ x11-libs/wxGTK:3.0 )" |
180 |
+DEPEND="${RDEPEND} |
181 |
+ dev-util/waf |
182 |
+ virtual/pkgconfig" |
183 |
+ |
184 |
+PATCHES=( |
185 |
+ "${FILESDIR}"/${PN}-2.8.0-wxGTK3.patch |
186 |
+ "${FILESDIR}"/${PN}-2.8.0-no-ldconfig.patch |
187 |
+ "${FILESDIR}"/${PN}-2.8.0-desktop.patch |
188 |
+ ) |
189 |
+ |
190 |
+src_prepare() { |
191 |
+ rm -v waf |
192 |
+ export WAF_BINARY=${EROOT}usr/bin/waf |
193 |
+ if [ -z "${PYTHONPATH}" ] ; then |
194 |
+ export PYTHONPATH="${S}" |
195 |
+ else |
196 |
+ export PYTHONPATH="${S}:${PYTHONPATH}" |
197 |
+ fi |
198 |
+ |
199 |
+ default |
200 |
+} |
201 |
+ |
202 |
+src_configure() { |
203 |
+ waf-utils_src_configure $(usex gtk "" "--disable-gui") |
204 |
+} |
205 |
|
206 |
diff --git a/media-video/dcpomatic/files/dcpomatic-2.10.2-respect-cxxflags.patch b/media-video/dcpomatic/files/dcpomatic-2.10.2-respect-cxxflags.patch |
207 |
new file mode 100644 |
208 |
index 00000000000..330dfd0609f |
209 |
--- /dev/null |
210 |
+++ b/media-video/dcpomatic/files/dcpomatic-2.10.2-respect-cxxflags.patch |
211 |
@@ -0,0 +1,13 @@ |
212 |
+--- dcpomatic-2.10.2/wscript |
213 |
++++ dcpomatic-2.10.2/wscript |
214 |
+@@ -89,9 +89,7 @@ |
215 |
+ have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1 |
216 |
+ |
217 |
+ if conf.options.enable_debug: |
218 |
+- conf.env.append_value('CXXFLAGS', ['-g', '-DDCPOMATIC_DEBUG', '-fno-omit-frame-pointer']) |
219 |
+- else: |
220 |
+- conf.env.append_value('CXXFLAGS', '-O2') |
221 |
++ conf.env.append_value('CXXFLAGS', ['-DDCPOMATIC_DEBUG', '-fno-omit-frame-pointer']) |
222 |
+ |
223 |
+ # |
224 |
+ # Windows/Linux/OS X specific |
225 |
|
226 |
diff --git a/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch b/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch |
227 |
new file mode 100644 |
228 |
index 00000000000..615a998e2a7 |
229 |
--- /dev/null |
230 |
+++ b/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch |
231 |
@@ -0,0 +1,32 @@ |
232 |
+--- dcpomatic-2.8.0/platform/linux/dcpomatic.desktop.in |
233 |
++++ dcpomatic-2.8.0/platform/linux/dcpomatic.desktop.in |
234 |
+@@ -7,4 +7,4 @@ |
235 |
+ Name=DCP-o-matic 2 |
236 |
+ Icon=dcpomatic2 |
237 |
+ Comment=DCP generator |
238 |
+-Categories=AudioVideo;Video |
239 |
++Categories=AudioVideo;Video; |
240 |
+--- dcpomatic-2.8.0/platform/linux/dcpomatic_server.desktop.in |
241 |
++++ dcpomatic-2.8.0/platform/linux/dcpomatic_server.desktop.in |
242 |
+@@ -7,4 +7,4 @@ |
243 |
+ Name=DCP-o-matic 2 Encode Server |
244 |
+ Icon=dcpomatic2_server |
245 |
+ Comment=DCP generator |
246 |
+-Categories=AudioVideo;Video |
247 |
++Categories=AudioVideo;Video; |
248 |
+--- dcpomatic-2.8.0/platform/linux/dcpomatic_kdm.desktop.in |
249 |
++++ dcpomatic-2.8.0/platform/linux/dcpomatic_kdm.desktop.in |
250 |
+@@ -7,4 +7,4 @@ |
251 |
+ Name=DCP-o-matic 2 KDM Creator |
252 |
+ Icon=dcpomatic2_kdm |
253 |
+ Comment=DCP generator |
254 |
+-Categories=AudioVideo;Video |
255 |
++Categories=AudioVideo;Video; |
256 |
+--- dcpomatic-2.8.0/platform/linux/dcpomatic_batch.desktop.in |
257 |
++++ dcpomatic-2.8.0/platform/linux/dcpomatic_batch.desktop.in |
258 |
+@@ -7,4 +7,4 @@ |
259 |
+ Name=DCP-o-matic 2 Batch Converter |
260 |
+ Icon=dcpomatic2_batch |
261 |
+ Comment=DCP generator |
262 |
+-Categories=AudioVideo;Video |
263 |
++Categories=AudioVideo;Video; |
264 |
|
265 |
diff --git a/media-video/dcpomatic/files/dcpomatic-2.8.0-no-ldconfig.patch b/media-video/dcpomatic/files/dcpomatic-2.8.0-no-ldconfig.patch |
266 |
new file mode 100644 |
267 |
index 00000000000..106e2395e73 |
268 |
--- /dev/null |
269 |
+++ b/media-video/dcpomatic/files/dcpomatic-2.8.0-no-ldconfig.patch |
270 |
@@ -0,0 +1,12 @@ |
271 |
+--- dcpomatic-2.8.0/wscript |
272 |
++++ dcpomatic-2.8.0/wscript |
273 |
+@@ -503,8 +503,7 @@ |
274 |
+ sys.exit(-1) |
275 |
+ |
276 |
+ def post(ctx): |
277 |
+- if ctx.cmd == 'install': |
278 |
+- ctx.exec_command('/sbin/ldconfig') |
279 |
++ pass |
280 |
+ |
281 |
+ def pot(bld): |
282 |
+ bld.recurse('src') |
283 |
|
284 |
diff --git a/media-video/dcpomatic/files/dcpomatic-2.8.0-wxGTK3.patch b/media-video/dcpomatic/files/dcpomatic-2.8.0-wxGTK3.patch |
285 |
new file mode 100644 |
286 |
index 00000000000..9d85ad58331 |
287 |
--- /dev/null |
288 |
+++ b/media-video/dcpomatic/files/dcpomatic-2.8.0-wxGTK3.patch |
289 |
@@ -0,0 +1,13 @@ |
290 |
+--- dcpomatic-2.8.0/src/wx/wscript |
291 |
++++ dcpomatic-2.8.0/src/wx/wscript |
292 |
+@@ -103,8 +103,8 @@ |
293 |
+ |
294 |
+ def configure(conf): |
295 |
+ try: |
296 |
+- wx_config = 'wx-config-3.0-gtk2' |
297 |
+- conf.check_cfg(msg='Checking for wxWidgets using wx-config-3.0-gtk2', |
298 |
++ wx_config = 'wx-config-3.0' |
299 |
++ conf.check_cfg(msg='Checking for wxWidgets using wx-config-3.0', |
300 |
+ package='', |
301 |
+ path=wx_config, |
302 |
+ args='--cppflags --cxxflags --libs std,richtext', |
303 |
|
304 |
diff --git a/media-video/dcpomatic/metadata.xml b/media-video/dcpomatic/metadata.xml |
305 |
new file mode 100644 |
306 |
index 00000000000..bc4c75f8360 |
307 |
--- /dev/null |
308 |
+++ b/media-video/dcpomatic/metadata.xml |
309 |
@@ -0,0 +1,13 @@ |
310 |
+<?xml version="1.0" encoding="UTF-8"?> |
311 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
312 |
+<pkgmetadata> |
313 |
+<maintainer type="person"> |
314 |
+<email>xmw@g.o</email> |
315 |
+<name>Michael Weber</name> |
316 |
+</maintainer> |
317 |
+<longdescription lang="en"> |
318 |
+DCP-o-matic is a free, open-source program to create Digital Cinema Packages (DCPs) from videos, images, sound and subtitle files. You can use it to make content for playback on DCI-compliant cinema projectors. |
319 |
+ |
320 |
+It can take files in many different formats, including MP4, Apple ProRes, MOV, AVI, VOB (from DVDs), M2TS (from Blu-Ray), WMV, MKV, JPEG, PNG, TIFF and lots of others. |
321 |
+</longdescription> |
322 |
+</pkgmetadata> |