add compiz and apropriate ebuilds with package.unmask file

This commit is contained in:
2012-01-25 22:04:41 +04:00
parent 2c8d5e4c01
commit 829d8ef4df
50 changed files with 2500 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX compiz-plugins-main-0.8.4-put-plugin.patch 6918 RMD160 1c14b58a95694e711d1dcd0036471fe465cf2a0e SHA1 fc50491bc22fe1f46f2779b9e24fc07e4c15bdc4 SHA256 1155ac5765d1712b8dee5813b41a638ea01cc16519837e7137a69d6a1e79e614
AUX compiz-plugins-main-no-gconf.patch 586 RMD160 1222325cbec30e35030c930cd3a9358a3b975047 SHA1 95ef3484e60b4f3c4d0bced6b0fb654e7cbcff89 SHA256 bc13b648e2198dd3611ba4f4734540903a740570a2c181dc666dd1e66f13e1da
DIST compiz-plugins-main-0.8.6.tar.bz2 1226802 RMD160 7eefc691c26199487309fc5e5b0993bfe3f3dd86 SHA1 6cd9c6a48c570061ac0b6275a6acddd8415b8611 SHA256 66dc4f349b11dbeac08f941d2d3443aa9b80d82f35c304db747ff383491ed6d9
EBUILD compiz-plugins-main-0.8.6-r9999.ebuild 1403 RMD160 f080d6b5f7b678ef28cbc4e00369f292f9d89bc3 SHA1 d87a87334f3c0c25e5a798ab72b20e1052683c36 SHA256 7aa45b32b82a440595bd9ad9ec8cb65b7402fed4bfc18428d46dc3fb8c1961c8

View File

@ -0,0 +1,64 @@
# 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-main/compiz-plugins-main-0.8.6-r1.ebuild,v 1.4 2011/03/21 19:50:33 nirbheek Exp $
EAPI="2"
inherit autotools eutils gnome2-utils
DESCRIPTION="Compiz Fusion Window Decorator 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"
MY_PV="0.8.4"
RDEPEND="
>=gnome-base/librsvg-2.14.0:2
virtual/jpeg:0
x11-libs/cairo
>=x11-libs/compiz-bcop-${MY_PV}
>=x11-wm/compiz-${PV}[gconf?]
"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.35
>=dev-util/pkgconfig-0.19
>=sys-devel/gettext-0.15
gconf? ( gnome-base/gconf:2 )
"
src_prepare() {
if ! use gconf; then
epatch "${FILESDIR}"/${PN}-no-gconf.patch
# required to apply the above patch
intltoolize --copy --force || die "intltoolize failed"
eautoreconf || die "eautoreconf failed"
fi
}
src_configure() {
econf \
--disable-dependency-tracking \
--enable-fast-install \
--disable-static \
$(use_enable gconf schemas)
}
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
}

View File

