1 |
commit: 1340cf0c06d0b471a45d586aae1b6800166dd502 |
2 |
Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 25 18:34:25 2018 +0000 |
4 |
Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 25 18:34:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1340cf0c |
7 |
|
8 |
media-video/handbrake: bump |
9 |
|
10 |
Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
media-video/handbrake/Manifest | 1 + |
14 |
media-video/handbrake/handbrake-1.1.2.ebuild | 158 +++++++++++++++++++++++++++ |
15 |
2 files changed, 159 insertions(+) |
16 |
|
17 |
diff --git a/media-video/handbrake/Manifest b/media-video/handbrake/Manifest |
18 |
index 9bd0e845dc8..746c12fa747 100644 |
19 |
--- a/media-video/handbrake/Manifest |
20 |
+++ b/media-video/handbrake/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST handbrake-1.1.0.tar.bz2 15262590 BLAKE2B b2f892c57cd562124460ac2846949bd0ce05eff0b87fbd733d7102eeda9455f57997fb0bbd72d991d0f2d8ab3f02e6f82d88a0449158c3a947595f50198eb4bd SHA512 48cbbc57e93e74a8aa3d224311f5d97905061e103c3ecb07aa5e09d8f401687679cac0e8952e146fea0fad5d00e6c26fe90159c11e87b8b413469abbe900edc3 |
23 |
DIST handbrake-1.1.1.tar.bz2 15319551 BLAKE2B d0569a796f3838f5696e3dcfed348a5111e063841cb594bbce7283568cdf868e6b751f3cd6086ebc83af5f2d6ad9e238717425f953677cca9e2908a9c0301aa9 SHA512 990035a5f850fafbc68c77dd61d7f7371c3eda2cc6e6ceb377f111c9016713523cf1685f519926ae8859446c99392c64b7ce91d72f9b5f9643a35a3d0326eef4 |
24 |
+DIST handbrake-1.1.2.tar.bz2 15291003 BLAKE2B b502ba18139c3332b8614e831005b4a846c0fab9a31bce2c9f3481d6d41ba3f087ded30adb6bd58220b14002f230fb920db1cc45ec7baee4fda573148fddfc8e SHA512 360f7fe3e4571bb623f54a00e9478a78d655448ffb1b8d72b7d32636a230f2ae4dabbfe803f6f9491537064ea4f6e238700b3d29912ae34383fbb1922e18e9b8 |
25 |
|
26 |
diff --git a/media-video/handbrake/handbrake-1.1.2.ebuild b/media-video/handbrake/handbrake-1.1.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6e3559d14f9 |
29 |
--- /dev/null |
30 |
+++ b/media-video/handbrake/handbrake-1.1.2.ebuild |
31 |
@@ -0,0 +1,158 @@ |
32 |
+# Copyright 1999-2018 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+ |
39 |
+inherit autotools eutils gnome2-utils python-any-r1 xdg-utils |
40 |
+ |
41 |
+if [[ ${PV} = *9999* ]]; then |
42 |
+ EGIT_REPO_URI="https://github.com/HandBrake/HandBrake.git" |
43 |
+ inherit git-r3 |
44 |
+ KEYWORDS="" |
45 |
+else |
46 |
+ MY_P="HandBrake-${PV}" |
47 |
+ SRC_URI="https://download2.handbrake.fr/${PV}/${MY_P}-source.tar.bz2 -> ${P}.tar.bz2" |
48 |
+ S="${WORKDIR}/${MY_P}" |
49 |
+ KEYWORDS="~amd64 ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder" |
53 |
+HOMEPAGE="http://handbrake.fr/" |
54 |
+LICENSE="GPL-2" |
55 |
+ |
56 |
+SLOT="0" |
57 |
+IUSE="+fdk gstreamer gtk libav libav-aac x265" |
58 |
+ |
59 |
+REQUIRED_USE="^^ ( fdk libav-aac )" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ dev-libs/jansson |
63 |
+ media-libs/a52dec |
64 |
+ media-libs/libass:= |
65 |
+ >=media-libs/libbluray-1.0 |
66 |
+ media-libs/libdvdnav |
67 |
+ media-libs/libdvdread |
68 |
+ media-libs/libsamplerate |
69 |
+ media-libs/libtheora |
70 |
+ media-libs/libvorbis |
71 |
+ media-libs/libvpx |
72 |
+ media-libs/opus |
73 |
+ media-libs/x264:= |
74 |
+ media-sound/lame |
75 |
+ sys-libs/zlib |
76 |
+ libav? ( >=media-video/libav-12.2:0=[fdk?] ) |
77 |
+ !libav? ( >=media-video/ffmpeg-3.4:0=[fdk?] ) |
78 |
+ gstreamer? ( |
79 |
+ media-libs/gstreamer:1.0 |
80 |
+ media-libs/gst-plugins-base:1.0 |
81 |
+ media-libs/gst-plugins-good:1.0 |
82 |
+ media-libs/gst-plugins-bad:1.0 |
83 |
+ media-libs/gst-plugins-ugly:1.0 |
84 |
+ media-plugins/gst-plugins-a52dec:1.0 |
85 |
+ media-plugins/gst-plugins-libav:1.0 |
86 |
+ media-plugins/gst-plugins-x264:1.0 |
87 |
+ ) |
88 |
+ gtk? ( |
89 |
+ >=x11-libs/gtk+-3.10 |
90 |
+ dev-libs/dbus-glib |
91 |
+ dev-libs/glib:2 |
92 |
+ x11-libs/cairo |
93 |
+ x11-libs/gdk-pixbuf:2 |
94 |
+ x11-libs/libnotify |
95 |
+ x11-libs/pango |
96 |
+ virtual/libgudev:= |
97 |
+ ) |
98 |
+ fdk? ( media-libs/fdk-aac ) |
99 |
+ x265? ( >=media-libs/x265-1.7:0= ) |
100 |
+ " |
101 |
+ |
102 |
+DEPEND="${RDEPEND} |
103 |
+ ${PYTHON_DEPS} |
104 |
+ dev-lang/yasm |
105 |
+ dev-util/intltool |
106 |
+ sys-devel/automake" |
107 |
+ |
108 |
+PATCHES=( |
109 |
+ # Remove libdvdnav duplication and call it on the original instead. |
110 |
+ # It may work this way; if not, we should try to mimic the duplication. |
111 |
+ "${FILESDIR}/${PN}-9999-remove-dvdnav-dup.patch" |
112 |
+ |
113 |
+ # Remove faac dependency; TODO: figure out if we need to do this at all. |
114 |
+ "${FILESDIR}/${PN}-9999-remove-faac-dependency.patch" |
115 |
+ |
116 |
+ # Fix missing x265 link flag |
117 |
+ "${FILESDIR}/${PN}-9999-fix-missing-x265-link-flag.patch" |
118 |
+) |
119 |
+ |
120 |
+pkg_setup() { |
121 |
+ python-any-r1_pkg_setup |
122 |
+} |
123 |
+ |
124 |
+src_prepare() { |
125 |
+ # Get rid of leftover bundled library build definitions, |
126 |
+ sed -i 's:.*\(/contrib\|contrib/\).*::g' \ |
127 |
+ "${S}"/make/include/main.defs \ |
128 |
+ || die "Contrib removal failed." |
129 |
+ |
130 |
+ default |
131 |
+ |
132 |
+ # Get rid of libav specific code when using ffmpeg |
133 |
+ use libav || eapply -R "${FILESDIR}/${PN}-1.1.0-nolibav.patch" |
134 |
+ |
135 |
+ cd "${S}/gtk" |
136 |
+ # Don't run autogen.sh. |
137 |
+ sed -i '/autogen.sh/d' module.rules || die "Removing autogen.sh call failed" |
138 |
+ eautoreconf |
139 |
+} |
140 |
+ |
141 |
+src_configure() { |
142 |
+ ./configure \ |
143 |
+ --force \ |
144 |
+ --verbose \ |
145 |
+ --prefix="${EPREFIX}/usr" \ |
146 |
+ --disable-gtk-update-checks \ |
147 |
+ $(use_enable libav-aac) \ |
148 |
+ $(use_enable fdk fdk-aac) \ |
149 |
+ $(use_enable gtk) \ |
150 |
+ $(usex !gstreamer --disable-gst) \ |
151 |
+ $(use_enable x265) || die "Configure failed." |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ emake -C build |
156 |
+ |
157 |
+ # TODO: Documentation building is currently broken, try to fix it. |
158 |
+ # |
159 |
+ # if use doc ; then |
160 |
+ # emake -C build doc |
161 |
+ # fi |
162 |
+} |
163 |
+ |
164 |
+src_install() { |
165 |
+ emake -C build DESTDIR="${D}" install |
166 |
+ |
167 |
+ dodoc README.markdown AUTHORS.markdown NEWS.markdown THANKS.markdown |
168 |
+} |
169 |
+ |
170 |
+pkg_postinst() { |
171 |
+ einfo "For the CLI version of HandBrake, you can use \`HandBrakeCLI\`." |
172 |
+ |
173 |
+ if use gtk ; then |
174 |
+ einfo "" |
175 |
+ einfo "For the GTK+ version of HandBrake, you can run \`ghb\`." |
176 |
+ fi |
177 |
+ |
178 |
+ gnome2_icon_cache_update |
179 |
+ xdg_desktop_database_update |
180 |
+} |
181 |
+ |
182 |
+pkg_preinst() { |
183 |
+ gnome2_icon_savelist |
184 |
+} |
185 |
+ |
186 |
+pkg_postrm() { |
187 |
+ gnome2_icon_cache_update |
188 |
+ xdg_desktop_database_update |
189 |
+} |