summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2010-04-17 10:53:26 +0000
committerMichael Weber <xmw@gentoo.org>2010-04-17 10:53:26 +0000
commitcca9272f34751e49f63e3c3cd05681d9797760bf (patch)
treeb4fbd7917ac20ec4108077592ada766f8cdf4ecb
parentsunrise/ app-portage/elog-list/metadata.xml: Update metadata.xml to follow sk... (diff)
downloadsunrise-reviewed-cca9272f34751e49f63e3c3cd05681d9797760bf.tar.gz
sunrise-reviewed-cca9272f34751e49f63e3c3cd05681d9797760bf.tar.bz2
sunrise-reviewed-cca9272f34751e49f63e3c3cd05681d9797760bf.zip
gnome-extra/desktop-effects: New Ebuild for bug 315357
svn path=/sunrise/; revision=10467
-rw-r--r--gnome-extra/desktop-effects/ChangeLog10
-rw-r--r--gnome-extra/desktop-effects/Manifest5
-rw-r--r--gnome-extra/desktop-effects/desktop-effects-0.8.6.ebuild56
-rw-r--r--gnome-extra/desktop-effects/files/desktop-effects-0.8.6-gtk-2.20-fix.patch21
-rw-r--r--gnome-extra/desktop-effects/metadata.xml6
5 files changed, 98 insertions, 0 deletions
diff --git a/gnome-extra/desktop-effects/ChangeLog b/gnome-extra/desktop-effects/ChangeLog
new file mode 100644
index 000000000..3fb1994a6
--- /dev/null
+++ b/gnome-extra/desktop-effects/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for gnome-extra/desktop-effects
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 17 Apr 2010; Michael Weber (xmw) <gentoo@xmw.de>
+ +desktop-effects-0.8.6.ebuild,
+ +files/desktop-effects-0.8.6-gtk-2.20-fix.patch, +metadata.xml:
+ New Ebuild for bug 315357
+ Thanks to hicham for the initial ebuild
+
diff --git a/gnome-extra/desktop-effects/Manifest b/gnome-extra/desktop-effects/Manifest
new file mode 100644
index 000000000..265b026c2
--- /dev/null
+++ b/gnome-extra/desktop-effects/Manifest
@@ -0,0 +1,5 @@
+AUX desktop-effects-0.8.6-gtk-2.20-fix.patch 787 RMD160 6cbf9f1291e47a786c03393df2b3d1e954b21b35 SHA1 6f84bbadb54112c835e791a9a71ff7594587b3fb SHA256 283498f018f79bae518c8785cdf27f475ae9eda0995f5f2a2387d536afa187ff
+DIST desktop-effects-0.8.6.tar.bz2 72150 RMD160 6f50bf55f71707e72c0eddb052166bda19b0d54a SHA1 e84ffc65166f215ab7a3ceb985ee1b26d0804bb5 SHA256 267ca09ac6d173508e879312afe111a51cad2d95aa72dcfa38f6f0ea14dd0b75
+EBUILD desktop-effects-0.8.6.ebuild 1606 RMD160 51a871409209e823fc3c8482bae79fa7a8f90691 SHA1 47e0aedc8f7db9989382dc127d4afc6f7d091aac SHA256 ddba9eaaa20abd0c6f9b4b12d140a0cdda9d04be63ca8d56097c046c0f9762b1
+MISC ChangeLog 349 RMD160 4c1984dfd2b43a425f84d847443ac1385d948c54 SHA1 b4d02dec52012b800a280f5ea9db7cedeb9b57e8 SHA256 0c39c3ef4e3db1fdc58365c00536e2910f5b336900ed24618db3c9ca111b1cab
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/gnome-extra/desktop-effects/desktop-effects-0.8.6.ebuild b/gnome-extra/desktop-effects/desktop-effects-0.8.6.ebuild
new file mode 100644
index 000000000..1a8bcd323
--- /dev/null
+++ b/gnome-extra/desktop-effects/desktop-effects-0.8.6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Switch GNOME window management and effects between metacity, gnome-shell, compiz"
+HOMEPAGE="http://git.fedoraproject.org/git/desktop-effects.git"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="gnome-base/gconf
+ gnome-base/libglade
+ media-libs/mesa
+ x11-libs/gtk+:2
+ x11-libs/libXcomposite"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/glib:2
+ dev-util/desktop-file-utils
+ dev-util/intltool"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gnome-session"
+
+DOCS=( ChangeLog )
+
+pkg_setup() {
+ if has_version x11-wm/compiz && ! has_version x11-libs/compizconfig-backend-gconf ; then
+ ewarn "You should install and activate x11-libs/compizconfig-backend-gconf"
+ ewarn "for x11-wm/compiz to get CCSM changes and compiz option from ${PN} saved."
+ ewarn "Please see https://bugzilla.redhat.com/show_bug.cgi?id=532229 for details"
+ fi
+}
+
+src_prepare() {
+ # adds the format string to gtk_message_dialog_new
+ epatch "${FILESDIR}/${P}-gtk-2.20-fix.patch"
+
+ #Gentoo doesn't have compiz-gtk, replace it and add gconf to start string
+ sed -i -e 's/compiz-gtk/compiz/' desktop-effects.c || die
+ sed -i -e 's/compiz --replace/compiz gconf --replace/' desktop-effects.c || die
+
+ glib-gettextize || die
+ intltoolize --copy --force --automake || die
+ eautoreconf
+}
+
+src_install() {
+ gnome2_src_install
+ desktop-file-validate "${D}/usr/share/applications/${PN}.desktop" || die
+}
diff --git a/gnome-extra/desktop-effects/files/desktop-effects-0.8.6-gtk-2.20-fix.patch b/gnome-extra/desktop-effects/files/desktop-effects-0.8.6-gtk-2.20-fix.patch
new file mode 100644
index 000000000..cda3ebfe5
--- /dev/null
+++ b/gnome-extra/desktop-effects/files/desktop-effects-0.8.6-gtk-2.20-fix.patch
@@ -0,0 +1,21 @@
+--- desktop-effects.c.orig 2010-04-07 21:46:46.000000000 +0000
++++ desktop-effects.c 2010-04-07 21:48:05.000000000 +0000
+@@ -145,7 +145,7 @@ show_error (const GError *err)
+ NULL,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_WARNING,
+- GTK_BUTTONS_OK, err->message);
++ GTK_BUTTONS_OK, "%s", err->message);
+
+ gtk_window_set_title (GTK_WINDOW (dialog), "");
+
+@@ -617,7 +617,7 @@ start_wm_timeout (gpointer data)
+ (GtkWindow *)info->app->dialog,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ message_type,
+- GTK_BUTTONS_OK, message);
++ GTK_BUTTONS_OK, "%s", message);
+
+ gtk_window_set_title (GTK_WINDOW (dialog), "");
+ dialog_timeout_id = g_timeout_add (DIALOG_TIMEOUT_MILLISECONDS, time_out_dialog, dialog);
+
diff --git a/gnome-extra/desktop-effects/metadata.xml b/gnome-extra/desktop-effects/metadata.xml
new file mode 100644
index 000000000..e6233b5dc
--- /dev/null
+++ b/gnome-extra/desktop-effects/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>