/[gentoo-x86]/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild
Gentoo

Contents of /dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Sep 25 11:42:03 2012 UTC (2 years, 3 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Version bump, drop old. Make license more precise.

(Portage version: 2.2.0_alpha132/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/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild,v 1.11 2012/03/25 15:12:45 armin76 Exp $
4
5 EAPI="4"
6 GNOME_ORG_MODULE="glib"
7 PYTHON_DEPEND="2:2.5"
8 PYTHON_USE_WITH="xml"
9
10 inherit gnome.org multilib python
11
12 DESCRIPTION="GDBus code and documentation generator"
13 HOMEPAGE="http://www.gtk.org/"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
18 IUSE=""
19
20 DEPEND=""
21 RDEPEND="${DEPEND}"
22 # To prevent circular dependencies with glib[test]
23 PDEPEND=">=dev-libs/glib-${PV}:2"
24
25 S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
26
27 pkg_setup() {
28 python_set_active_version 2
29 python_pkg_setup
30 }
31
32 src_prepare() {
33 python_convert_shebangs 2 gdbus-codegen.in
34 sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \
35 -i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
36 sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
37 -i config.py || die "sed config.py failed"
38 }
39
40 src_test() {
41 elog "Skipping tests. This package is tested by dev-libs/glib"
42 elog "when merged with FEATURES=test"
43 }
44
45 src_install() {
46 insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
47
48 # Keep in sync with Makefile.am!
49 doins __init__.py \
50 codegen.py \
51 codegen_main.py \
52 codegen_docbook.py \
53 config.py \
54 dbustypes.py \
55 parser.py \
56 utils.py
57
58 newbin gdbus-codegen.in gdbus-codegen
59
60 doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
61 }
62
63 pkg_postinst() {
64 python_need_rebuild
65 python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen
66 }
67
68 pkg_postrm() {
69 python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen
70 }

  ViewVC Help
Powered by ViewVC 1.1.20