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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 11 07:45:27 2012 UTC (22 months, 2 weeks ago) by pinkbyte
Branch: MAIN
Changes since 1.2: +2 -1 lines
Add missing virtual/glu dependency wrt bug #437922

(Portage version: 2.2.0_alpha136/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-r1.ebuild,v 1.2 2012/09/12 19:27:22 pinkbyte Exp $
4
5 EAPI=4
6 inherit autotools eutils gnome2-utils toolchain-funcs
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 virtual/glu
35 cairo? (
36 x11-libs/cairo[X]
37 )
38 dbus? (
39 >=sys-apps/dbus-1.0
40 dev-libs/dbus-glib
41 )
42 fuse? ( sys-fs/fuse )
43 gnome? (
44 >=gnome-base/gnome-control-center-2.16.1:2
45 gnome-base/gnome-desktop:2
46 gconf? ( gnome-base/gconf:2 )
47 )
48 gtk? (
49 >=x11-libs/gtk+-2.8.0:2
50 >=x11-libs/libwnck-2.18.3:1
51 x11-libs/pango
52 )
53 kde? (
54 || (
55 >=kde-base/kwin-4.2.0
56 kde-base/kwin:live
57 )
58 )
59 svg? (
60 >=gnome-base/librsvg-2.14.0:2
61 >=x11-libs/cairo-1.0
62 )
63 "
64
65 DEPEND="${COMMONDEPEND}
66 virtual/pkgconfig
67 x11-proto/damageproto
68 x11-proto/xineramaproto
69 "
70
71 RDEPEND="${COMMONDEPEND}
72 x11-apps/mesa-progs
73 x11-apps/xdpyinfo
74 x11-apps/xset
75 x11-apps/xvinfo
76 "
77
78 src_prepare() {
79 echo gtk/gnome/compiz-wm.desktop.in >> po/POTFILES.skip
80 echo metadata/core.xml.in >> po/POTFILES.skip
81
82 # Patch for compatibility with gcc 4.7 or higher
83 [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -ge 7 ]] && epatch "${FILESDIR}"/${PN}-gcc-4.7.patch
84
85 if ! use gnome || ! use gconf; then
86 epatch "${FILESDIR}"/${PN}-no-gconf.patch
87 fi
88 if use kde; then
89 # patch for KDE 4.8 compatibility. Picked up from stuff overlay
90 has_version ">=kde-base/kwin-4.8" && epatch "${FILESDIR}"/${PN}-kde-4.8.patch
91 # patch for KDE 4.9 compatibility. Picked up from http://cgit.compiz.org
92 has_version ">=kde-base/kwin-4.9" && epatch "${FILESDIR}"/${PN}-kde-4.9.patch
93 fi
94 eautoreconf
95 }
96
97 src_configure() {
98 local myconf
99
100 # We make gconf optional by itself, but only if gnome is also
101 # enabled, otherwise we simply disable it.
102 if use gnome; then
103 myconf="${myconf} $(use_enable gconf)"
104 else
105 myconf="${myconf} --disable-gconf"
106 fi
107
108 econf \
109 --enable-fast-install \
110 --disable-static \
111 --disable-gnome-keybindings \
112 --with-default-plugins \
113 $(use_enable svg librsvg) \
114 $(use_enable cairo annotate) \
115 $(use_enable dbus) \
116 $(use_enable dbus dbus-glib) \
117 $(use_enable fuse) \
118 $(use_enable gnome) \
119 $(use_enable gnome metacity) \
120 $(use_enable gtk) \
121 $(use_enable kde kde4) \
122 --disable-kde \
123 ${myconf}
124 }
125
126 src_install() {
127 emake DESTDIR="${D}" install
128
129 prune_libtool_files --all
130
131 # Install compiz-manager
132 dobin "${FILESDIR}"/compiz-manager
133
134 # Add the full-path to lspci
135 sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager" || die
136
137 # Fix the hardcoded lib paths
138 sed -i "s#/lib/#/$(get_libdir)/#g" "${D}/usr/bin/compiz-manager" || die
139
140 # Create gentoo's config file
141 dodir /etc/xdg/compiz
142
143 cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager"
144 COMPIZ_BIN_PATH="/usr/bin/"
145 PLUGIN_PATH="/usr/$(get_libdir)/compiz/"
146 LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
147 LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.so.1.2"
148 KWIN="$(type -p kwin)"
149 METACITY="$(type -p metacity)"
150 SKIP_CHECKS="yes"
151 EOF
152
153 dodoc AUTHORS ChangeLog NEWS README TODO
154
155 domenu "${FILESDIR}"/compiz.desktop
156 }
157
158 pkg_preinst() {
159 use gnome && use gconf && gnome2_gconf_savelist
160 }
161
162 pkg_postinst() {
163 use gnome && use gconf && gnome2_gconf_install
164
165 ewarn "If you update to x11-wm/metacity-2.24 after you install ${P},"
166 ewarn "gtk-window-decorator will crash until you reinstall ${PN} again."
167 }
168
169 pkg_prerm() {
170 use gnome && gnome2_gconf_uninstall
171 }

  ViewVC Help
Powered by ViewVC 1.1.20