add compiz and apropriate ebuilds with package.unmask file
This commit is contained in:
4
x11-plugins/compiz-plugins-extra/Manifest
Normal file
4
x11-plugins/compiz-plugins-extra/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX compiz-plugins-extra-0.8.6-libnotify.patch 1412 RMD160 a4e1a09e293c5e1a16bf3b0fd7710d7440c12bcc SHA1 c9201df9851f3ef325fe6b2f612097bc10723b1b SHA256 864971c7f1ad664d64c4cfcca527c2a9788f95a2b030b2cc94f1d2ad9332c106
|
||||
AUX compiz-plugins-extra-no-gconf.patch 585 RMD160 bb3b291eab783be7f9754d724d3a96618fe2e614 SHA1 564d6614cc157397ae24347a731a9f4d65bf30f8 SHA256 0567850b07c3973f1b4bfd5c36a1e240a57e45a1714b63637ecec577febfc13f
|
||||
DIST compiz-plugins-extra-0.8.6.tar.bz2 2699385 RMD160 cd8d26902d38ee7fb42fe2077e483f92fc458929 SHA1 66c571c64910aa21808aedaee8c8ceb4c4a82c78 SHA256 e111beecd9e563065448aae81002fd6cb644b3cd0e11a8406d6a2d3146747de1
|
||||
EBUILD compiz-plugins-extra-0.8.6-r9999.ebuild 1564 RMD160 28cf176862dd4bb9cfee9b434ab691090e9490f0 SHA1 ffedde3e900095a8b784856285f07937006da03a SHA256 59504a217dcdbbe674c9f21932d9a1a1e3b7981b5c1f0ebce02240196f89256a
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/compiz-plugins-extra/compiz-plugins-extra-0.8.6-r1.ebuild,v 1.5 2011/03/21 19:47:45 nirbheek Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit autotools eutils gnome2-utils
|
||||
|
||||
DESCRIPTION="Compiz Fusion Window Decorator Extra Plugins"
|
||||
HOMEPAGE="http://www.compiz.org/"
|
||||
SRC_URI="http://releases.compiz.org/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="gconf libnotify"
|
||||
|
||||
MY_PV="0.8.4"
|
||||
|
||||
RDEPEND="
|
||||
>=gnome-base/librsvg-2.14.0:2
|
||||
virtual/jpeg:0
|
||||
>=x11-libs/compiz-bcop-${MY_PV}
|
||||
>=x11-plugins/compiz-plugins-main-${PV}
|
||||
>=x11-wm/compiz-${PV}[gconf?]
|
||||
libnotify? ( x11-libs/libnotify )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35
|
||||
>=dev-util/pkgconfig-0.19
|
||||
>=sys-devel/gettext-0.15
|
||||
x11-libs/cairo
|
||||
gconf? ( gnome-base/gconf:2 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
if ! use gconf; then
|
||||
epatch "${FILESDIR}"/${PN}-no-gconf.patch
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}/${P}-libnotify.patch"
|
||||
|
||||
# required to apply the above patch
|
||||
intltoolize --copy --force || die "intltoolize failed"
|
||||
eautoreconf || die "eautoreconf failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-dependency-tracking \
|
||||
--enable-fast-install \
|
||||
--disable-static \
|
||||
$(use_enable gconf schemas) \
|
||||
$(use_with libnotify)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use gconf && gnome2_gconf_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gconf && gnome2_gconf_install
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -136,9 +136,12 @@
|
||||
PKG_CHECK_MODULES(COMPIZMOUSEPOLL, compiz-mousepoll, [have_compiz_mousepoll=yes], [have_compiz_mousepoll=no])
|
||||
AM_CONDITIONAL(SHOWMOUSE_PLUGIN, test "x$have_compiz_mousepoll" = "xyes")
|
||||
|
||||
-PKG_CHECK_MODULES(LIBNOTIFY, libnotify, [have_libnotify=yes], [have_libnotify=no])
|
||||
+AC_ARG_WITH([libnotify], [AS_HELP_STRING([--without-libnotify], [Build without libnotify support @<:@default=auto@:>@])])
|
||||
+AS_IF([test "x$with_libnotify" != "xno"], [
|
||||
+ PKG_CHECK_MODULES(LIBNOTIFY, libnotify, [have_libnotify=yes], [have_libnotify=no])
|
||||
+])
|
||||
AM_CONDITIONAL(NOTIFICATION_PLUGIN, test "x$have_libnotify" = "xyes")
|
||||
-if test "$have_libnotify" = yes; then
|
||||
+if test "x$have_libnotify" = "xyes"; then
|
||||
AC_DEFINE(USE_NOTIFICATION, 1, [Build notification plugin])
|
||||
fi
|
||||
|
||||
--- src/notification/notification.c
|
||||
+++ src/notification/notification.c
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
|
||||
#include <libnotify/notify.h>
|
||||
+
|
||||
+#ifndef NOTIFY_CHECK_VERSION
|
||||
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
|
||||
+#endif
|
||||
+
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
@@ -103,7 +108,12 @@
|
||||
|
||||
n = notify_notification_new (logLevel,
|
||||
message,
|
||||
- iconUri, NULL);
|
||||
+ iconUri
|
||||
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
|
||||
+ );
|
||||
+#else
|
||||
+ , NULL);
|
||||
+#endif
|
||||
|
||||
notify_notification_set_timeout (n, nd->timeout);
|
||||
|
@ -0,0 +1,21 @@
|
||||
configure.ac | 5 ++---
|
||||
1 files changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 0a3d7c1..6f8356d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -150,11 +150,10 @@ if test x"$use_schemas" = x"yes"; then
|
||||
fi
|
||||
xsltdir=`$PKG_CONFIG --variable=xsltdir compiz-gconf`
|
||||
AC_SUBST(xsltdir)
|
||||
+else
|
||||
+ AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test "x$use_gconf" = "xyes")
|
||||
fi
|
||||
|
||||
-AM_GCONF_SOURCE_2
|
||||
-
|
||||
-
|
||||
AM_CONDITIONAL(USE_SCHEMAS, test "x$use_schemas" = "xyes")
|
||||
if test "$use_schemas" = yes; then
|
||||
AC_DEFINE(USE_SCHEMAS, 1, [Build gconf schemas])
|
Reference in New Issue
Block a user