Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-libs/libcanberra/
Date: Mon, 04 Apr 2011 13:00:53
Message-Id: 8a4f548e75f25560cdead94aeefec477d8ba2fc8.eva@gentoo
1 commit: 8a4f548e75f25560cdead94aeefec477d8ba2fc8
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 4 13:00:10 2011 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 13:00:10 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=8a4f548e
7
8 media-libs/libcanberra: 0.26-r2 → 0.28
9
10 (Portage version: 2.2.0_alpha29/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key C6085806)
11
12 ---
13 ...erra-0.26-r2.ebuild => libcanberra-0.28.ebuild} | 31 ++++++++++---------
14 media-libs/libcanberra/metadata.xml | 21 +++++++++++++
15 2 files changed, 37 insertions(+), 15 deletions(-)
16
17 diff --git a/media-libs/libcanberra/libcanberra-0.26-r2.ebuild b/media-libs/libcanberra/libcanberra-0.28.ebuild
18 similarity index 74%
19 rename from media-libs/libcanberra/libcanberra-0.26-r2.ebuild
20 rename to media-libs/libcanberra/libcanberra-0.28.ebuild
21 index 0b4ebd9..985069e 100644
22 --- a/media-libs/libcanberra/libcanberra-0.26-r2.ebuild
23 +++ b/media-libs/libcanberra/libcanberra-0.28.ebuild
24 @@ -2,7 +2,7 @@
25 # Distributed under the terms of the GNU General Public License v2
26 # $Header: /var/cvsroot/gentoo-x86/media-libs/libcanberra/libcanberra-0.25.ebuild,v 1.1 2010/06/18 10:11:15 pacho Exp $
27
28 -EAPI="3"
29 +EAPI="4"
30 inherit gnome2-utils libtool
31
32 DESCRIPTION="Portable Sound Event Library"
33 @@ -12,31 +12,31 @@ SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
34 LICENSE="LGPL-2.1"
35 SLOT="0"
36 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
37 -IUSE="alsa gstreamer +gtk +gtk3 oss pulseaudio +sound tdb"
38 +IUSE="alsa gstreamer +gtk +gtk3 oss pulseaudio +sound tdb udev"
39
40 COMMON_DEPEND="media-libs/libvorbis
41 >=sys-devel/libtool-2.2.6b
42 - alsa? ( media-libs/alsa-lib )
43 + alsa? (
44 + media-libs/alsa-lib
45 + udev? ( >=sys-fs/udev-160 ) )
46 gstreamer? ( >=media-libs/gstreamer-0.10.15 )
47 gtk? ( >=x11-libs/gtk+-2.20.0:2
48 - >=gnome-base/gconf-2 )
49 + gnome-base/gconf:2 )
50 gtk3? ( x11-libs/gtk+:3
51 - >=gnome-base/gconf-2 )
52 + gnome-base/gconf:2 )
53 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
54 - tdb? ( sys-libs/tdb )"
55 + tdb? ( sys-libs/tdb )
56 +"
57 RDEPEND="${COMMON_DEPEND}
58 sound? ( x11-themes/sound-theme-freedesktop )" # Required for index.theme wrt #323379
59 DEPEND="${COMMON_DEPEND}
60 >=dev-util/pkgconfig-0.17"
61
62 +REQUIRED_USE="udev? ( alsa )"
63 +
64 src_prepare() {
65 # Run elibtoolize for ~x86-fbsd.
66 use x86-fbsd && elibtoolize
67 -
68 - # Comment out gtk_quit_add which was removed in gtk+:3
69 - # Wrong solution, but this is what is used in jhbuild right now
70 - # https://bugs.freedesktop.org//show_bug.cgi?id=32839
71 - sed -e 's:\(gtk_quit_add\)://\1:' -i "${S}/src/canberra-gtk-module.c" || die
72 }
73
74 src_configure() {
75 @@ -50,18 +50,19 @@ src_configure() {
76 $(use_enable gtk) \
77 $(use_enable gtk3) \
78 $(use_enable tdb) \
79 + $(use_enable udev) \
80 --disable-lynx \
81 --disable-gtk-doc \
82 - --disable-gtk-doc-html \
83 - --disable-gtk-doc-pdf \
84 --with-html-dir=/usr/share/doc/${PF}/html
85 }
86
87 # TODO: check which la files are really needed
88 src_install() {
89 # Disable parallel installation until bug #253862 is solved
90 - emake -j1 DESTDIR="${ED}" install || die
91 - prepalldocs
92 + emake -j1 DESTDIR="${D}" install || die
93 +
94 + find "${ED}"/usr/$(get_libdir)/gtk-2.0 -name "*.la" -delete
95 + find "${ED}"/usr/$(get_libdir)/gtk-3.0 -name "*.la" -delete
96 }
97
98 pkg_preinst() { gnome2_gconf_savelist; }
99
100 diff --git a/media-libs/libcanberra/metadata.xml b/media-libs/libcanberra/metadata.xml
101 new file mode 100644
102 index 0000000..b06644f
103 --- /dev/null
104 +++ b/media-libs/libcanberra/metadata.xml
105 @@ -0,0 +1,21 @@
106 +<?xml version="1.0" encoding="UTF-8"?>
107 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
108 +<pkgmetadata>
109 +<herd>gnome</herd>
110 +<herd>sound</herd>
111 +<longdescription>A small and lightweight implementation of the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).</longdescription>
112 +<use>
113 + <flag name='alsa'>Enables ALSA sound driver.</flag>
114 + <flag name='gstreamer'>Enables gstreamer sound driver. Not useful when alsa or pulseaudio is available.</flag>
115 + <flag name='gtk'>Enables building of gtk+ helper library, gtk+ runtime sound effects and the canberra-gtk-play
116 + utility. To enable the gtk+ sound effects add canberra-gtk-module to the colon separated list of modules
117 + in the GTK_MODULES environment variable.</flag>
118 + <flag name='gtk3'>Enables building of components for gtk+:3, see gtk USE flag description.</flag>
119 + <flag name='pulseaudio'>Enables PulseAudio sound driver that should be able to support positional event sounds.
120 + This is the preferred choice for best sound events experience and picked by default if compiled in and
121 + possible to use at runtime.</flag>
122 + <flag name='sound'>Install x11-themes/sound-theme-freedesktop to get sounds on Gnome and Xfce.</flag>
123 + <flag name='tdb'>Enables Trivial Database support for caching purposes.</flag>
124 + <flag name='udev'>Enable boot time sound support.</flag>
125 +</use>
126 +</pkgmetadata>