Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/handbrake: handbrake-9999.ebuild handbrake-0.9.9-r1.ebuild ChangeLog
Date: Wed, 26 Mar 2014 15:40:00
Message-Id: 20140326153957.380B42004E@flycatcher.gentoo.org
1 tomwij 14/03/26 15:39:57
2
3 Modified: handbrake-9999.ebuild ChangeLog
4 Added: handbrake-0.9.9-r1.ebuild
5 Log:
6 Revision bump, add more gstreamer dependencies to unbreak parts of the application; fixes bug #505396, reported by Abigail.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.17 media-video/handbrake/handbrake-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild?r1=1.16&r2=1.17
16
17 Index: handbrake-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- handbrake-9999.ebuild 19 Mar 2014 15:19:44 -0000 1.16
24 +++ handbrake-9999.ebuild 26 Mar 2014 15:39:56 -0000 1.17
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild,v 1.16 2014/03/19 15:19:44 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/handbrake/handbrake-9999.ebuild,v 1.17 2014/03/26 15:39:56 tomwij Exp $
30
31 EAPI="5"
32
33 @@ -54,6 +54,12 @@
34 gstreamer? (
35 media-libs/gstreamer:1.0
36 media-libs/gst-plugins-base:1.0
37 + media-libs/gst-plugins-good:1.0
38 + media-libs/gst-plugins-bad:1.0
39 + media-libs/gst-plugins-ugly:1.0
40 + media-plugins/gst-plugins-a52dec:1.0
41 + media-plugins/gst-plugins-libav:1.0
42 + media-plugins/gst-plugins-x264:1.0
43 !ffmpeg? ( media-plugins/gst-plugins-mpeg2dec:1.0 )
44 )
45 gtk? (
46
47
48
49 1.20 media-video/handbrake/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/ChangeLog?rev=1.20&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/ChangeLog?rev=1.20&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/ChangeLog?r1=1.19&r2=1.20
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/media-video/handbrake/ChangeLog,v
58 retrieving revision 1.19
59 retrieving revision 1.20
60 diff -u -r1.19 -r1.20
61 --- ChangeLog 19 Mar 2014 15:19:44 -0000 1.19
62 +++ ChangeLog 26 Mar 2014 15:39:57 -0000 1.20
63 @@ -1,6 +1,13 @@
64 # ChangeLog for media-video/handbrake
65 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/media-video/handbrake/ChangeLog,v 1.19 2014/03/19 15:19:44 tomwij Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/media-video/handbrake/ChangeLog,v 1.20 2014/03/26 15:39:57 tomwij Exp $
68 +
69 +*handbrake-0.9.9-r1 (26 Mar 2014)
70 +
71 + 26 Mar 2014; Tom Wijsman <TomWij@g.o> +handbrake-0.9.9-r1.ebuild,
72 + handbrake-9999.ebuild:
73 + Revision bump, add more gstreamer dependencies to unbreak parts of the
74 + application; fixes bug #505396, reported by Abigail.
75
76 19 Mar 2014; Tom Wijsman <TomWij@g.o>
77 files/handbrake-9999-remove-faac-dependency.patch, handbrake-9999.ebuild:
78
79
80
81 1.1 media-video/handbrake/handbrake-0.9.9-r1.ebuild
82
83 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/handbrake-0.9.9-r1.ebuild?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/handbrake/handbrake-0.9.9-r1.ebuild?rev=1.1&content-type=text/plain
85
86 Index: handbrake-0.9.9-r1.ebuild
87 ===================================================================
88 # Copyright 1999-2014 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90 # $Header: /var/cvsroot/gentoo-x86/media-video/handbrake/handbrake-0.9.9-r1.ebuild,v 1.1 2014/03/26 15:39:57 tomwij Exp $
91
92 EAPI="5"
93
94 PYTHON_COMPAT=( python2_{6,7} )
95
96 inherit autotools eutils gnome2-utils python-any-r1
97
98 if [[ ${PV} = *9999* ]]; then
99 ESVN_REPO_URI="svn://svn.handbrake.fr/HandBrake/trunk"
100 inherit subversion
101 KEYWORDS=""
102 else
103 SRC_URI="http://handbrake.fr/rotation.php?file=HandBrake-${PV}.tar.bz2 -> ${P}.tar.bz2"
104 S="${WORKDIR}/HandBrake-${PV}"
105 KEYWORDS="~amd64 ~x86"
106 fi
107
108 DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder."
109 HOMEPAGE="http://handbrake.fr/"
110 LICENSE="GPL-2"
111
112 SLOT="0"
113 IUSE="fdk ffmpeg gstreamer gtk"
114
115 # Use either ffmpeg or gst-plugins/mpeg2dec for decoding MPEG-2.
116 REQUIRED_USE="!ffmpeg? ( gstreamer )"
117
118 RDEPEND="
119 media-libs/a52dec
120 media-libs/libass
121 media-libs/libbluray
122 media-libs/libdvdnav
123 media-libs/libdvdread
124 media-libs/libmpeg2
125 media-libs/libmp4v2:0
126 media-libs/libmkv
127 media-libs/libsamplerate
128 media-libs/libtheora
129 media-libs/libvorbis
130 media-libs/x264:=
131 media-sound/lame
132 ffmpeg? ( || ( >=media-video/libav-9:= >=media-video/ffmpeg-1.2.1:0= ) )
133 sys-libs/zlib
134 gstreamer? (
135 media-libs/gstreamer:1.0
136 media-libs/gst-plugins-base:1.0
137 media-libs/gst-plugins-good:1.0
138 media-libs/gst-plugins-bad:1.0
139 media-libs/gst-plugins-ugly:1.0
140 media-plugins/gst-plugins-a52dec:1.0
141 media-plugins/gst-plugins-libav:1.0
142 media-plugins/gst-plugins-x264:1.0
143 !ffmpeg? ( media-plugins/gst-plugins-mpeg2dec:1.0 )
144 )
145 gtk? (
146 x11-libs/gtk+:3
147 dev-libs/dbus-glib
148 dev-libs/glib:2
149 x11-libs/cairo
150 x11-libs/gdk-pixbuf:2
151 x11-libs/libnotify
152 x11-libs/pango
153 >=virtual/udev-171[gudev]
154 )
155 fdk? ( media-libs/fdk-aac )
156 "
157
158 DEPEND="${RDEPEND}
159 ${PYTHON_DEPS}
160 dev-lang/yasm
161 dev-util/intltool
162 sys-devel/automake"
163
164 pkg_setup() {
165 python-any-r1_pkg_setup
166 }
167
168 src_prepare() {
169 # Get rid of leftover bundled library build definitions,
170 # the version 0.9.9 supports the use of system libraries.
171 sed -i 's:.*\(/contrib\|contrib/\).*::g' \
172 "${S}"/make/include/main.defs \
173 || die "Contrib removal failed."
174
175 # Instead of adding a #define to libmkv, we expand it in place.
176 epatch "${FILESDIR}"/${PN}-9999-expand-MK_SUBTITLE_PGS.patch
177
178 # Fix compilation against the released 1.9.1 version of mp4v2.
179 epatch "${FILESDIR}"/${P}-fix-compilation-with-mp4v2-v1.9.1.patch
180
181 # Remove libdvdnav duplication and call it on the original instead.
182 # It may work this way; if not, we should try to mimic the duplication.
183 epatch "${FILESDIR}"/${PN}-9999-remove-dvdnav-dup.patch
184
185 # Remove faac dependency until its compilation errors can be resolved.
186 epatch "${FILESDIR}"/${P}-remove-faac-dependency.patch
187 sed -i 's/-lfaac//' gtk/configure.ac || die
188
189 # Make use of an older version of libmkv.
190 epatch "${FILESDIR}"/${PN}-9999-use-older-libmkv.patch
191
192 # Make use of an unpatched version of a52 that does not make a private field public.
193 epatch "${FILESDIR}"/${PN}-9999-use-unpatched-a52.patch
194
195 # Add gmodule to the linker command line for bug #482674.
196 epatch "${FILESDIR}"/${P}-add-gmodule-to-gtk-configure.patch
197
198 # Fixup configure.ac with newer automake
199 cd "${S}/gtk"
200 sed -i \
201 -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \
202 -e 's:AM_PROG_CC_STDC:AC_PROG_CC:g' \
203 -e 's:am_cv_prog_cc_stdc:ac_cv_prog_cc_stdc:g' \
204 configure.ac || die "Fixing up configure.ac failed"
205
206 # Don't run autogen.sh
207 sed -i '/autogen.sh/d' module.rules || die "Removing autogen.sh call failed"
208 eautoreconf
209 }
210
211 src_configure() {
212 local myconf=""
213
214 if ! use gtk ; then
215 myconf+=" --disable-gtk"
216 fi
217
218 if ! use gstreamer ; then
219 myconf+=" --disable-gst"
220 fi
221
222 if use ffmpeg ; then
223 myconf+=" --enable-ff-mpeg2"
224 fi
225
226 if use fdk ; then
227 myconf+=" --enable-fdk-aac"
228 fi
229
230 ./configure \
231 --force \
232 --prefix="${EPREFIX}/usr" \
233 --disable-gtk-update-checks \
234 ${myconf} || die "Configure failed."
235 }
236
237 src_compile() {
238 emake -C build
239
240 # Documentation building is currently broken.
241 #
242 # if use doc ; then
243 # emake -C build doc
244 # fi
245 }
246
247 src_install() {
248 emake -C build DESTDIR="${D}" install
249
250 dodoc AUTHORS CREDITS NEWS THANKS TRANSLATIONS
251 }
252
253 pkg_postinst() {
254 einfo "For the CLI version of HandBrake, you can use \`HandBrakeCLI\`."
255
256 if use gtk ; then
257 einfo ""
258 einfo "For the GTK+ version of HandBrake, you can run \`ghb\`."
259 fi
260 }
261
262 pkg_preinst() {
263 gnome2_icon_savelist
264 }
265
266 pkg_postinst() {
267 gnome2_icon_cache_update
268 }
269
270 pkg_postrm() {
271 gnome2_icon_cache_update
272 }