Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/handbrake/
Date: Mon, 31 May 2021 23:19:29
Message-Id: 1622503149.04fa4a1baec81b44f8c5ad5ece7f8559cff61ad6.sam@gentoo
1 commit: 04fa4a1baec81b44f8c5ad5ece7f8559cff61ad6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 23:12:07 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 23:19:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04fa4a1b
7
8 media-video/handbrake: drop 1.3.3
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 media-video/handbrake/handbrake-1.3.3.ebuild | 165 ---------------------------
13 1 file changed, 165 deletions(-)
14
15 diff --git a/media-video/handbrake/handbrake-1.3.3.ebuild b/media-video/handbrake/handbrake-1.3.3.ebuild
16 deleted file mode 100644
17 index ca460ce1ce3..00000000000
18 --- a/media-video/handbrake/handbrake-1.3.3.ebuild
19 +++ /dev/null
20 @@ -1,165 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -PYTHON_COMPAT=( python3_{7,8} )
27 -
28 -inherit autotools eutils gnome2-utils python-any-r1 xdg-utils
29 -
30 -if [[ ${PV} = *9999* ]]; then
31 - EGIT_REPO_URI="https://github.com/HandBrake/HandBrake.git"
32 - inherit git-r3
33 -else
34 - MY_P="HandBrake-${PV}"
35 - SRC_URI="https://github.com/HandBrake/HandBrake/releases/download/${PV}/${MY_P}-source.tar.bz2 -> ${P}.tar.bz2"
36 - S="${WORKDIR}/${MY_P}"
37 - KEYWORDS="~amd64 ~x86"
38 -fi
39 -
40 -DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder"
41 -HOMEPAGE="http://handbrake.fr/"
42 -LICENSE="GPL-2"
43 -
44 -SLOT="0"
45 -IUSE="+fdk gstreamer gtk libav-aac numa nvenc x265"
46 -
47 -REQUIRED_USE="^^ ( fdk libav-aac )"
48 -
49 -RDEPEND="
50 - app-arch/xz-utils
51 - media-libs/speex
52 - dev-libs/jansson
53 - dev-libs/libxml2
54 - media-libs/a52dec
55 - media-libs/libass:=
56 - >=media-libs/libbluray-1.0
57 - >=media-libs/dav1d-0.5.1
58 - media-libs/libdvdnav
59 - media-libs/libdvdread:=
60 - media-libs/libsamplerate
61 - media-libs/libtheora
62 - media-libs/libvorbis
63 - >=media-libs/libvpx-1.8
64 - nvenc? ( media-libs/nv-codec-headers )
65 - media-libs/opus
66 - media-libs/x264:=
67 - media-sound/lame
68 - sys-libs/zlib
69 - >=media-video/ffmpeg-4.2.1:0=[postproc,fdk?]
70 - gstreamer? (
71 - media-libs/gstreamer:1.0
72 - media-libs/gst-plugins-base:1.0
73 - media-libs/gst-plugins-good:1.0
74 - media-libs/gst-plugins-bad:1.0
75 - media-libs/gst-plugins-ugly:1.0
76 - media-plugins/gst-plugins-a52dec:1.0
77 - media-plugins/gst-plugins-libav:1.0
78 - media-plugins/gst-plugins-x264:1.0
79 - media-plugins/gst-plugins-gdkpixbuf:1.0
80 - )
81 - gtk? (
82 - >=x11-libs/gtk+-3.10
83 - dev-libs/dbus-glib
84 - dev-libs/glib:2
85 - dev-libs/libgudev:=
86 - x11-libs/cairo
87 - x11-libs/gdk-pixbuf:2
88 - x11-libs/libnotify
89 - x11-libs/pango
90 - )
91 - fdk? ( media-libs/fdk-aac )
92 - x265? ( >=media-libs/x265-3.2:0=[10bit,12bit,numa?] )
93 - "
94 -
95 -DEPEND="${RDEPEND}
96 - ${PYTHON_DEPS}
97 - dev-lang/yasm
98 - dev-util/intltool
99 - sys-devel/automake"
100 -
101 -PATCHES=(
102 - # Remove libdvdnav duplication and call it on the original instead.
103 - # It may work this way; if not, we should try to mimic the duplication.
104 - "${FILESDIR}/${PN}-9999-remove-dvdnav-dup.patch"
105 -
106 - # Remove faac dependency; TODO: figure out if we need to do this at all.
107 - "${FILESDIR}/${PN}-9999-remove-faac-dependency.patch"
108 -
109 - # Use whichever python is set by portage
110 - "${FILESDIR}/${PN}-1.3.0-dont-search-for-python.patch"
111 -
112 - # Fix x265 linkage... again #724650
113 - "${FILESDIR}/${PN}-1.3.2-x265-link.patch"
114 -)
115 -
116 -src_prepare() {
117 - # Get rid of leftover bundled library build definitions,
118 - sed -i 's:.*\(/contrib\|contrib/\).*::g' \
119 - "${S}"/make/include/main.defs \
120 - || die "Contrib removal failed."
121 -
122 - default
123 -
124 - cd "${S}/gtk"
125 - # Don't run autogen.sh.
126 - sed -i '/autogen.sh/d' module.rules || die "Removing autogen.sh call failed"
127 - eautoreconf
128 -}
129 -
130 -src_configure() {
131 - # Libav was replaced in 1.2 with ffmpeg by default
132 - # but I've elected to not make people change their use flags for AAC
133 - # as its the same code anyway
134 - ./configure \
135 - --force \
136 - --verbose \
137 - --prefix="${EPREFIX}/usr" \
138 - --disable-gtk-update-checks \
139 - --disable-flatpak \
140 - --disable-gtk4 \
141 - $(use_enable libav-aac ffmpeg-aac) \
142 - $(use_enable fdk fdk-aac) \
143 - $(usex !gtk --disable-gtk) \
144 - $(usex !gstreamer --disable-gst) \
145 - $(use_enable numa) \
146 - $(use_enable nvenc) \
147 - $(use_enable x265) || die "Configure failed."
148 -}
149 -
150 -src_compile() {
151 - emake -C build
152 -
153 - # TODO: Documentation building is currently broken, try to fix it.
154 - #
155 - # if use doc ; then
156 - # emake -C build doc
157 - # fi
158 -}
159 -
160 -src_install() {
161 - emake -C build DESTDIR="${D}" install
162 -
163 - dodoc README.markdown AUTHORS.markdown NEWS.markdown THANKS.markdown
164 -}
165 -
166 -pkg_postinst() {
167 - einfo "Gentoo builds of HandBrake are NOT SUPPORTED by upstream as they"
168 - einfo "do not use the bundled (and often patched) upstream libraries."
169 - einfo ""
170 - einfo "Please do not raise bugs with upstream because of these ebuilds,"
171 - einfo "report bugs to Gentoo's bugzilla or Multimedia forum instead."
172 -
173 - einfo "For the CLI version of HandBrake, you can use \`HandBrakeCLI\`."
174 - if use gtk ; then
175 - einfo "For the GTK+ version of HandBrake, you can run \`ghb\`."
176 - fi
177 -
178 - xdg_icon_cache_update
179 - xdg_desktop_database_update
180 -}
181 -
182 -pkg_postrm() {
183 - xdg_icon_cache_update
184 - xdg_desktop_database_update
185 -}