1 |
flameeyes 10/09/04 21:53:43 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: compiz-0.8.6-r1.ebuild |
5 |
Log: |
6 |
Helping out a bit: disable static libraries (they are not linked against, are most plugins) and .la files (same reasoning); add a gconf USE flag because even if you want GNOME integration you might not want to pay the GConf toll (lots of schemas) and rather prefer flat files. Wire the svg USE flag to librsvg. |
7 |
|
8 |
(Portage version: 2.2_rc75/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 x11-wm/compiz/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-wm/compiz/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 25 Oct 2009 00:29:13 -0000 1.5 |
24 |
+++ metadata.xml 4 Sep 2010 21:53:43 -0000 1.6 |
25 |
@@ -1,11 +1,19 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
-<use> |
30 |
- <flag name="fuse">Enables support for the filesystem in userspace plugin through <pkg>sys-fs/fuse</pkg>.</flag> |
31 |
-</use> |
32 |
-<herd>desktop-effects</herd> |
33 |
-<longdescription> |
34 |
-compiz is a compositing window manager that uses 3D graphics acceleration via OpenGL. |
35 |
-</longdescription> |
36 |
+ <use> |
37 |
+ <flag name="fuse"> |
38 |
+ Enables support for the filesystem in userspace plugin through <pkg>sys-fs/fuse</pkg>. |
39 |
+ </flag> |
40 |
+ <flag name="gconf"> |
41 |
+ Enable the GConf-based configuration backend; it is not required |
42 |
+ to work with GNOME, and might actually be faster if it's not |
43 |
+ used. |
44 |
+ </flag> |
45 |
+ </use> |
46 |
+ |
47 |
+ <herd>desktop-effects</herd> |
48 |
+ <longdescription> |
49 |
+ compiz is a compositing window manager that uses 3D graphics acceleration via OpenGL. |
50 |
+ </longdescription> |
51 |
</pkgmetadata> |
52 |
|
53 |
|
54 |
|
55 |
1.54 x11-wm/compiz/ChangeLog |
56 |
|
57 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/ChangeLog?rev=1.54&view=markup |
58 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/ChangeLog?rev=1.54&content-type=text/plain |
59 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/ChangeLog?r1=1.53&r2=1.54 |
60 |
|
61 |
Index: ChangeLog |
62 |
=================================================================== |
63 |
RCS file: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v |
64 |
retrieving revision 1.53 |
65 |
retrieving revision 1.54 |
66 |
diff -u -r1.53 -r1.54 |
67 |
--- ChangeLog 3 Apr 2010 06:03:27 -0000 1.53 |
68 |
+++ ChangeLog 4 Sep 2010 21:53:43 -0000 1.54 |
69 |
@@ -1,6 +1,16 @@ |
70 |
# ChangeLog for x11-wm/compiz |
71 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
72 |
-# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.53 2010/04/03 06:03:27 jmbsvicetto Exp $ |
73 |
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/ChangeLog,v 1.54 2010/09/04 21:53:43 flameeyes Exp $ |
74 |
+ |
75 |
+*compiz-0.8.6-r1 (04 Sep 2010) |
76 |
+ |
77 |
+ 04 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
78 |
+ +compiz-0.8.6-r1.ebuild, metadata.xml: |
79 |
+ Helping out a bit: disable static libraries (they are not linked against, |
80 |
+ are most plugins) and .la files (same reasoning); add a gconf USE flag |
81 |
+ because even if you want GNOME integration you might not want to pay the |
82 |
+ GConf toll (lots of schemas) and rather prefer flat files. Wire the svg |
83 |
+ USE flag to librsvg. |
84 |
|
85 |
*compiz-0.8.6 (03 Apr 2010) |
86 |
*compiz-0.8.4-r3 (03 Apr 2010) |
87 |
|
88 |
|
89 |
|
90 |
1.1 x11-wm/compiz/compiz-0.8.6-r1.ebuild |
91 |
|
92 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/compiz-0.8.6-r1.ebuild?rev=1.1&view=markup |
93 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/compiz/compiz-0.8.6-r1.ebuild?rev=1.1&content-type=text/plain |
94 |
|
95 |
Index: compiz-0.8.6-r1.ebuild |
96 |
=================================================================== |
97 |
# Copyright 1999-2010 Gentoo Foundation |
98 |
# Distributed under the terms of the GNU General Public License v2 |
99 |
# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.8.6-r1.ebuild,v 1.1 2010/09/04 21:53:43 flameeyes Exp $ |
100 |
|
101 |
EAPI="2" |
102 |
|
103 |
inherit autotools eutils gnome2-utils |
104 |
|
105 |
DESCRIPTION="OpenGL window and compositing manager" |
106 |
HOMEPAGE="http://www.compiz.org/" |
107 |
SRC_URI="http://releases.compiz.org/${PV}/${P}.tar.bz2" |
108 |
|
109 |
LICENSE="GPL-2 LGPL-2.1 MIT" |
110 |
SLOT="0" |
111 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
112 |
IUSE="+cairo dbus fuse gnome gconf gtk kde +svg" |
113 |
|
114 |
COMMONDEPEND=" |
115 |
dev-libs/glib:2 |
116 |
dev-libs/libxml2 |
117 |
dev-libs/libxslt |
118 |
media-libs/libpng |
119 |
>=media-libs/mesa-6.5.1-r1 |
120 |
>=x11-base/xorg-server-1.1.1-r1 |
121 |
x11-libs/libX11[xcb] |
122 |
x11-libs/libxcb |
123 |
x11-libs/libXcomposite |
124 |
x11-libs/libXdamage |
125 |
x11-libs/libXinerama |
126 |
x11-libs/libXrandr |
127 |
x11-libs/libICE |
128 |
x11-libs/libSM |
129 |
>=x11-libs/libXrender-0.8.4 |
130 |
>=x11-libs/startup-notification-0.7 |
131 |
cairo? ( |
132 |
x11-libs/cairo[X] |
133 |
) |
134 |
dbus? ( >=sys-apps/dbus-1.0 ) |
135 |
fuse? ( sys-fs/fuse ) |
136 |
gnome? ( |
137 |
>=gnome-base/gnome-control-center-2.16.1:2 |
138 |
gnome-base/gnome-desktop |
139 |
gconf? ( gnome-base/gconf:2 ) |
140 |
) |
141 |
gtk? ( |
142 |
>=x11-libs/gtk+-2.8.0:2 |
143 |
>=x11-libs/libwnck-2.18.3 |
144 |
x11-libs/pango |
145 |
) |
146 |
kde? ( |
147 |
|| ( |
148 |
>=kde-base/kwin-4.2.0 |
149 |
kde-base/kwin:live |
150 |
) |
151 |
) |
152 |
svg? ( |
153 |
>=gnome-base/librsvg-2.14.0:2 |
154 |
>=x11-libs/cairo-1.0 |
155 |
) |
156 |
" |
157 |
|
158 |
DEPEND="${COMMONDEPEND} |
159 |
dev-util/pkgconfig |
160 |
x11-proto/damageproto |
161 |
x11-proto/xineramaproto |
162 |
" |
163 |
|
164 |
RDEPEND="${COMMONDEPEND} |
165 |
x11-apps/mesa-progs |
166 |
x11-apps/xvinfo |
167 |
" |
168 |
|
169 |
src_prepare() { |
170 |
|
171 |
echo "gtk/gnome/compiz-wm.desktop.in" >> "${S}/po/POTFILES.skip" |
172 |
echo "metadata/core.xml.in" >> "${S}/po/POTFILES.skip" |
173 |
|
174 |
if ! use gnome || ! use gconf; then |
175 |
epatch "${FILESDIR}"/${PN}-no-gconf.patch |
176 |
fi |
177 |
eautoreconf |
178 |
} |
179 |
|
180 |
src_configure() { |
181 |
local myconf= |
182 |
|
183 |
# We make gconf optional by itself, but only if gnome is also |
184 |
# enabled, otherwise we simply disable it. |
185 |
if use gnome; then |
186 |
myconf="${myconf} $(use_enable gconf)" |
187 |
else |
188 |
myconf="${myconf} --disable-gconf" |
189 |
fi |
190 |
|
191 |
econf --disable-dependency-tracking \ |
192 |
--enable-fast-install \ |
193 |
--disable-static \ |
194 |
--disable-gnome-keybindings \ |
195 |
--with-default-plugins \ |
196 |
$(use_enable svg librsvg) \ |
197 |
$(use_enable cairo annotate) \ |
198 |
$(use_enable dbus) \ |
199 |
$(use_enable dbus dbus-glib) \ |
200 |
$(use_enable fuse) \ |
201 |
$(use_enable gnome) \ |
202 |
$(use_enable gnome metacity) \ |
203 |
$(use_enable gtk) \ |
204 |
$(use_enable kde kde4) \ |
205 |
--disable-kde \ |
206 |
${myconf} |
207 |
} |
208 |
|
209 |
src_install() { |
210 |
emake DESTDIR="${D}" install || die "emake install failed" |
211 |
|
212 |
find "${D}" -name '*.la' -delete || die |
213 |
|
214 |
# Install compiz-manager |
215 |
dobin "${FILESDIR}/compiz-manager" || die "dobin failed" |
216 |
|
217 |
# Add the full-path to lspci |
218 |
sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager" || die "sed 1 failed" |
219 |
|
220 |
# Fix the hardcoded lib paths |
221 |
sed -i "s#/lib/#/$(get_libdir)/#g" "${D}/usr/bin/compiz-manager" || die "sed 2 failed" |
222 |
|
223 |
# Create gentoo's config file |
224 |
dodir /etc/xdg/compiz || die "dodir failed" |
225 |
|
226 |
cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager" |
227 |
COMPIZ_BIN_PATH="/usr/bin/" |
228 |
PLUGIN_PATH="/usr/$(get_libdir)/compiz/" |
229 |
LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2" |
230 |
LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2" |
231 |
KWIN="$(type -p kwin)" |
232 |
METACITY="$(type -p metacity)" |
233 |
SKIP_CHECKS="yes" |
234 |
EOF |
235 |
|
236 |
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" |
237 |
|
238 |
insinto "/usr/share/applications" |
239 |
doins "${FILESDIR}/compiz.desktop" || die "Failed to install compiz.desktop" |
240 |
} |
241 |
|
242 |
pkg_preinst() { |
243 |
use gnome && use gconf && gnome2_gconf_savelist |
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
use gnome && use gconf && gnome2_gconf_install |
248 |
|
249 |
ewarn "If you update to x11-wm/metacity-2.24 after you install ${P}," |
250 |
ewarn "gtk-window-decorator will crash until you reinstall ${PN} again." |
251 |
} |
252 |
|
253 |
pkg_prerm() { |
254 |
use gnome && gnome2_gconf_uninstall |
255 |
} |