1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 inherit autotools bzr gnome2 python
12 DESCRIPTION
="Fully customizable dock for the Free desktop"
13 HOMEPAGE
="https://launchpad.net/awn"
15 LICENSE
="GPL-2 LGPL-2.1 CCPL-Attribution-ShareAlike-3.0"
23 >=dev-libs/glib-2.16.0
27 >=x11-libs/gtk+-2.12.0
29 x11-libs/libXcomposite
32 x11-libs/libdesktop-agnostic[gconf?]
33 >=x11-libs/libwnck-2.22
36 RDEPEND
="${COMMON_DEPEND}
39 DEPEND
="${COMMON_DEPEND}
40 >=dev-util/gtk-doc-1.4
41 >=dev-util/intltool-0.35.5
43 x11-proto/compositeproto
47 gconf? ( gnome-base/gconf:2 )
48 vala? ( dev-lang/vala )
51 DOCS
="AUTHORS ChangeLog NEWS README TODO"
58 gtkdocize || die
"gtkdocize failed"
59 intltoolize
--copy --force || die
"intltoolize failed"
60 eautoreconf || die
"eautoreconf failed"
61 # disable pyc compiling - from gnome-python-common.eclass
62 if [[ -f py-compile
]]; then
64 ln -s $
(type -P true
) py-compile
69 econf $
(use_enable doc gtk-doc
) \
70 $
(use_enable gconf schemas-install
) \
73 --disable-pymod-checks \
74 --enable-extra-version=-gentoo-desktop-effects
81 ewarn
"AWN will be of no use if you do not have a compositing manager."
83 python_mod_optimize $
(python_get_sitedir
)/awn
88 python_mod_cleanup awn