Gentoo Archives: gentoo-commits

From: "Romain Perier (mrpouet)" <mrpouet@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-wm/compiz: compiz-0.8.4-r2.ebuild ChangeLog
Date: Tue, 02 Feb 2010 12:59:39
Message-Id: E1NcILx-0006bo-0e@stork.gentoo.org
1 mrpouet 10/02/02 12:59:37
2
3 Modified: ChangeLog
4 Added: compiz-0.8.4-r2.ebuild
5 Log:
6 Fix window region calculation for windows that have border width set, patch imported from upstream, per bug #302308.
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.51 x11-wm/compiz/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/ChangeLog?rev=1.51&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/ChangeLog?rev=1.51&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/ChangeLog?r1=1.50&r2=1.51
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v
19 retrieving revision 1.50
20 retrieving revision 1.51
21 diff -u -r1.50 -r1.51
22 --- ChangeLog 31 Jan 2010 16:49:44 -0000 1.50
23 +++ ChangeLog 2 Feb 2010 12:59:36 -0000 1.51
24 @@ -1,6 +1,13 @@
25 # ChangeLog for x11-wm/compiz
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.50 2010/01/31 16:49:44 mrpouet Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.51 2010/02/02 12:59:36 mrpouet Exp $
29 +
30 +*compiz-0.8.4-r2 (02 Feb 2010)
31 +
32 + 02 Feb 2010; Romain Perier <mrpouet@g.o> +compiz-0.8.4-r2.ebuild,
33 + +files/compiz-0.8.4-window-region-calculation.patch:
34 + Fix window region calculation for windows that have border width set,
35 + patch imported from upstream, per bug #302308.
36
37 *compiz-0.8.4-r1 (31 Jan 2010)
38
39
40
41
42 1.1 x11-wm/compiz/compiz-0.8.4-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/compiz-0.8.4-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/compiz-0.8.4-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: compiz-0.8.4-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.8.4-r2.ebuild,v 1.1 2010/02/02 12:59:36 mrpouet Exp $
52
53 EAPI="2"
54
55 inherit autotools eutils gnome2-utils
56
57 DESCRIPTION="3D composite and windowmanager"
58 HOMEPAGE="http://www.compiz.org/"
59 SRC_URI="http://releases.compiz.org/${PV}/${P}.tar.bz2"
60
61 LICENSE="GPL-2 LGPL-2.1 MIT"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="+cairo dbus fuse gnome gtk kde +svg"
65
66 DEPEND="
67 dev-libs/glib:2
68 dev-libs/libxml2
69 dev-libs/libxslt
70 media-libs/libpng
71 >=media-libs/mesa-6.5.1-r1
72 >=x11-base/xorg-server-1.1.1-r1
73 x11-libs/libX11[xcb]
74 x11-libs/libxcb
75 x11-libs/libXcomposite
76 x11-libs/libXdamage
77 x11-libs/libXinerama
78 x11-libs/libXrandr
79 x11-libs/libICE
80 x11-libs/libSM
81 >=x11-libs/libXrender-0.8.4
82 >=x11-libs/startup-notification-0.7
83 cairo? (
84 x11-libs/cairo[X]
85 )
86 dbus? ( >=sys-apps/dbus-1.0 )
87 fuse? ( sys-fs/fuse )
88 gnome? (
89 >=gnome-base/gnome-control-center-2.16.1:2
90 gnome-base/gnome-desktop
91 gnome-base/gconf:2
92 )
93 gtk? (
94 >=x11-libs/gtk+-2.8.0:2
95 >=x11-libs/libwnck-2.18.3
96 x11-libs/pango
97 )
98 kde? (
99 || (
100 >=kde-base/kwin-4.2.0
101 kde-base/kwin:live
102 )
103 )
104 svg? (
105 >=gnome-base/librsvg-2.14.0:2
106 >=x11-libs/cairo-1.0
107 )
108 "
109
110 RDEPEND="${DEPEND}
111 x11-apps/mesa-progs
112 x11-apps/xvinfo"
113
114 DEPEND="${DEPEND}
115 dev-util/pkgconfig
116 x11-proto/damageproto
117 x11-proto/xineramaproto"
118
119 src_prepare() {
120
121 echo "gtk/gnome/compiz-wm.desktop.in" >> "${S}/po/POTFILES.skip"
122 echo "metadata/core.xml.in" >> "${S}/po/POTFILES.skip"
123
124 # Missing gconf flags, fix bug #282807
125 epatch "${FILESDIR}"/${PN}-0.8.2-gtk-gnome-missing-gconf-flags.patch
126
127 # 3 bugfixes, per bug #302308
128 epatch "${FILESDIR}"/${P}-crash-on-opening-windows.patch
129 epatch "${FILESDIR}"/${P}-place-plugin.patch
130 epatch "${FILESDIR}"/${P}-window-region-calculation.patch
131
132 if ! use gnome; then
133 epatch "${FILESDIR}"/${PN}-no-gconf.patch
134 fi
135 eautoreconf
136 }
137
138 src_configure() {
139 econf --disable-dependency-tracking \
140 --disable-gnome-keybindings \
141 --enable-librsvg \
142 --with-default-plugins \
143 $(use_enable cairo annotate) \
144 $(use_enable dbus) \
145 $(use_enable dbus dbus-glib) \
146 $(use_enable fuse) \
147 $(use_enable gnome) \
148 $(use_enable gnome gconf) \
149 $(use_enable gnome metacity) \
150 $(use_enable gtk) \
151 $(use_enable kde kde4) \
152 --disable-kde
153 }
154
155 src_install() {
156 emake DESTDIR="${D}" install || die "emake install failed"
157
158 # Install compiz-manager
159 dobin "${FILESDIR}/compiz-manager" || die "dobin failed"
160
161 # Add the full-path to lspci
162 sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager" || die "sed 1 failed"
163
164 # Fix the hardcoded lib paths
165 sed -i "s#/lib/#/$(get_libdir)/#g" "${D}/usr/bin/compiz-manager" || die "sed 2 failed"
166
167 # Create gentoo's config file
168 dodir /etc/xdg/compiz || die "dodir failed"
169
170 cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager"
171 COMPIZ_BIN_PATH="/usr/bin/"
172 PLUGIN_PATH="/usr/$(get_libdir)/compiz/"
173 LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
174 LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
175 KWIN="$(type -p kwin)"
176 METACITY="$(type -p metacity)"
177 SKIP_CHECKS="yes"
178 EOF
179
180 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
181
182 insinto "/usr/share/applications"
183 doins "${FILESDIR}/compiz.desktop" || die "Failed to install compiz.desktop"
184 }
185
186 pkg_preinst() {
187 use gnome && gnome2_gconf_savelist
188 }
189
190 pkg_postinst() {
191 use gnome && gnome2_gconf_install
192
193 ewarn "If you update to x11-wm/metacity-2.24 after you install ${P},"
194 ewarn "gtk-window-decorator will crash until you reinstall ${PN} again."
195 }
196
197 pkg_prerm() {
198 use gnome && gnome2_gconf_uninstall
199 }