/[gentoo-x86]/dev-libs/keybinder/keybinder-0.3.0-r200.ebuild
Gentoo

Contents of /dev-libs/keybinder/keybinder-0.3.0-r200.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Nov 28 09:48:45 2012 UTC (6 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
arm/ppc/ppc64 stable

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/keybinder/keybinder-0.3.0-r200.ebuild,v 1.8 2012/11/19 21:12:07 maekke Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2:2.6"
8
9 inherit eutils python
10
11 DESCRIPTION="A library for registering global keyboard shortcuts"
12 HOMEPAGE="http://kaizer.se/wiki/keybinder/"
13 SRC_URI="http://kaizer.se/publicfiles/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 arm ~hppa ~mips ppc ppc64 x86"
18 IUSE="+introspection lua python"
19
20 RDEPEND=">=x11-libs/gtk+-2.20:2
21 x11-libs/libX11
22 x11-libs/libXext
23 x11-libs/libXrender
24 introspection? ( dev-libs/gobject-introspection )
25 lua? ( >=dev-lang/lua-5.1 )
26 python? (
27 >=dev-python/pygobject-2.15.3:2
28 >=dev-python/pygtk-2.12
29 )"
30 DEPEND="${RDEPEND}
31 virtual/pkgconfig"
32
33 DOCS="AUTHORS NEWS README"
34
35 pkg_setup() {
36 if use python; then
37 python_set_active_version 2
38 python_pkg_setup
39 fi
40 }
41
42 src_prepare() {
43 >py-compile
44 }
45
46 src_configure() {
47 local myconf
48 use lua || myconf='--disable-lua'
49
50 econf \
51 $(use_enable introspection) \
52 $(use_enable python) \
53 ${myconf} \
54 --with-html-dir=/usr/share/doc/${PF}/html
55 }
56
57 src_install() {
58 default
59 prune_libtool_files --all
60 dosym /usr/share/doc/${PF}/html/${PN} /usr/share/gtk-doc/html/${PN}
61 }
62
63 pkg_postinst() {
64 use python && python_mod_optimize ${PN}
65 }
66
67 pkg_postrm() {
68 use python && python_mod_cleanup ${PN}
69 }

  ViewVC Help
Powered by ViewVC 1.1.20