1 |
commit: 8dbb1b8af44280388f0a24d9cc83251b343b6a25 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 14 19:53:31 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 14 20:04:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dbb1b8a |
7 |
|
8 |
media-video/mplayer: Drop directfb support (#642506), stop using deprecated eclasses |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
.../mplayer/files/mplayer-1.3-vdpau-x11.patch | 4 ++-- |
13 |
...mplayer-9999.ebuild => mplayer-1.3.0-r4.ebuild} | 24 +++++++++++++--------- |
14 |
media-video/mplayer/mplayer-9999.ebuild | 18 ++++++++-------- |
15 |
3 files changed, 25 insertions(+), 21 deletions(-) |
16 |
|
17 |
diff --git a/media-video/mplayer/files/mplayer-1.3-vdpau-x11.patch b/media-video/mplayer/files/mplayer-1.3-vdpau-x11.patch |
18 |
index ae21941a8aa..cfefb63deb9 100644 |
19 |
--- a/media-video/mplayer/files/mplayer-1.3-vdpau-x11.patch |
20 |
+++ b/media-video/mplayer/files/mplayer-1.3-vdpau-x11.patch |
21 |
@@ -7,8 +7,8 @@ commit d40e181bec22014a9ea312ab6837f7f0bc4f9e42 . |
22 |
|
23 |
Index: libvo/vo_vdpau.c |
24 |
=================================================================== |
25 |
---- libvo/vo_vdpau.c (revision 37931) |
26 |
-+++ libvo/vo_vdpau.c (revision 37932) |
27 |
+--- a/libvo/vo_vdpau.c (revision 37931) |
28 |
++++ b/libvo/vo_vdpau.c (revision 37932) |
29 |
@@ -34,6 +34,7 @@ |
30 |
|
31 |
#include <stdio.h> |
32 |
|
33 |
diff --git a/media-video/mplayer/mplayer-9999.ebuild b/media-video/mplayer/mplayer-1.3.0-r4.ebuild |
34 |
similarity index 97% |
35 |
copy from media-video/mplayer/mplayer-9999.ebuild |
36 |
copy to media-video/mplayer/mplayer-1.3.0-r4.ebuild |
37 |
index b75b7dbc479..d1f122ab57d 100644 |
38 |
--- a/media-video/mplayer/mplayer-9999.ebuild |
39 |
+++ b/media-video/mplayer/mplayer-1.3.0-r4.ebuild |
40 |
@@ -1,17 +1,17 @@ |
41 |
# Copyright 1999-2018 Gentoo Foundation |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI=5 |
45 |
+EAPI=6 |
46 |
|
47 |
EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git" |
48 |
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk" |
49 |
[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS="" |
50 |
|
51 |
-inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS} |
52 |
+inherit toolchain-funcs flag-o-matic ${SVN_ECLASS} |
53 |
|
54 |
IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext a52 aalib +alsa altivec aqua bidi bl bluray |
55 |
bs2b cddb +cdio cdparanoia cpudetection debug dga |
56 |
-directfb doc dts dv dvb +dvd +dvdnav +enca +encode faac faad fbcon |
57 |
+doc dts dv dvb +dvd +dvdnav +enca +encode faac faad fbcon |
58 |
ftp gif ggi gsm +iconv ipv6 jack joystick jpeg kernel_linux ladspa |
59 |
+libass libcaca libmpeg2 lirc live lzo mad md5sum +cpu_flags_x86_mmx cpu_flags_x86_mmxext mng mp3 nas |
60 |
+network nut openal opengl +osdmenu oss png pnm pulseaudio pvr |
61 |
@@ -69,7 +69,6 @@ RDEPEND+=" |
62 |
cdio? ( dev-libs/libcdio:0= dev-libs/libcdio-paranoia ) |
63 |
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) ) |
64 |
dga? ( x11-libs/libXxf86dga ) |
65 |
- directfb? ( dev-libs/DirectFB ) |
66 |
dts? ( media-libs/libdca ) |
67 |
dv? ( media-libs/libdv ) |
68 |
dvb? ( virtual/linuxtv-dvb-headers ) |
69 |
@@ -156,9 +155,9 @@ RDEPEND+=" |
70 |
SLOT="0" |
71 |
LICENSE="GPL-2" |
72 |
if [[ ${PV} != *9999* ]]; then |
73 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
74 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
75 |
else |
76 |
- KEYWORDS="" |
77 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
78 |
fi |
79 |
|
80 |
# faac codecs are nonfree |
81 |
@@ -185,6 +184,8 @@ REQUIRED_USE=" |
82 |
xvmc? ( xv )" |
83 |
RESTRICT="faac? ( bindist )" |
84 |
|
85 |
+PATCHES=( "${FILESDIR}/${PN}-1.3-vdpau-x11.patch" ) |
86 |
+ |
87 |
pkg_setup() { |
88 |
if [[ ${PV} == *9999* ]]; then |
89 |
elog |
90 |
@@ -238,11 +239,15 @@ src_unpack() { |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
+ default |
95 |
+ |
96 |
local svf=snapshot_version |
97 |
if [[ ${PV} = *9999* ]]; then |
98 |
# Set SVN version manually |
99 |
subversion_wc_info |
100 |
printf "${ESVN_WC_REVISION}" > $svf |
101 |
+ else |
102 |
+ eapply "${FILESDIR}"/${PN}-1.3-CVE-2016-4352.patch |
103 |
fi |
104 |
if [ ! -f VERSION ] ; then |
105 |
[ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?" |
106 |
@@ -253,8 +258,6 @@ src_prepare() { |
107 |
# fix path to bash executable in configure scripts |
108 |
sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die |
109 |
|
110 |
- base_src_prepare |
111 |
- |
112 |
# Use sane default for >=virtual/udev-197 |
113 |
sed -i -e '/default_dvd_device/s:/dev/dvd:/dev/cdrom:' configure || die |
114 |
} |
115 |
@@ -414,7 +417,7 @@ src_configure() { |
116 |
################ |
117 |
# Video Output # |
118 |
################ |
119 |
- uses="directfb md5sum sdl yuv4mpeg" |
120 |
+ uses="md5sum sdl yuv4mpeg" |
121 |
for i in ${uses}; do |
122 |
use ${i} || myconf+=" --disable-${i}" |
123 |
done |
124 |
@@ -524,7 +527,8 @@ src_configure() { |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
- base_src_compile |
129 |
+ default |
130 |
+ |
131 |
# Build only user-requested docs if they're available. |
132 |
if use doc ; then |
133 |
# select available languages from $LINGUAS |
134 |
|
135 |
diff --git a/media-video/mplayer/mplayer-9999.ebuild b/media-video/mplayer/mplayer-9999.ebuild |
136 |
index b75b7dbc479..bc3255c4703 100644 |
137 |
--- a/media-video/mplayer/mplayer-9999.ebuild |
138 |
+++ b/media-video/mplayer/mplayer-9999.ebuild |
139 |
@@ -1,17 +1,17 @@ |
140 |
# Copyright 1999-2018 Gentoo Foundation |
141 |
# Distributed under the terms of the GNU General Public License v2 |
142 |
|
143 |
-EAPI=5 |
144 |
+EAPI=6 |
145 |
|
146 |
EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git" |
147 |
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk" |
148 |
-[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS="" |
149 |
+[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-r3" || SVN_ECLASS="" |
150 |
|
151 |
-inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS} |
152 |
+inherit toolchain-funcs flag-o-matic ${SVN_ECLASS} |
153 |
|
154 |
IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext a52 aalib +alsa altivec aqua bidi bl bluray |
155 |
bs2b cddb +cdio cdparanoia cpudetection debug dga |
156 |
-directfb doc dts dv dvb +dvd +dvdnav +enca +encode faac faad fbcon |
157 |
+doc dts dv dvb +dvd +dvdnav +enca +encode faac faad fbcon |
158 |
ftp gif ggi gsm +iconv ipv6 jack joystick jpeg kernel_linux ladspa |
159 |
+libass libcaca libmpeg2 lirc live lzo mad md5sum +cpu_flags_x86_mmx cpu_flags_x86_mmxext mng mp3 nas |
160 |
+network nut openal opengl +osdmenu oss png pnm pulseaudio pvr |
161 |
@@ -69,7 +69,6 @@ RDEPEND+=" |
162 |
cdio? ( dev-libs/libcdio:0= dev-libs/libcdio-paranoia ) |
163 |
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) ) |
164 |
dga? ( x11-libs/libXxf86dga ) |
165 |
- directfb? ( dev-libs/DirectFB ) |
166 |
dts? ( media-libs/libdca ) |
167 |
dv? ( media-libs/libdv ) |
168 |
dvb? ( virtual/linuxtv-dvb-headers ) |
169 |
@@ -238,6 +237,8 @@ src_unpack() { |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
+ default |
174 |
+ |
175 |
local svf=snapshot_version |
176 |
if [[ ${PV} = *9999* ]]; then |
177 |
# Set SVN version manually |
178 |
@@ -253,8 +254,6 @@ src_prepare() { |
179 |
# fix path to bash executable in configure scripts |
180 |
sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die |
181 |
|
182 |
- base_src_prepare |
183 |
- |
184 |
# Use sane default for >=virtual/udev-197 |
185 |
sed -i -e '/default_dvd_device/s:/dev/dvd:/dev/cdrom:' configure || die |
186 |
} |
187 |
@@ -414,7 +413,7 @@ src_configure() { |
188 |
################ |
189 |
# Video Output # |
190 |
################ |
191 |
- uses="directfb md5sum sdl yuv4mpeg" |
192 |
+ uses="md5sum sdl yuv4mpeg" |
193 |
for i in ${uses}; do |
194 |
use ${i} || myconf+=" --disable-${i}" |
195 |
done |
196 |
@@ -524,7 +523,8 @@ src_configure() { |
197 |
} |
198 |
|
199 |
src_compile() { |
200 |
- base_src_compile |
201 |
+ default |
202 |
+ |
203 |
# Build only user-requested docs if they're available. |
204 |
if use doc ; then |
205 |
# select available languages from $LINGUAS |