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