Gentoo Archives: gentoo-commits

From: Jonathan Callen <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-sound/sound-juicer/, media-sound/sound-juicer/files/
Date: Sun, 27 Feb 2011 16:19:21
Message-Id: 98ab5d21c116e9d0736113bbb0761a32c87a2ece.abcd@gentoo
1 commit: 98ab5d21c116e9d0736113bbb0761a32c87a2ece
2 Author: Jonathan Callen <abcd <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 16:18:19 2011 +0000
4 Commit: Jonathan Callen <abcd <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 16:18:53 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=98ab5d21
7
8 media-sound/sound-juicer: add GTK+3 version
9
10 (Portage version: 2.2.0_alpha23_p5/git/Linux i686, RepoMan options: --force, signed Manifest commit with key 229E5838)
11
12 ---
13 .../files/sound-juicer-2.32.0-gtk3-api.patch | 93 ++++++++++++++++++++
14 .../files/sound-juicer-2.32.0-gtk3-only.patch | 71 +++++++++++++++
15 .../files/sound-juicer-2.32.0-new-gdk-keys.patch | 26 ++++++
16 .../sound-juicer/sound-juicer-2.32.0-r300.ebuild | 69 +++++++++++++++
17 4 files changed, 259 insertions(+), 0 deletions(-)
18
19 diff --git a/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-api.patch b/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-api.patch
20 new file mode 100644
21 index 0000000..df898eb
22 --- /dev/null
23 +++ b/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-api.patch
24 @@ -0,0 +1,93 @@
25 +From f23bb0a5aac613c385272ee448afd27ce50b9ee4 Mon Sep 17 00:00:00 2001
26 +From: Bastien Nocera <hadess@××××××.net>
27 +Date: Mon, 15 Nov 2010 17:47:54 +0000
28 +Subject: Update for new GTK+ 3.x and libgnome-media-profiles
29 +
30 +---
31 +diff --git a/data/sound-juicer.ui b/data/sound-juicer.ui
32 +index 12de20c..50042c7 100644
33 +--- a/data/sound-juicer.ui
34 ++++ b/data/sound-juicer.ui
35 +@@ -615,7 +615,6 @@ audio-volume-medium</property>
36 + <property name="border_width">5</property>
37 + <property name="title" translatable="yes">Multiple Albums Found</property>
38 + <property name="type_hint">dialog</property>
39 +- <property name="has_separator">False</property>
40 + <child internal-child="vbox">
41 + <object class="GtkVBox" id="dialog-vbox2">
42 + <property name="visible">True</property>
43 +@@ -735,7 +734,6 @@ audio-volume-medium</property>
44 + <property name="title" translatable="yes">Preferences</property>
45 + <property name="resizable">False</property>
46 + <property name="type_hint">dialog</property>
47 +- <property name="has_separator">False</property>
48 + <signal name="delete_event" handler="gtk_widget_hide_on_delete"/>
49 + <child internal-child="vbox">
50 + <object class="GtkVBox" id="dialog-vbox4">
51 +diff --git a/libjuicer/sj-extractor.c b/libjuicer/sj-extractor.c
52 +index dab6ec0..52f80d2 100644
53 +--- a/libjuicer/sj-extractor.c
54 ++++ b/libjuicer/sj-extractor.c
55 +@@ -30,7 +30,7 @@
56 + #include <glib-object.h>
57 + #include <gst/gst.h>
58 + #include <gst/tag/tag.h>
59 +-#include <profiles/gnome-media-profiles.h>
60 ++#include <libgnome-media-profiles/gnome-media-profiles.h>
61 + #include "sj-extractor.h"
62 + #include "sj-structures.h"
63 + #include "sj-error.h"
64 +diff --git a/libjuicer/sj-extractor.h b/libjuicer/sj-extractor.h
65 +index d9d8717..bbe23fc 100644
66 +--- a/libjuicer/sj-extractor.h
67 ++++ b/libjuicer/sj-extractor.h
68 +@@ -26,7 +26,7 @@
69 + #include <glib.h>
70 + #include <glib-object.h>
71 + #include <gio/gio.h>
72 +-#include <profiles/audio-profile.h>
73 ++#include <libgnome-media-profiles/audio-profile.h>
74 + #include "sj-structures.h"
75 +
76 + G_BEGIN_DECLS
77 +diff --git a/src/sj-main.c b/src/sj-main.c
78 +index 351fb66..f9d3d71 100644
79 +--- a/src/sj-main.c
80 ++++ b/src/sj-main.c
81 +@@ -33,7 +33,7 @@
82 + #include <gconf/gconf-client.h>
83 + #include <brasero-medium-selection.h>
84 + #include <brasero-volume.h>
85 +-#include <profiles/gnome-media-profiles.h>
86 ++#include <libgnome-media-profiles/gnome-media-profiles.h>
87 + #include <gst/gst.h>
88 +
89 + #include "bacon-message-connection.h"
90 +@@ -886,10 +886,10 @@ static void reread_cd (gboolean ignore_no_media)
91 +
92 + /* Set watch cursor */
93 + if (realized) {
94 +- cursor = gdk_cursor_new_for_display (gdk_drawable_get_display (window), GDK_WATCH);
95 ++ cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (window)), GDK_WATCH);
96 + gdk_window_set_cursor (window, cursor);
97 + gdk_cursor_unref (cursor);
98 +- gdk_display_sync (gdk_drawable_get_display (window));
99 ++ gdk_display_sync (gtk_widget_get_display (GTK_WIDGET (window)));
100 + }
101 +
102 + /* Set statusbar message */
103 +diff --git a/src/sj-prefs.c b/src/sj-prefs.c
104 +index 698b4aa..aeb2bc5 100644
105 +--- a/src/sj-prefs.c
106 ++++ b/src/sj-prefs.c
107 +@@ -25,7 +25,7 @@
108 + #include <string.h>
109 + #include <gtk/gtk.h>
110 + #include <gconf/gconf-client.h>
111 +-#include <profiles/gnome-media-profiles.h>
112 ++#include <libgnome-media-profiles/gnome-media-profiles.h>
113 + #include <brasero-drive-selection.h>
114 +
115 + #include "sj-util.h"
116 +--
117 +cgit v0.8.3.4
118
119 diff --git a/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-only.patch b/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-only.patch
120 new file mode 100644
121 index 0000000..2e1a83a
122 --- /dev/null
123 +++ b/media-sound/sound-juicer/files/sound-juicer-2.32.0-gtk3-only.patch
124 @@ -0,0 +1,71 @@
125 +From 83398a1e2d1f1045353884b44c681e035b561023 Mon Sep 17 00:00:00 2001
126 +From: Bastien Nocera <hadess@××××××.net>
127 +Date: Mon, 15 Nov 2010 17:43:37 +0000
128 +Subject: build: Remove ability to build against GTK+ 2.x
129 +
130 +---
131 +diff --git a/configure.in b/configure.in
132 +index 8727f14..9e5f0c8 100644
133 +--- a/configure.in
134 ++++ b/configure.in
135 +@@ -34,30 +34,7 @@ GNOME_CXX_WARNINGS
136 + GNOME_DEBUG_CHECK
137 + GNOME_MAINTAINER_MODE_DEFINES
138 +
139 +-AC_MSG_CHECKING([which gtk+ version to compile against])
140 +-AC_ARG_WITH([gtk],
141 +- [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])],
142 +- [case "$with_gtk" in
143 +- 2.0|3.0) ;;
144 +- *) AC_MSG_ERROR([invalid gtk version specified]) ;;
145 +- esac],
146 +- [with_gtk=2.0])
147 +-AC_MSG_RESULT([$with_gtk])
148 +-
149 +-case "$with_gtk" in
150 +- 2.0) GTK_API_VERSION=2.0
151 +- GTK_REQUIRED=2.20.0
152 +- LIBBRASERO_MEDIA_PC="libbrasero-media >= 2.26"
153 +- LIBCANBERRA_GTK_PC=libcanberra-gtk
154 +- GNOME_MEDIA_PROFILES_PC="gnome-media-profiles >= 2.11.91"
155 +- ;;
156 +- 3.0) GTK_API_VERSION=3.0
157 +- GTK_REQUIRED=2.90.0
158 +- LIBBRASERO_MEDIA_PC=libbrasero-media3
159 +- LIBCANBERRA_GTK_PC=libcanberra-gtk3
160 +- GNOME_MEDIA_PROFILES_PC=gnome-media-profiles-3.0
161 +- ;;
162 +-esac
163 ++GTK_REQUIRED=2.90.0
164 +
165 + AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
166 +
167 +@@ -70,7 +47,7 @@ AC_SUBST(GLIB_CFLAGS)
168 + AC_SUBST(GLIB_LIBS)
169 +
170 + # Find libbrasero-media
171 +-PKG_CHECK_MODULES(BURN, $LIBBRASERO_MEDIA_PC)
172 ++PKG_CHECK_MODULES(BURN, libbrasero-media3)
173 + AC_SUBST(BURN_CFLAGS)
174 + AC_SUBST(BURN_LIBS)
175 +
176 +@@ -81,7 +58,7 @@ LIBS="$LIBS $BURN_LIBS"
177 + # LIBS="$oldlibs"
178 +
179 + # Find the UI libraries
180 +-PKG_CHECK_MODULES(UI, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gconf-2.0 gio-2.0 gmodule-export-2.0 dbus-glib-1 $LIBCANBERRA_GTK_PC)
181 ++PKG_CHECK_MODULES(UI, gtk+-3.0 >= $GTK_REQUIRED gconf-2.0 gio-2.0 gmodule-export-2.0 dbus-glib-1 libcanberra-gtk3)
182 + AC_SUBST(UI_CFLAGS)
183 + AC_SUBST(UI_LIBS)
184 +
185 +@@ -96,7 +73,7 @@ AM_GST_ELEMENT_CHECK(wavenc,,AC_MSG_WARN([The 'wavenc' element was not found. Th
186 + AM_GST_ELEMENT_CHECK(giosink,,AC_MSG_WARN([The 'giosink' element was not found. This will cause Sound Juicer to fail at runtime.]))
187 +
188 + # Find GNOME Media Profiles
189 +-PKG_CHECK_MODULES(MEDIA_PROFILES, $GNOME_MEDIA_PROFILES_PC)
190 ++PKG_CHECK_MODULES(MEDIA_PROFILES, libgnome-media-profiles-3.0)
191 + AC_SUBST(MEDIA_PROFILES_CFLAGS)
192 + AC_SUBST(MEDIA_PROFILES_LIBS)
193 +
194 +--
195 +cgit v0.8.3.4
196
197 diff --git a/media-sound/sound-juicer/files/sound-juicer-2.32.0-new-gdk-keys.patch b/media-sound/sound-juicer/files/sound-juicer-2.32.0-new-gdk-keys.patch
198 new file mode 100644
199 index 0000000..205c023
200 --- /dev/null
201 +++ b/media-sound/sound-juicer/files/sound-juicer-2.32.0-new-gdk-keys.patch
202 @@ -0,0 +1,26 @@
203 +From a362297f7faa7b88a3cb412ebfd3b47dd0414183 Mon Sep 17 00:00:00 2001
204 +From: Matthias Clasen <mclasen@××××××.com>
205 +Date: Fri, 01 Oct 2010 15:03:30 +0000
206 +Subject: Use new GDK key names
207 +
208 +This fixes the build against GTK3 (and works with 2.22 as well).
209 +This commit does not make the chances to configure.in to actually
210 +build against GTK3, though.
211 +
212 +https://bugzilla.gnome.org/show_bug.cgi?id=630868
213 +---
214 +diff --git a/src/sj-main.c b/src/sj-main.c
215 +index 43f1a6f..351fb66 100644
216 +--- a/src/sj-main.c
217 ++++ b/src/sj-main.c
218 +@@ -113,7 +113,7 @@ sj_stock_init (void)
219 +
220 + static const GtkStockItem sj_stock_items[] =
221 + {
222 +- { SJ_STOCK_EXTRACT, N_("E_xtract"), GDK_CONTROL_MASK, GDK_Return, NULL }
223 ++ { SJ_STOCK_EXTRACT, N_("E_xtract"), GDK_CONTROL_MASK, GDK_KEY_Return, NULL }
224 + };
225 +
226 + if (initialized)
227 +--
228 +cgit v0.8.3.4
229
230 diff --git a/media-sound/sound-juicer/sound-juicer-2.32.0-r300.ebuild b/media-sound/sound-juicer/sound-juicer-2.32.0-r300.ebuild
231 new file mode 100644
232 index 0000000..a326978
233 --- /dev/null
234 +++ b/media-sound/sound-juicer/sound-juicer-2.32.0-r300.ebuild
235 @@ -0,0 +1,69 @@
236 +# Copyright 1999-2010 Gentoo Foundation
237 +# Distributed under the terms of the GNU General Public License v2
238 +# $Header: /var/cvsroot/gentoo-x86/media-sound/sound-juicer/sound-juicer-2.32.0.ebuild,v 1.2 2010/12/08 17:01:34 eva Exp $
239 +
240 +EAPI="3"
241 +GCONF_DEBUG="yes"
242 +
243 +inherit gnome2 eutils autotools
244 +
245 +DESCRIPTION="CD ripper for GNOME 2"
246 +HOMEPAGE="http://www.burtonini.com/blog/computers/sound-juicer/"
247 +
248 +LICENSE="GPL-2"
249 +SLOT="0"
250 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
251 +IUSE="test"
252 +
253 +COMMON_DEPEND=">=dev-libs/glib-2.18
254 + >=x11-libs/gtk+-2.90:3
255 + media-libs/libcanberra[gtk3]
256 + >=app-cdr/brasero-2.90
257 + >=gnome-base/gconf-2
258 + sys-apps/dbus
259 + dev-libs/dbus-glib
260 +
261 + >=media-libs/musicbrainz-3.0.2:3
262 + media-libs/libgnome-media-profiles
263 +
264 + >=media-libs/gstreamer-0.10.15:0.10
265 + >=media-libs/gst-plugins-base-0.10:0.10"
266 +
267 +RDEPEND="${COMMON_DEPEND}
268 + >=media-plugins/gst-plugins-gconf-0.10:0.10
269 + >=media-plugins/gst-plugins-gio-0.10:0.10
270 + || (
271 + >=media-plugins/gst-plugins-cdparanoia-0.10:0.10
272 + >=media-plugins/gst-plugins-cdio-0.10:0.10 )
273 + >=media-plugins/gst-plugins-meta-0.10-r2:0.10"
274 +
275 +DEPEND="${COMMON_DEPEND}
276 + >=dev-util/pkgconfig-0.9
277 + >=dev-util/intltool-0.40
278 + >=app-text/scrollkeeper-0.3.5
279 + app-text/gnome-doc-utils
280 + test? ( ~app-text/docbook-xml-dtd-4.3 )"
281 +
282 +pkg_setup() {
283 + # GST_INSPECT needed to get around some sandboxing checks
284 + G2CONF="${G2CONF}
285 + --disable-scrollkeeper GST_INSPECT=/bin/true"
286 + DOCS="AUTHORS ChangeLog NEWS README TODO"
287 +}
288 +
289 +src_prepare() {
290 + # Patches from upstream, remove in next version
291 + epatch "${FILESDIR}/${P}-new-gdk-keys.patch"
292 + epatch "${FILESDIR}/${P}-gtk3-only.patch"
293 + epatch "${FILESDIR}/${P}-gtk3-api.patch"
294 +
295 + eautoreconf
296 +
297 + gnome2_src_prepare
298 +}
299 +
300 +pkg_postinst() {
301 + gnome2_pkg_postinst
302 + ewarn "If ${PN} does not rip to some music format, please check your"
303 + ewarn "USE flags on media-plugins/gst-plugins-meta"
304 +}