1 |
commit: a1493bf1729411b3b06ede7bd73fc5d1994af255 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 2 14:09:54 2012 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 2 14:49:59 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=a1493bf1 |
7 |
|
8 |
eclass/gst-plugins10.eclass: cleanup/updates |
9 |
|
10 |
* Fix cosmetic issue with EAPI=0 die message. |
11 |
* Group R/DEPEND definitions. |
12 |
* Add support for optional nls support for base pack plugins since |
13 |
they do support it. |
14 |
|
15 |
--- |
16 |
eclass/gst-plugins10.eclass | 40 +++++++++++++++++++++------------------- |
17 |
1 files changed, 21 insertions(+), 19 deletions(-) |
18 |
|
19 |
diff --git a/eclass/gst-plugins10.eclass b/eclass/gst-plugins10.eclass |
20 |
index 4a18c36..db6102d 100644 |
21 |
--- a/eclass/gst-plugins10.eclass |
22 |
+++ b/eclass/gst-plugins10.eclass |
23 |
@@ -31,7 +31,7 @@ case "${EAPI:-0}" in |
24 |
GST_EXPF="${GST_EXPF} src_configure src_compile src_install" |
25 |
;; |
26 |
0) |
27 |
- die "EAPI=\"${EAPI}\" is not supported anymore" |
28 |
+ die "EAPI=\"${EAPI:-0}\" is not supported anymore" |
29 |
;; |
30 |
*) |
31 |
die "EAPI=\"${EAPI}\" is not supported yet" |
32 |
@@ -100,34 +100,32 @@ SRC_URI="http://gstreamer.freedesktop.org/src/${GST_ORG_MODULE}/${GST_ORG_MODULE |
33 |
LICENSE="GPL-2" |
34 |
SLOT="${GST_ORG_PVP}" |
35 |
|
36 |
-if [[ ${PN} != ${GST_ORG_MODULE} ]]; then |
37 |
- # Do not run test phase for invididual plugin ebuilds. |
38 |
- RESTRICT="test" |
39 |
-fi |
40 |
+S="${WORKDIR}/${GST_ORG_MODULE}-${PV}" |
41 |
|
42 |
-RDEPEND="${RDEPEND} |
43 |
+RDEPEND=" |
44 |
>=dev-libs/glib-2.6:2 |
45 |
media-libs/gstreamer:${SLOT} |
46 |
" |
47 |
+DEPEND=" |
48 |
+ >=sys-apps/sed-4 |
49 |
+ virtual/pkgconfig |
50 |
+" |
51 |
|
52 |
-#else |
53 |
-# XXX: verify with old ebuilds. |
54 |
-# DEPEND="${DEPEND} dev-libs/liboil" |
55 |
- |
56 |
-# added to remove circular deps |
57 |
-# 6/2/2006 - zaheerm |
58 |
if [[ ${PN} != ${GST_ORG_MODULE} ]]; then |
59 |
+ # Do not run test phase for invididual plugin ebuilds. |
60 |
+ RESTRICT="test" |
61 |
RDEPEND="${RDEPEND} >=media-libs/${GST_ORG_MODULE}-${PV}:${SLOT}" |
62 |
+else |
63 |
+ IUSE="nls" |
64 |
+ DEPEND="${DEPEND} nls? ( >=sys-devel/gettext-0.17 )" |
65 |
fi |
66 |
|
67 |
-DEPEND="${RDEPEND} ${DEPEND} |
68 |
- >=sys-apps/sed-4 |
69 |
- >=sys-devel/gettext-0.17 |
70 |
- virtual/pkgconfig |
71 |
-" |
72 |
- |
73 |
-S="${WORKDIR}/${GST_ORG_MODULE}-${PV}" |
74 |
+#if [[ ${SLOT} == "0.10" ]]; then |
75 |
+# XXX: verify with old ebuilds. |
76 |
+# DEPEND="${DEPEND} dev-libs/liboil" |
77 |
+#fi |
78 |
|
79 |
+DEPEND="${DEPEND} ${RDEPEND}" |
80 |
|
81 |
# @FUNCTION: gst-plugins10_get_plugins |
82 |
# @INTERNAL |
83 |
@@ -227,6 +225,10 @@ gst-plugins10_src_configure() { |
84 |
gst_conf="${gst_conf} --disable-schemas-compile" |
85 |
fi |
86 |
|
87 |
+ if [[ ${PN} == ${GST_ORG_MODULE} ]]; then |
88 |
+ gst_conf="${gst_conf} $(use_enable nls)" |
89 |
+ fi |
90 |
+ |
91 |
einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." |
92 |
econf \ |
93 |
--with-package-name="Gentoo GStreamer ebuild" \ |