@ -0,0 +1,184 @@
From dc097d85952f82b101ea897d33958582db2fa010 Mon Sep 17 00:00:00 2001
From: Danny Baumann <dannybaumann@web.de>
Date: Sun, 31 Jan 2010 13:11:44 +0000
Subject: Handle windows that have server border set properly.
---
diff --git a/put.c b/put.c
index daf268f..9870cd3 100644
--- a/src/put/put.c
+++ b/src/put/put.c
@@ -43,6 +43,14 @@
GET_PUT_SCREEN (w->screen, \
GET_PUT_DISPLAY (w->screen->display)))
+#define TOP_BORDER(w) ((w)->input.top)
+#define LEFT_BORDER(w) ((w)->input.left)
+#define RIGHT_BORDER(w) ((w)->input.right + 2 * (w)->serverBorderWidth)
+#define BOTTOM_BORDER(w) ((w)->input.bottom + 2 * (w)->serverBorderWidth)
+
+#define HALF_WIDTH(w) ((w)->serverWidth / 2 + (w)->serverBorderWidth)
+#define HALF_HEIGHT(w) ((w)->serverHeight / 2 + (w)->serverBorderWidth)
+
static int displayPrivateIndex;
typedef enum
@@ -395,54 +403,56 @@ putGetDistance (CompWindow *w,
switch (type) {
case PutCenter:
/* center of the screen */
- dx = (workArea.width / 2) - (w->serverWidth / 2) - (x - workArea.x);
- dy = (workArea.height / 2) - (w->serverHeight / 2) - (y - workArea.y);
+ dx = (workArea.width / 2) - (w->serverWidth / 2) -
+ w->serverBorderWidth - (x - workArea.x);
+ dy = (workArea.height / 2) - (w->serverHeight / 2) -
+ w->serverBorderWidth - (y - workArea.y);
break;
case PutLeft:
/* center of the left edge */
- dx = -(x - workArea.x) + w->input.left + putGetPadLeft (s);
- dy = (workArea.height / 2) - (w->serverHeight / 2) - (y - workArea.y);
+ dx = -(x - workArea.x) + LEFT_BORDER (w) + putGetPadLeft (s);
+ dy = (workArea.height / 2) - HALF_HEIGHT (w) - (y - workArea.y);
break;
case PutTopLeft:
/* top left corner */
- dx = -(x - workArea.x) + w->input.left + putGetPadLeft (s);
- dy = -(y - workArea.y) + w->input.top + putGetPadTop (s);
+ dx = -(x - workArea.x) + LEFT_BORDER (w) + putGetPadLeft (s);
+ dy = -(y - workArea.y) + TOP_BORDER (w) + putGetPadTop (s);
break;
case PutTop:
/* center of top edge */
- dx = (workArea.width / 2) - (w->serverWidth / 2) - (x - workArea.x);
- dy = -(y - workArea.y) + w->input.top + putGetPadTop (s);
+ dx = (workArea.width / 2) - HALF_WIDTH (w) - (x - workArea.x);
+ dy = -(y - workArea.y) + TOP_BORDER (w) + putGetPadTop (s);
break;
case PutTopRight:
/* top right corner */
dx = workArea.width - w->serverWidth - (x - workArea.x) -
- w->input.right - putGetPadRight (s);
- dy = -(y - workArea.y) + w->input.top + putGetPadTop (s);
+ RIGHT_BORDER (w) - putGetPadRight (s);
+ dy = -(y - workArea.y) + TOP_BORDER (w) + putGetPadTop (s);
break;
case PutRight:
/* center of right edge */
dx = workArea.width - w->serverWidth - (x - workArea.x) -
- w->input.right - putGetPadRight (s);
- dy = (workArea.height / 2) - (w->serverHeight / 2) - (y - workArea.y);
+ RIGHT_BORDER (w) - putGetPadRight (s);
+ dy = (workArea.height / 2) - HALF_HEIGHT (w) - (y - workArea.y);
break;
case PutBottomRight:
/* bottom right corner */
dx = workArea.width - w->serverWidth - (x - workArea.x) -
- w->input.right - putGetPadRight (s);
+ RIGHT_BORDER (w) - putGetPadRight (s);
dy = workArea.height - w->serverHeight - (y - workArea.y) -
- w->input.bottom - putGetPadBottom (s);
+ BOTTOM_BORDER (w) - putGetPadBottom (s);
break;
case PutBottom:
/* center of bottom edge */
- dx = (workArea.width / 2) - (w->serverWidth / 2) - (x - workArea.x);
+ dx = (workArea.width / 2) - HALF_WIDTH (w) - (x - workArea.x);
dy = workArea.height - w->serverHeight - (y - workArea.y) -
- w->input.bottom - putGetPadBottom (s);
+ BOTTOM_BORDER (w) - putGetPadBottom (s);
break;
case PutBottomLeft:
/* bottom left corner */
- dx = -(x - workArea.x) + w->input.left + putGetPadLeft (s);
+ dx = -(x - workArea.x) + LEFT_BORDER (w) + putGetPadLeft (s);
dy = workArea.height - w->serverHeight - (y - workArea.y) -
- w->input.bottom - putGetPadBottom (s);
+ BOTTOM_BORDER (w) - putGetPadBottom (s);
break;
case PutRestore:
/* back to last position */
@@ -538,16 +548,16 @@ putGetDistance (CompWindow *w,
if (posX < 0)
/* account for a specified negative position,
like geometry without (-0) */
- dx = posX + s->width - w->serverWidth - x - w->input.right;
+ dx = posX + s->width - w->serverWidth - x - RIGHT_BORDER (w);
else
- dx = posX - x + w->input.left;
+ dx = posX - x + LEFT_BORDER (w);
if (posY < 0)
/* account for a specified negative position,
like geometry without (-0) */
- dy = posY + s->height - w->height - y - w->input.bottom;
+ dy = posY + s->height - w->serverHeight - y - BOTTOM_BORDER (w);
else
- dy = posY - y + w->input.top;
+ dy = posY - y + TOP_BORDER (w);
break;
case PutRelative:
/* move window by offset */
@@ -572,35 +582,35 @@ putGetDistance (CompWindow *w,
if (putGetWindowCenter (s))
{
/* window center */
- dx = rx - (w->serverWidth / 2) - x;
- dy = ry - (w->serverHeight / 2) - y;
+ dx = rx - HALF_WIDTH (w) - x;
+ dy = ry - HALF_HEIGHT (w) - y;
}
else if (rx < s->workArea.width / 2 &&
ry < s->workArea.height / 2)
{
/* top left quad */
- dx = rx - x + w->input.left;
- dy = ry - y + w->input.top;
+ dx = rx - x + LEFT_BORDER (w);
+ dy = ry - y + TOP_BORDER (w);
}
else if (rx < s->workArea.width / 2 &&
ry >= s->workArea.height / 2)
{
/* bottom left quad */
- dx = rx - x + w->input.left;
- dy = ry - w->height - y - w->input.bottom;
+ dx = rx - x + LEFT_BORDER (w);
+ dy = ry - w->serverHeight - y - BOTTOM_BORDER (w);
}
else if (rx >= s->workArea.width / 2 &&
ry < s->workArea.height / 2)
{
/* top right quad */
- dx = rx - w->width - x - w->input.right;
- dy = ry - y + w->input.top;
+ dx = rx - w->serverWidth - x - RIGHT_BORDER (w);
+ dy = ry - y + TOP_BORDER (w);
}
else
{
/* bottom right quad */
- dx = rx - w->width - x - w->input.right;
- dy = ry - w->height - y - w->input.bottom;
+ dx = rx - w->serverWidth - x - RIGHT_BORDER (w);
+ dy = ry - w->serverHeight - y - BOTTOM_BORDER (w);
}
}
else
@@ -627,10 +637,10 @@ putGetDistance (CompWindow *w,
inDx = dxBefore = dx % s->width;
inDy = dyBefore = dy % s->height;
- extents.left = x + inDx - w->input.left;
- extents.top = y + inDy - w->input.top;
- extents.right = x + inDx + w->serverWidth + w->input.right;
- extents.bottom = y + inDy + w->serverHeight + w->input.bottom;
+ extents.left = x + inDx - LEFT_BORDER (w);
+ extents.top = y + inDy - TOP_BORDER (w);
+ extents.right = x + inDx + w->serverWidth + RIGHT_BORDER (w);
+ extents.bottom = y + inDy + w->serverHeight + BOTTOM_BORDER (w);
area.left = workArea.x + putGetPadLeft (s);
area.top = workArea.y + putGetPadTop (s);
--
cgit v0.8.2

View File

@ -0,0 +1,22 @@
configure.ac | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 297a8cf..290e92b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,11 +171,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])