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

Contents of /x11-wm/compiz/compiz-0.7.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Dec 31 16:44:58 2008 UTC (10 years, 4 months ago) by jmbsvicetto
Branch: MAIN
Fixed the hardcoded /lib path in compiz-manager. Fixes bug #253246.
(Portage version: 2.2_rc19/cvs/Linux 2.6.28-gentoo x86_64)

1 # Copyright 1999-2008 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.7.8-r1.ebuild,v 1.2 2008/12/03 02:18:35 jmbsvicetto Exp $
4
5 EAPI="2"
6
7 inherit autotools eutils gnome2-utils multilib
8
9 DESCRIPTION="3D composite and windowmanager"
10 HOMEPAGE="http://www.compiz.org/"
11 SRC_URI="http://xorg.freedesktop.org/archive/individual/app/${P}.tar.gz"
12
13 LICENSE="GPL-2 LGPL-2.1 MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+cairo dbus fuse gnome gtk kde kde4 +svg"
17
18 DEPEND="
19 dev-libs/glib:2
20 dev-libs/libxml2
21 dev-libs/libxslt
22 >=media-libs/glitz-0.5.6
23 media-libs/libpng
24 >=media-libs/mesa-6.5.1-r1
25 >=x11-base/xorg-server-1.1.1-r1
26 x11-libs/libX11[xcb]
27 x11-libs/libxcb
28 x11-libs/libXcomposite
29 x11-libs/libXdamage
30 x11-libs/libXinerama
31 x11-libs/libXrandr
32 x11-libs/libICE
33 x11-libs/libSM
34 >=x11-libs/libXrender-0.8.4
35 >=x11-libs/startup-notification-0.7
36 cairo? (
37 x11-libs/cairo[X]
38 )
39 dbus? ( >=sys-apps/dbus-1.0 )
40 fuse? ( sys-fs/fuse )
41 gnome? (
42 >=gnome-base/gnome-control-center-2.16.1:2
43 gnome-base/gnome-desktop
44 gnome-base/gconf:2
45 )
46 gtk? (
47 >=x11-libs/gtk+-2.8.0:2
48 >=x11-libs/libwnck-2.18.3
49 x11-libs/pango
50 )
51 kde? (
52 || ( kde-base/kwin:3.5
53 kde-base/kdebase:3.5
54 )
55 dev-libs/dbus-qt3-old
56 )
57 kde4? (
58 || (
59 kde-base/kwin:4.2
60 kde-base/kwin:live
61 )
62 )
63 svg? (
64 >=gnome-base/librsvg-2.14.0:2
65 >=x11-libs/cairo-1.0
66 )
67 "
68
69 RDEPEND="${DEPEND}
70 x11-apps/mesa-progs
71 x11-apps/xvinfo"
72
73 DEPEND="${DEPEND}
74 dev-util/pkgconfig
75 x11-proto/damageproto
76 x11-proto/xineramaproto"
77
78 src_prepare() {
79
80 use kde4 && epatch "${FILESDIR}/${P}-framesvg.patch"
81 use gnome || {
82 epatch "${FILESDIR}"/${PN}-no-gconf.patch
83 ln -s "${ROOT}"/usr/share/aclocal/gconf-2.m4 acinclude.m4
84
85 # required to apply the above patch
86 intltoolize --copy --force || die "intltoolize failed"
87 eautoreconf || die "eautoreconf failed"
88 }
89 }
90
91 src_configure() {
92 econf \
93 --disable-gnome-keybindings \
94 --enable-librsvg \
95 --with-default-plugins \
96 $(use_enable cairo annotate) \
97 $(use_enable dbus) \
98 $(use_enable dbus dbus-glib) \
99 $(use_enable fuse) \
100 $(use_enable gnome) \
101 $(use_enable gnome gconf) \
102 $(use_enable gnome metacity) \
103 $(use_enable gtk) \
104 $(use_enable kde) \
105 $(use_enable kde4) \
106 || die "econf failed"
107 }
108
109 src_install() {
110 emake DESTDIR="${D}" install || die "emake install failed"
111
112 # Install compiz-manager
113 dobin "${FILESDIR}/compiz-manager" || die "dobin failed"
114
115 # Add the full-path to lspci
116 sed -i "s#lspci#/usr/sbin/lspci#" "${D}/usr/bin/compiz-manager"
117
118 # Fix the hardcoded lib paths
119 sed -i "s#/lib/#/$(get_libdir)/#g" "${D}/usr/bin/compiz-manager"
120
121 # Create gentoo's config file
122 dodir /etc/xdg/compiz
123
124 cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager"
125 COMPIZ_BIN_PATH="/usr/bin/"
126 PLUGIN_PATH="/usr/$(get_libdir)/compiz/"
127 LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2"
128 LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2"
129 KWIN="$(type -p kwin)"
130 METACITY="$(type -p metacity)"
131 SKIP_CHECKS="yes"
132 EOF
133
134 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
135 }
136
137 pkg_postinst() {
138 use gnome && gnome2_gconf_install
139
140 ewarn "If you update to x11-wm/metacity-2.24 after you install ${P},"
141 ewarn "gtk-window-decorator will crash until you reinstall ${PN} again."
142 }
143
144 pkg_prerm() {
145 use gnome && gnome2_gconf_uninstall
146 }

  ViewVC Help
Powered by ViewVC 1.1.20