diff options
author | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2008-12-02 16:46:31 +0000 |
---|---|---|
committer | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2008-12-02 16:46:31 +0000 |
commit | 4dfca18908defe3255387523ea1ba7381d62287a (patch) | |
tree | 4a0682d7ad1c03a4fb2620016ad8e3993ae20786 /x11-wm/compiz | |
parent | Fixed dependency, bug #247273. (diff) | |
download | gentoo-2-4dfca18908defe3255387523ea1ba7381d62287a.tar.gz gentoo-2-4dfca18908defe3255387523ea1ba7381d62287a.tar.bz2 gentoo-2-4dfca18908defe3255387523ea1ba7381d62287a.zip |
Added compiz-0.7.8-r1 which includes a patch for compiz to build with KDE-4.2/live and
updated deps for compiz-0.7.8 as it only builds with KDE:4.1.
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r2 x86_64)
Diffstat (limited to 'x11-wm/compiz')
-rw-r--r-- | x11-wm/compiz/ChangeLog | 11 | ||||
-rw-r--r-- | x11-wm/compiz/compiz-0.7.8-r1.ebuild | 143 | ||||
-rw-r--r-- | x11-wm/compiz/compiz-0.7.8.ebuild | 10 | ||||
-rw-r--r-- | x11-wm/compiz/files/compiz-0.7.8-framesvg.patch | 77 |
4 files changed, 232 insertions, 9 deletions
diff --git a/x11-wm/compiz/ChangeLog b/x11-wm/compiz/ChangeLog index 1d0ec2745142..b64b95bfd35e 100644 --- a/x11-wm/compiz/ChangeLog +++ b/x11-wm/compiz/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for x11-wm/compiz # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.33 2008/11/27 18:09:04 jmbsvicetto Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.34 2008/12/02 16:46:31 jmbsvicetto Exp $ + +*compiz-0.7.8-r1 (02 Dec 2008) + + 02 Dec 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> + +files/compiz-0.7.8-framesvg.patch, compiz-0.7.8.ebuild, + +compiz-0.7.8-r1.ebuild: + Reviewed compiz-0.7.8 KDE4 deps as it only works with kwin:4.1 at the + moment. Added compiz-0.7.8-r1 with a dep on kwin:4.2 / kwin:live that + applies a patch for compiz to build. 27 Nov 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> ChangeLog: diff --git a/x11-wm/compiz/compiz-0.7.8-r1.ebuild b/x11-wm/compiz/compiz-0.7.8-r1.ebuild new file mode 100644 index 000000000000..bdd9fd42cce4 --- /dev/null +++ b/x11-wm/compiz/compiz-0.7.8-r1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.7.8-r1.ebuild,v 1.1 2008/12/02 16:46:31 jmbsvicetto Exp $ + +EAPI="2" + +inherit autotools eutils gnome2-utils multilib + +DESCRIPTION="3D composite and windowmanager" +HOMEPAGE="http://www.compiz.org/" +SRC_URI="http://xorg.freedesktop.org/archive/individual/app/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+cairo dbus fuse gnome gtk kde kde4 +svg" + +DEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/libxslt + >=media-libs/glitz-0.5.6 + media-libs/libpng + >=media-libs/mesa-6.5.1-r1 + >=x11-base/xorg-server-1.1.1-r1 + x11-libs/libX11[xcb] + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libICE + x11-libs/libSM + >=x11-libs/libXrender-0.8.4 + >=x11-libs/startup-notification-0.7 + cairo? ( + x11-libs/cairo[X] + ) + dbus? ( >=sys-apps/dbus-1.0 ) + fuse? ( sys-fs/fuse ) + gnome? ( + >=gnome-base/gnome-control-center-2.16.1:2 + gnome-base/gnome-desktop + gnome-base/gconf:2 + ) + gtk? ( + >=x11-libs/gtk+-2.8.0:2 + >=x11-libs/libwnck-2.18.3 + x11-libs/pango + ) + kde? ( + || ( kde-base/kwin:3.5 + kde-base/kdebase:3.5 + ) + dev-libs/dbus-qt3-old + ) + kde4? ( + || ( + kde-base/kwin:4.2 + kde-base/kwin:live + ) + ) + svg? ( + >=gnome-base/librsvg-2.14.0:2 + >=x11-libs/cairo-1.0 + ) +" + +RDEPEND="${DEPEND} + x11-apps/mesa-progs + x11-apps/xvinfo" + +DEPEND="${DEPEND} + dev-util/pkgconfig + x11-proto/damageproto + x11-proto/xineramaproto" + +src_prepare() { + + use kde4 && epatch "${FILESDIR}/${PN}-framesvg.patch" + use gnome || { + epatch "${FILESDIR}"/${PN}-no-gconf.patch + ln -s "${ROOT}"/usr/share/aclocal/gconf-2.m4 acinclude.m4 + + # required to apply the above patch + intltoolize --copy --force || die "intltoolize failed" + eautoreconf || die "eautoreconf failed" + } +} + +src_configure() { + econf \ + --disable-gnome-keybindings \ + --enable-librsvg \ + --with-default-plugins \ + $(use_enable cairo annotate) \ + $(use_enable dbus) \ + $(use_enable dbus dbus-glib) \ + $(use_enable fuse) \ + $(use_enable gnome) \ + $(use_enable gnome gconf) \ + $(use_enable gnome metacity) \ + $(use_enable gtk) \ + $(use_enable kde) \ + $(use_enable kde4) \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Install compiz-manager + dobin "${FILESDIR}/compiz-manager" || die "dobin failed" + + # Add the full-path to lspci + sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager" + + # Create gentoo's config file + dodir /etc/xdg/compiz + + cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager" + COMPIZ_BIN_PATH="/usr/bin/" + PLUGIN_PATH="/usr/$(get_libdir)/compiz/" + LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2" + LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2" + KWIN="$(type -p kwin)" + METACITY="$(type -p metacity)" + SKIP_CHECKS="yes" + EOF + + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" +} + +pkg_postinst() { + use gnome && gnome2_gconf_install + + ewarn "If you update to x11-wm/metacity-2.24 after you install ${P}," + ewarn "gtk-window-decorator will crash until you reinstall ${PN} again." +} + +pkg_prerm() { + use gnome && gnome2_gconf_uninstall +} diff --git a/x11-wm/compiz/compiz-0.7.8.ebuild b/x11-wm/compiz/compiz-0.7.8.ebuild index 194a7d1595a2..3c7361a232c7 100644 --- a/x11-wm/compiz/compiz-0.7.8.ebuild +++ b/x11-wm/compiz/compiz-0.7.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.7.8.ebuild,v 1.3 2008/11/15 02:19:26 jmbsvicetto Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.7.8.ebuild,v 1.4 2008/12/02 16:46:31 jmbsvicetto Exp $ EAPI="2" @@ -54,13 +54,7 @@ DEPEND=" ) dev-libs/dbus-qt3-old ) - kde4? ( - || ( - kde-base/kwin:4.1 - kde-base/kwin:4 - kde-base/kwin:kde-svn - ) - ) + kde4? ( kde-base/kwin:4.1 ) svg? ( >=gnome-base/librsvg-2.14.0:2 >=x11-libs/cairo-1.0 diff --git a/x11-wm/compiz/files/compiz-0.7.8-framesvg.patch b/x11-wm/compiz/files/compiz-0.7.8-framesvg.patch new file mode 100644 index 000000000000..a3eb30357f99 --- /dev/null +++ b/x11-wm/compiz/files/compiz-0.7.8-framesvg.patch @@ -0,0 +1,77 @@ +diff -p -up compiz-0.7.8/configure.ac.framesvg compiz-0.7.8/configure.ac +--- compiz-0.7.8/configure.ac.framesvg 2008-11-20 15:58:43.000000000 +0100 ++++ compiz-0.7.8/configure.ac 2008-11-20 16:34:25.000000000 +0100 +@@ -487,7 +487,7 @@ if test "x$use_kde4" = "xyes"; then + kde4libs=`kde4-config --install lib --expandvars 2>/dev/null` + kde4incs=`kde4-config --install include --expandvars 2>/dev/null` + +- kde4_test_includes="kdecoration.h kcommondecoration.h kdecorationbridge.h plasma/panelsvg.h" ++ kde4_test_includes="kdecoration.h kcommondecoration.h kdecorationbridge.h plasma/framesvg.h" + + dnl Check for KWin headers + AC_MSG_CHECKING([for KWin headers]) +diff -p -up compiz-0.7.8/kde/window-decorator-kde4/switcher.cpp.framesvg compiz-0.7.8/kde/window-decorator-kde4/switcher.cpp +--- compiz-0.7.8/kde/window-decorator-kde4/switcher.cpp.framesvg 2008-08-08 13:20:31.000000000 +0200 ++++ compiz-0.7.8/kde/window-decorator-kde4/switcher.cpp 2008-11-20 16:38:10.000000000 +0100 +@@ -30,7 +30,7 @@ + + #include <fixx11h.h> + +-#include <KDE/Plasma/PanelSvg> ++#include <KDE/Plasma/FrameSvg> + #include <KDE/Plasma/Theme> + + #include <kwindowsystem.h> +@@ -46,9 +46,9 @@ mId (id) + QColor color; + color = Plasma::Theme::defaultTheme ()->color (Plasma::Theme::TextColor); + +- mBackground = new Plasma::PanelSvg(); ++ mBackground = new Plasma::FrameSvg(); + mBackground->setImagePath ("dialogs/background"); +- mBackground->setEnabledBorders(Plasma::PanelSvg::AllBorders); ++ mBackground->setEnabledBorders(Plasma::FrameSvg::AllBorders); + + mBorder.left = mBackground->marginSize(Plasma::LeftMargin); + mBorder.right = mBackground->marginSize(Plasma::RightMargin); +@@ -131,8 +131,8 @@ KWD::Switcher::redrawPixmap () + p.setCompositionMode (QPainter::CompositionMode_Source); + p.setRenderHint (QPainter::SmoothPixmapTransform); + +- mBackground->resizePanel (QSizeF (contentWidth, contentHeight)); +- mBackground->paintPanel (&p, QRect (0, 0, contentWidth, ++ mBackground->resizeFrame (QSizeF (contentWidth, contentHeight)); ++ mBackground->paintFrame (&p, QRect (0, 0, contentWidth, + contentHeight)); + + mBackgroundPixmap = mPixmap.copy (mBorder.left, mBorder.top, +@@ -168,7 +168,7 @@ KWD::Switcher::update () + p.setCompositionMode (QPainter::CompositionMode_Source); + + +- mBackground->paintPanel (&p, QRect (mBorder.left, mBorder.top + ++ mBackground->paintFrame (&p, QRect (mBorder.left, mBorder.top + + mGeometry.height () + 5, mGeometry.width (), + fm.height ())); + +diff -p -up compiz-0.7.8/kde/window-decorator-kde4/switcher.h.framesvg compiz-0.7.8/kde/window-decorator-kde4/switcher.h +--- compiz-0.7.8/kde/window-decorator-kde4/switcher.h.framesvg 2008-08-08 13:20:31.000000000 +0200 ++++ compiz-0.7.8/kde/window-decorator-kde4/switcher.h 2008-11-20 16:36:22.000000000 +0100 +@@ -30,7 +30,7 @@ + + namespace Plasma + { +-class PanelSvg; ++class FrameSvg; + } + + class QSpacerItem; +@@ -70,7 +70,7 @@ class Switcher + + QRect mGeometry; + +- Plasma::PanelSvg *mBackground; ++ Plasma::FrameSvg *mBackground; + QPixmap mPixmap; + QPixmap mBackgroundPixmap; + |