/[gentoo-x86]/x11-wm/compiz/compiz-0.8.8.ebuild
Gentoo

Contents of /x11-wm/compiz/compiz-0.8.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Sep 12 18:34:56 2012 UTC (2 years ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Revision bump, add missing run-time dependencies, needed for compiz-manager script

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.8.8.ebuild,v 1.7 2012/09/12 18:14:41 pinkbyte Exp $
4
5 EAPI=4
6 inherit autotools eutils gnome2-utils
7
8 DESCRIPTION="OpenGL window and compositing manager"
9 HOMEPAGE="http://www.compiz.org/"
10 SRC_URI="http://releases.compiz.org/${PV}/${P}.tar.bz2"
11
12 LICENSE="GPL-2 LGPL-2.1 MIT"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15 IUSE="+cairo dbus fuse gnome gconf gtk kde +svg"
16
17 COMMONDEPEND="
18 >=dev-libs/glib-2
19 dev-libs/libxml2
20 dev-libs/libxslt
21 media-libs/libpng:0
22 >=media-libs/mesa-6.5.1-r1
23 >=x11-base/xorg-server-1.1.1-r1
24 >=x11-libs/libX11-1.4
25 x11-libs/libxcb
26 x11-libs/libXcomposite
27 x11-libs/libXdamage
28 x11-libs/libXinerama
29 x11-libs/libXrandr
30 x11-libs/libICE
31 x11-libs/libSM
32 >=x11-libs/libXrender-0.8.4
33 >=x11-libs/startup-notification-0.7
34 cairo? (
35 x11-libs/cairo[X]
36 )
37 dbus? (
38 >=sys-apps/dbus-1.0
39 dev-libs/dbus-glib
40 )
41 fuse? ( sys-fs/fuse )
42 gnome? (
43 >=gnome-base/gnome-control-center-2.16.1:2
44 gnome-base/gnome-desktop:2
45 gconf? ( gnome-base/gconf:2 )
46 )
47 gtk? (
48 >=x11-libs/gtk+-2.8.0:2
49 >=x11-libs/libwnck-2.18.3:1
50 x11-libs/pango
51 )
52 kde? (
53 || (
54 >=kde-base/kwin-4.2.0
55 kde-base/kwin:live
56 )
57 )
58 svg? (
59 >=gnome-base/librsvg-2.14.0:2
60 >=x11-libs/cairo-1.0
61 )
62 "
63
64 DEPEND="${COMMONDEPEND}
65 virtual/pkgconfig
66 x11-proto/damageproto
67 x11-proto/xineramaproto
68 "
69
70 RDEPEND="${COMMONDEPEND}
71 x11-apps/mesa-progs
72 x11-apps/xvinfo
73 "
74
75 src_prepare() {
76 echo gtk/gnome/compiz-wm.desktop.in >> po/POTFILES.skip
77 echo metadata/core.xml.in >> po/POTFILES.skip
78
79 if ! use gnome || ! use gconf; then
80 epatch "${FILESDIR}"/${PN}-no-gconf.patch
81 fi
82 if use kde; then
83 # patch for KDE 4.8 compatibility. Picked up from stuff overlay
84 has_version ">=kde-base/kwin-4.8" && epatch "${FILESDIR}"/${PN}-kde-4.8.patch
85 # patch for KDE 4.9 compatibility. Picked up from http://cgit.compiz.org
86 has_version ">=kde-base/kwin-4.9" && epatch "${FILESDIR}"/${PN}-kde-4.9.patch
87 fi
88 eautoreconf
89 }
90
91 src_configure() {
92 local myconf
93
94 # We make gconf optional by itself, but only if gnome is also
95 # enabled, otherwise we simply disable it.
96 if use gnome; then
97 myconf="${myconf} $(use_enable gconf)"
98 else
99 myconf="${myconf} --disable-gconf"
100 fi
101
102 econf \
103 --enable-fast-install \
104 --disable-static \
105 --disable-gnome-keybindings \
106 --with-default-plugins \
107 $(use_enable svg librsvg) \
108 $(use_enable cairo annotate) \
109 $(use_enable dbus) \
110 $(use_enable dbus dbus-glib) \
111 $(use_enable fuse) \
112 $(use_enable gnome) \
113 $(use_enable gnome metacity) \
114 $(use_enable gtk) \
115 $(use_enable kde kde4) \
116 --disable-kde \
117 ${myconf}
118 }
119
120 src_install() {
121 emake DESTDIR="${D}" install
122
123 prune_libtool_files --all
124
125 # Install compiz-manager
126 dobin "${FILESDIR}"/compiz-manager
127
128 # Add the full-path to lspci
129 sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager" || die
130
131 # Fix the hardcoded lib paths
132 sed -i "s#/lib/#/$(get_libdir)/#g" "${D}/usr/bin/compiz-manager" || die
133
134 # Create gentoo's config file
135 dodir /etc/xdg/compiz
136
137 cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager"
138 COMPIZ_BIN_PATH="/usr/bin/"
139 PLUGIN_PATH="/usr/$(get_libdir)/compiz/"
140 LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
141 LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
142 KWIN="$(type -p kwin)"
143 METACITY="$(type -p metacity)"
144 SKIP_CHECKS="yes"
145 EOF
146
147 dodoc AUTHORS ChangeLog NEWS README TODO
148
149 domenu "${FILESDIR}"/compiz.desktop
150 }
151
152 pkg_preinst() {
153 use gnome && use gconf && gnome2_gconf_savelist
154 }
155
156 pkg_postinst() {
157 use gnome && use gconf && gnome2_gconf_install
158
159 ewarn "If you update to x11-wm/metacity-2.24 after you install ${P},"
160 ewarn "gtk-window-decorator will crash until you reinstall ${PN} again."
161 }
162
163 pkg_prerm() {
164 use gnome && gnome2_gconf_uninstall
165 }

  ViewVC Help
Powered by ViewVC 1.1.20