Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-util/gdbus-codegen/
Date: Sat, 31 Dec 2011 03:12:30
Message-Id: 1acdb5df5c14fbe284607cc34c4a5eabe8de7cb3.tetromino@gentoo
1 commit: 1acdb5df5c14fbe284607cc34c4a5eabe8de7cb3
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 31 03:11:45 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Sat Dec 31 03:11:45 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=1acdb5df
7
8 dev-util/gdbus-codegen: add 2.31.6
9
10 ---
11 dev-util/gdbus-codegen/gdbus-codegen-2.31.6.ebuild | 70 ++++++++++++++++++++
12 1 files changed, 70 insertions(+), 0 deletions(-)
13
14 diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.31.6.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.31.6.ebuild
15 new file mode 100644
16 index 0000000..25622a9
17 --- /dev/null
18 +++ b/dev-util/gdbus-codegen/gdbus-codegen-2.31.6.ebuild
19 @@ -0,0 +1,70 @@
20 +# Copyright 1999-2011 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild,v 1.3 2011/12/29 17:36:36 pacho Exp $
23 +
24 +EAPI="4"
25 +GNOME_ORG_MODULE="glib"
26 +PYTHON_DEPEND="2:2.5"
27 +PYTHON_USE_WITH="xml"
28 +
29 +inherit gnome.org multilib python
30 +
31 +DESCRIPTION="GDBus code and documentation generator"
32 +HOMEPAGE="http://www.gtk.org/"
33 +
34 +LICENSE="LGPL-2"
35 +SLOT="0"
36 +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
37 +IUSE=""
38 +
39 +DEPEND=""
40 +RDEPEND="${DEPEND}"
41 +# To prevent circular dependencies with glib[test]
42 +PDEPEND=">=dev-libs/glib-${PV}:2"
43 +
44 +S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
45 +
46 +pkg_setup() {
47 + python_set_active_version 2
48 + python_pkg_setup
49 +}
50 +
51 +src_prepare() {
52 + python_convert_shebangs 2 gdbus-codegen.in
53 + sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \
54 + -i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
55 + sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
56 + -i config.py || die "sed config.py failed"
57 +}
58 +
59 +src_test() {
60 + elog "Skipping tests. To test ${PN}, emerge dev-libs/glib"
61 + elog "with FEATURES=test"
62 +}
63 +
64 +src_install() {
65 + insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
66 +
67 + # Keep in sync with Makefile.am!
68 + doins __init__.py \
69 + codegen.py \
70 + codegen_main.py \
71 + codegen_docbook.py \
72 + config.py \
73 + dbustypes.py \
74 + parser.py \
75 + utils.py
76 +
77 + newbin gdbus-codegen.in gdbus-codegen
78 +
79 + doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
80 +}
81 +
82 +pkg_postinst() {
83 + python_need_rebuild
84 + python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen
85 +}
86 +
87 +pkg_postrm() {
88 + python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen
89 +}