Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 21 Jun 2017 18:17:27
Message-Id: 1498069036.42082963b74cc568da03b4e1f8a51e9f2276fac1.mgorny@gentoo
1 commit: 42082963b74cc568da03b4e1f8a51e9f2276fac1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 21 18:13:43 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 21 18:17:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42082963
7
8 gst-plugins*.eclass: Remove last rited eclasses, #587816
9
10 eclass/gst-plugins-bad.eclass | 47 -------
11 eclass/gst-plugins-base.eclass | 35 -----
12 eclass/gst-plugins-good.eclass | 46 -------
13 eclass/gst-plugins-ugly.eclass | 35 -----
14 eclass/gst-plugins10.eclass | 303 -----------------------------------------
15 5 files changed, 466 deletions(-)
16
17 diff --git a/eclass/gst-plugins-bad.eclass b/eclass/gst-plugins-bad.eclass
18 deleted file mode 100644
19 index d26002ac295..00000000000
20 --- a/eclass/gst-plugins-bad.eclass
21 +++ /dev/null
22 @@ -1,47 +0,0 @@
23 -# Copyright 1999-2012 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -# @DEAD
27 -# Michał Górny <mgorny@g.o> (16 May 2017)
28 -# gst-plugins* eclasses are no longer used. They will be removed
29 -# in 30 days.
30 -
31 -# @ECLASS: gst-plugins10-bad.eclass
32 -# @MAINTAINER:
33 -# gstreamer@g.o
34 -# @AUTHOR:
35 -# Gilles Dartiguelongue <eva@g.o>
36 -# Saleem Abdulrasool <compnerd@g.o>
37 -# foser <foser@g.o>
38 -# zaheerm <zaheerm@g.o>
39 -# @BLURB: Manages build for invididual ebuild for gst-plugins-bad.
40 -# @DESCRIPTION:
41 -# See gst-plugins10.eclass documentation.
42 -
43 -GST_ORG_MODULE="gst-plugins-bad"
44 -
45 -inherit eutils gst-plugins10
46 -
47 -case "${EAPI:-0}" in
48 - 1|2|3|4|5)
49 - ;;
50 - 0)
51 - die "EAPI=\"${EAPI}\" is not supported anymore"
52 - ;;
53 - *)
54 - die "EAPI=\"${EAPI}\" is not supported yet"
55 - ;;
56 -esac
57 -
58 -
59 -if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
60 -# -bad-0.10.20 uses orc optionally instead of liboil unconditionally.
61 -# While <0.10.20 configure always check for liboil, it is used only by
62 -# non-split plugins in gst/ (legacyresample and mpegdemux), so we only
63 -# builddep for all old packages, and have a RDEPEND in old versions of
64 -# media-libs/gst-plugins-bad
65 - if [[ ${SLOT} = "0.10" ]] && ! version_is_at_least "0.10.20"; then
66 - DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
67 - fi
68 -fi
69 -
70
71 diff --git a/eclass/gst-plugins-base.eclass b/eclass/gst-plugins-base.eclass
72 deleted file mode 100644
73 index 699bcf02e5e..00000000000
74 --- a/eclass/gst-plugins-base.eclass
75 +++ /dev/null
76 @@ -1,35 +0,0 @@
77 -# Copyright 1999-2012 Gentoo Foundation
78 -# Distributed under the terms of the GNU General Public License v2
79 -
80 -# @DEAD
81 -# Michał Górny <mgorny@g.o> (16 May 2017)
82 -# gst-plugins* eclasses are no longer used. They will be removed
83 -# in 30 days.
84 -
85 -# @ECLASS: gst-plugins-base.eclass
86 -# @MAINTAINER:
87 -# gstreamer@g.o
88 -# @AUTHOR:
89 -# Gilles Dartiguelongue <eva@g.o>
90 -# Saleem Abdulrasool <compnerd@g.o>
91 -# foser <foser@g.o>
92 -# zaheerm <zaheerm@g.o>
93 -# @BLURB: Manages build for invididual ebuild for gst-plugins-base.
94 -# @DESCRIPTION:
95 -# See gst-plugins10.eclass documentation.
96 -
97 -GST_ORG_MODULE="gst-plugins-base"
98 -
99 -inherit gst-plugins10
100 -
101 -case "${EAPI:-0}" in
102 - 1|2|3|4|5)
103 - ;;
104 - 0)
105 - die "EAPI=\"${EAPI}\" is not supported anymore"
106 - ;;
107 - *)
108 - die "EAPI=\"${EAPI}\" is not supported yet"
109 - ;;
110 -esac
111 -
112
113 diff --git a/eclass/gst-plugins-good.eclass b/eclass/gst-plugins-good.eclass
114 deleted file mode 100644
115 index 3cac6d0c609..00000000000
116 --- a/eclass/gst-plugins-good.eclass
117 +++ /dev/null
118 @@ -1,46 +0,0 @@
119 -# Copyright 1999-2012 Gentoo Foundation
120 -# Distributed under the terms of the GNU General Public License v2
121 -
122 -# @DEAD
123 -# Michał Górny <mgorny@g.o> (16 May 2017)
124 -# gst-plugins* eclasses are no longer used. They will be removed
125 -# in 30 days.
126 -
127 -# @ECLASS: gst-plugins-good.eclass
128 -# @MAINTAINER:
129 -# gstreamer@g.o
130 -# @AUTHOR:
131 -# Gilles Dartiguelongue <eva@g.o>
132 -# Saleem Abdulrasool <compnerd@g.o>
133 -# foser <foser@g.o>
134 -# zaheerm <zaheerm@g.o>
135 -# @BLURB: Manages build for invididual ebuild for gst-plugins-good.
136 -# @DESCRIPTION:
137 -# See gst-plugins10.eclass documentation.
138 -
139 -GST_ORG_MODULE="gst-plugins-good"
140 -
141 -inherit eutils gst-plugins10
142 -
143 -case "${EAPI:-0}" in
144 - 1|2|3|4|5)
145 - ;;
146 - 0)
147 - die "EAPI=\"${EAPI}\" is not supported anymore"
148 - ;;
149 - *)
150 - die "EAPI=\"${EAPI}\" is not supported yet"
151 - ;;
152 -esac
153 -
154 -
155 -if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
156 -# -good-0.10.24 uses orc optionally instead of liboil unconditionally.
157 -# While <0.10.24 configure always checks for liboil, it is linked to only by
158 -# non-split plugins in gst/, so we only builddep for all old packages, and have
159 -# a RDEPEND in old versions of media-libs/gst-plugins-good
160 - if [[ ${SLOT} = "0.10" ]] && ! version_is_at_least "0.10.24"; then
161 - DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
162 - fi
163 -fi
164 -
165
166 diff --git a/eclass/gst-plugins-ugly.eclass b/eclass/gst-plugins-ugly.eclass
167 deleted file mode 100644
168 index c1cae30b1bd..00000000000
169 --- a/eclass/gst-plugins-ugly.eclass
170 +++ /dev/null
171 @@ -1,35 +0,0 @@
172 -# Copyright 1999-2012 Gentoo Foundation
173 -# Distributed under the terms of the GNU General Public License v2
174 -
175 -# @DEAD
176 -# Michał Górny <mgorny@g.o> (16 May 2017)
177 -# gst-plugins* eclasses are no longer used. They will be removed
178 -# in 30 days.
179 -
180 -# @ECLASS: gst-plugins-ugly.eclass
181 -# @MAINTAINER:
182 -# gstreamer@g.o
183 -# @AUTHOR:
184 -# Gilles Dartiguelongue <eva@g.o>
185 -# Saleem Abdulrasool <compnerd@g.o>
186 -# foser <foser@g.o>
187 -# zaheerm <zaheerm@g.o>
188 -# @BLURB: Manages build for invididual ebuild for gst-plugins-ugly.
189 -# @DESCRIPTION:
190 -# See gst-plugins10.eclass documentation.
191 -
192 -GST_ORG_MODULE="gst-plugins-ugly"
193 -
194 -inherit gst-plugins10
195 -
196 -case "${EAPI:-0}" in
197 - 1|2|3|4|5)
198 - ;;
199 - 0)
200 - die "EAPI=\"${EAPI}\" is not supported anymore"
201 - ;;
202 - *)
203 - die "EAPI=\"${EAPI}\" is not supported yet"
204 - ;;
205 -esac
206 -
207
208 diff --git a/eclass/gst-plugins10.eclass b/eclass/gst-plugins10.eclass
209 deleted file mode 100644
210 index 1c62da0b009..00000000000
211 --- a/eclass/gst-plugins10.eclass
212 +++ /dev/null
213 @@ -1,303 +0,0 @@
214 -# Copyright 1999-2014 Gentoo Foundation
215 -# Distributed under the terms of the GNU General Public License v2
216 -
217 -# @DEAD
218 -# Michał Górny <mgorny@g.o> (16 May 2017)
219 -# gst-plugins* eclasses are no longer used. They will be removed
220 -# in 30 days.
221 -
222 -# @ECLASS: gst-plugins10.eclass
223 -# @MAINTAINER:
224 -# gstreamer@g.o
225 -# @AUTHOR:
226 -# Gilles Dartiguelongue <eva@g.o>
227 -# Saleem Abdulrasool <compnerd@g.o>
228 -# foser <foser@g.o>
229 -# zaheerm <zaheerm@g.o>
230 -# @BLURB: Manages build for invididual ebuild for gst-plugins.
231 -# @DESCRIPTION:
232 -# Eclass to make external gst-plugins emergable on a per-plugin basis and
233 -# to solve the problem with gst-plugins generating far too much unneeded
234 -# dependancies.
235 -#
236 -# GStreamer consuming applications should depend on the specific plugins they
237 -# need as defined in their source code.
238 -#
239 -# In case of spider usage, obtain recommended plugins to use from Gentoo
240 -# developers responsible for gstreamer <gstreamer@g.o> or the application
241 -# developer.
242 -
243 -inherit eutils multilib toolchain-funcs versionator
244 -
245 -GST_EXPF=""
246 -case "${EAPI:-0}" in
247 - 2|3|4|5)
248 - GST_EXPF="src_configure src_compile src_install"
249 - ;;
250 - 1)
251 - GST_EXPF="src_compile src_install"
252 - ;;
253 - 0)
254 - die "EAPI=\"${EAPI:-0}\" is not supported anymore"
255 - ;;
256 - *)
257 - die "EAPI=\"${EAPI}\" is not supported yet"
258 - ;;
259 -esac
260 -EXPORT_FUNCTIONS ${GST_EXPF}
261 -
262 -# @ECLASS-VARIABLE: GST_LA_PUNT
263 -# @DESCRIPTION:
264 -# Should we delete all the .la files?
265 -# NOT to be used without due consideration.
266 -# Defaults to no for EAPI < 5.
267 -if has "${EAPI:-0}" 0 1 2 3; then
268 - : ${GST_LA_PUNT:="no"}
269 -else
270 - : ${GST_LA_PUNT:="yes"}
271 -fi
272 -
273 -# @ECLASS-VARIABLE: GST_PLUGINS_BUILD
274 -# @DESCRIPTION:
275 -# Defines the plugins to be built.
276 -# May be set by an ebuild and contain more than one indentifier, space
277 -# seperated (only src_configure can handle mutiple plugins at this time).
278 -: ${GST_PLUGINS_BUILD:=${PN/gst-plugins-/}}
279 -
280 -# @ECLASS-VARIABLE: GST_PLUGINS_BUILD_DIR
281 -# @DESCRIPTION:
282 -# Actual build directory of the plugin.
283 -# Most often the same as the configure switch name.
284 -: ${GST_PLUGINS_BUILD_DIR:=${PN/gst-plugins-/}}
285 -
286 -# @ECLASS-VARIABLE: GST_TARBALL_SUFFIX
287 -# @DESCRIPTION:
288 -# Most projects hosted on gstreamer.freedesktop.org mirrors provide tarballs as
289 -# tar.bz2 or tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and
290 -# defaults to xz for everything else. This is because the gstreamer mirrors
291 -# are moving to only have xz tarballs for new releases.
292 -if has "${EAPI:-0}" 0 1 2 3; then
293 - : ${GST_TARBALL_SUFFIX:="bz2"}
294 -else
295 - : ${GST_TARBALL_SUFFIX:="xz"}
296 -fi
297 -
298 -# Even though xz-utils are in @system, they must still be added to DEPEND; see
299 -# https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
300 -if [[ ${GST_TARBALL_SUFFIX} == "xz" ]]; then
301 - DEPEND="${DEPEND} app-arch/xz-utils"
302 -fi
303 -
304 -# @ECLASS-VARIABLE: GST_ORG_MODULE
305 -# @DESCRIPTION:
306 -# Name of the module as hosted on gstreamer.freedesktop.org mirrors.
307 -# Leave unset if package name matches module name.
308 -: ${GST_ORG_MODULE:=$PN}
309 -
310 -# @ECLASS-VARIABLE: GST_ORG_PVP
311 -# @INTERNAL
312 -# @DESCRIPTION:
313 -# Major and minor numbers of the version number.
314 -: ${GST_ORG_PVP:=$(get_version_component_range 1-2)}
315 -
316 -
317 -DESCRIPTION="${BUILD_GST_PLUGINS} plugin for gstreamer"
318 -HOMEPAGE="https://gstreamer.freedesktop.org/"
319 -SRC_URI="https://gstreamer.freedesktop.org/src/${GST_ORG_MODULE}/${GST_ORG_MODULE}-${PV}.tar.${GST_TARBALL_SUFFIX}"
320 -
321 -LICENSE="GPL-2"
322 -case ${GST_ORG_PVP} in
323 - 0.10) SLOT="0.10" ;;
324 - 1.*) SLOT="1.0" ;;
325 - *) die "Unkown gstreamer release."
326 -esac
327 -
328 -S="${WORKDIR}/${GST_ORG_MODULE}-${PV}"
329 -
330 -RDEPEND="
331 - >=dev-libs/glib-2.6:2
332 - media-libs/gstreamer:${SLOT}
333 -"
334 -DEPEND="
335 - >=sys-apps/sed-4
336 - virtual/pkgconfig
337 -"
338 -
339 -if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
340 - # Do not run test phase for invididual plugin ebuilds.
341 - RESTRICT="test"
342 - RDEPEND="${RDEPEND} >=media-libs/${GST_ORG_MODULE}-${PV}:${SLOT}"
343 -else
344 - IUSE="nls"
345 - DEPEND="${DEPEND} nls? ( >=sys-devel/gettext-0.17 )"
346 -fi
347 -
348 -#if [[ ${SLOT} == "0.10" ]]; then
349 -# XXX: verify with old ebuilds.
350 -# DEPEND="${DEPEND} dev-libs/liboil"
351 -#fi
352 -
353 -DEPEND="${DEPEND} ${RDEPEND}"
354 -
355 -# @FUNCTION: gst-plugins10_get_plugins
356 -# @INTERNAL
357 -# @DESCRIPTION:
358 -# Get the list of plugins requiring external dependencies.
359 -gst-plugins10_get_plugins() {
360 - # Must be called from src_prepare/src_configure
361 - GST_PLUGINS_LIST=$(sed -rn 's/^AG_GST_CHECK_FEATURE\((\w+),.*/ \1 /p' \
362 - "${S}"/configure.* | LC_ALL='C' tr '[:upper:]' '[:lower:]')
363 -}
364 -
365 -# @FUNCTION: gst-plugins10_find_plugin_dir
366 -# @USAGE: gst-plugins10_find_plugin_dir [<build_dir>]
367 -# @INTERNAL
368 -# @DESCRIPTION:
369 -# Finds plugin build directory and cd to it.
370 -# Defaults to ${GST_PLUGINS_BUILD_DIR} if argument is not provided
371 -gst-plugins10_find_plugin_dir() {
372 - local build_dir=${1:-${GST_PLUGINS_BUILD_DIR}}
373 -
374 - if [[ ! -d ${S}/ext/${build_dir} ]]; then
375 - if [[ ! -d ${S}/sys/${build_dir} ]]; then
376 - ewarn "No such plugin directory"
377 - die
378 - fi
379 - einfo "Building system plugin in ${build_dir}..."
380 - cd "${S}"/sys/${build_dir}
381 - else
382 - einfo "Building external plugin in ${build_dir}..."
383 - cd "${S}"/ext/${build_dir}
384 - fi
385 -}
386 -
387 -# @FUNCTION: gst-plugins10_system_link
388 -# @USAGE: gst-plugins10_system_link gst-libs/gst/audio:gstreamer-audio [...]
389 -# @DESCRIPTION:
390 -# Walks through makefiles in order to make sure build will link against system
391 -# librairies.
392 -# Takes a list of path fragments and corresponding pkgconfig libraries
393 -# separated by colon (:). Will replace the path fragment by the output of
394 -# pkgconfig.
395 -gst-plugins10_system_link() {
396 - local directory libs pkgconfig pc tuple
397 - pkgconfig=$(tc-getPKG_CONFIG)
398 -
399 - for plugin_dir in ${GST_PLUGINS_BUILD_DIR} ; do
400 - gst-plugins10_find_plugin_dir ${plugin_dir}
401 -
402 - for tuple in $@ ; do
403 - directory="$(echo ${tuple} | cut -f1 -d':')"
404 - pc="$(echo ${tuple} | cut -f2 -d':')-${SLOT}"
405 - libs="$(${pkgconfig} --libs-only-l ${pc})"
406 - sed -e "s:\$(top_builddir)/${directory}/.*\.la:${libs}:" \
407 - -i Makefile.am Makefile.in || die
408 - done
409 - done
410 -}
411 -
412 -# @FUNCTION: gst-plugins10_remove_unversioned_binaries
413 -# @INTERNAL
414 -# @DESCRIPTION:
415 -# Remove the unversioned binaries gstreamer provides to prevent file collision
416 -# with other slots. DEPRECATED
417 -gst-plugins10_remove_unversioned_binaries() {
418 - cd "${D}"/usr/bin
419 - local gst_bins
420 - for gst_bins in *-${SLOT} ; do
421 - [[ -e ${gst_bins} ]] || continue
422 - rm ${gst_bins/-${SLOT}/}
423 - einfo "Removed ${gst_bins/-${SLOT}/}"
424 - done
425 -}
426 -
427 -# @FUNCTION: gst-plugins10_src_configure
428 -# @DESCRIPTION:
429 -# Handles logic common to configuring gstreamer plugins
430 -gst-plugins10_src_configure() {
431 - local plugin gst_conf
432 -
433 - if has ${EAPI:-0} 0 1 2 3 ; then
434 - gst_conf="${gst_conf} --disable-dependency-tracking"
435 - fi
436 -
437 - if has ${EAPI:-0} 0 1 2 3 4 ; then
438 - gst_conf="${gst_conf} --disable-silent-rules"
439 - fi
440 -
441 - gst-plugins10_get_plugins
442 -
443 - for plugin in ${GST_PLUGINS_LIST} ; do
444 - if has ${plugin} ${GST_PLUGINS_BUILD} ; then
445 - gst_conf="${gst_conf} --enable-${plugin}"
446 - else
447 - gst_conf="${gst_conf} --disable-${plugin}"
448 - fi
449 - done
450 -
451 - if grep -q "ORC_CHECK" configure.* ; then
452 - if in_iuse orc ; then
453 - gst_conf="${gst_conf} $(use_enable orc)"
454 - else
455 - gst_conf="${gst_conf} --disable-orc"
456 - fi
457 - fi
458 -
459 - if grep -q "AM_MAINTAINER_MODE" configure.* ; then
460 - gst_conf="${gst_conf} --disable-maintainer-mode"
461 - fi
462 -
463 - if grep -q "disable-schemas-compile" configure ; then
464 - gst_conf="${gst_conf} --disable-schemas-compile"
465 - fi
466 -
467 - if [[ ${PN} == ${GST_ORG_MODULE} ]]; then
468 - gst_conf="${gst_conf} $(use_enable nls)"
469 - fi
470 -
471 - einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
472 - econf \
473 - --with-package-name="Gentoo GStreamer ebuild" \
474 - --with-package-origin="https://www.gentoo.org" \
475 - ${gst_conf} $@
476 -}
477 -
478 -# @FUNCTION: gst-plugins10_src_compile
479 -# @DESCRIPTION:
480 -# Compiles requested gstreamer plugin.
481 -gst-plugins10_src_compile() {
482 - local plugin_dir
483 -
484 - has ${EAPI:-0} 0 1 && gst-plugins10_src_configure "$@"
485 -
486 - for plugin_dir in ${GST_PLUGINS_BUILD_DIR} ; do
487 - gst-plugins10_find_plugin_dir ${plugin_dir}
488 -
489 - if has "${EAPI:-0}" 0 1 2 3 ; then
490 - emake || die
491 - else
492 - default
493 - fi
494 - done
495 -}
496 -
497 -# @FUNCTION: gst-plugins10_src_install
498 -# @DESCRIPTION:
499 -# Installs requested gstreamer plugin.
500 -gst-plugins10_src_install() {
501 - local plugin_dir
502 -
503 - for plugin_dir in ${GST_PLUGINS_BUILD_DIR} ; do
504 - gst-plugins10_find_plugin_dir ${plugin_dir}
505 -
506 - if has "${EAPI:-0}" 0 1 2 3 ; then
507 - emake install DESTDIR="${D}" || die
508 - [[ -e README ]] && dodoc README
509 - else
510 - default
511 - fi
512 - done
513 -
514 - [[ ${GST_LA_PUNT} = "yes" ]] && prune_libtool_files --modules
515 -}
516 -