/[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.5 - (hide annotations) (download)
Tue Jul 31 22:36:58 2012 UTC (2 years, 1 month ago) by naota
Branch: MAIN
Changes since 1.4: +1 -3 lines
Remove warning about AddARGBGLXVisuals. #427608

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

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

  ViewVC Help
Powered by ViewVC 1.1.20