1 |
commit: 893c0f5c071c752411cff6a4afcd8a6d6190d4fb |
2 |
Author: Priit Laes <plaes <AT> plaes <DOT> org> |
3 |
AuthorDate: Tue Jul 3 10:40:57 2012 +0000 |
4 |
Commit: Priit Laes <plaes <AT> plaes <DOT> org> |
5 |
CommitDate: Tue Jul 3 10:40:57 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=893c0f5c |
7 |
|
8 |
dev-libs/gdbus-codegen: Add 2.33.3 to overlay |
9 |
|
10 |
--- |
11 |
dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild | 80 ++++++++++++++++++++ |
12 |
1 files changed, 80 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..ff2d6f4 |
17 |
--- /dev/null |
18 |
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild |
19 |
@@ -0,0 +1,80 @@ |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI="4" |
25 |
+GNOME_ORG_MODULE="glib" |
26 |
+PYTHON_DEPEND="2:2.5" |
27 |
+PYTHON_USE_WITH="xml" |
28 |
+ |
29 |
+inherit multilib python |
30 |
+if [[ ${PV} = 9999 ]]; then |
31 |
+ EGIT_REPO_URI="git://git.gnome.org/${GNOME_ORG_MODULE}" |
32 |
+ inherit git-2 |
33 |
+else |
34 |
+ inherit gnome.org |
35 |
+fi |
36 |
+ |
37 |
+DESCRIPTION="GDBus code and documentation generator" |
38 |
+HOMEPAGE="http://www.gtk.org/" |
39 |
+ |
40 |
+LICENSE="LGPL-2" |
41 |
+SLOT="0" |
42 |
+if [[ ${PV} = 9999 ]]; then |
43 |
+ KEYWORDS="" |
44 |
+else |
45 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux" |
46 |
+fi |
47 |
+IUSE="" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+RDEPEND="${DEPEND}" |
51 |
+# To prevent circular dependencies with glib[test] |
52 |
+PDEPEND=">=dev-libs/glib-${PV}:2" |
53 |
+ |
54 |
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen" |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ python_set_active_version 2 |
58 |
+ python_pkg_setup |
59 |
+} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ python_convert_shebangs 2 gdbus-codegen.in |
63 |
+ sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \ |
64 |
+ -i gdbus-codegen.in || die "sed gdbus-codegen.in failed" |
65 |
+ sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \ |
66 |
+ -i config.py || die "sed config.py failed" |
67 |
+} |
68 |
+ |
69 |
+src_test() { |
70 |
+ elog "Skipping tests. This package is tested by dev-libs/glib" |
71 |
+ elog "when merged with FEATURES=test" |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ insinto "/usr/$(get_libdir)/gdbus-2.0/codegen" |
76 |
+ |
77 |
+ # Keep in sync with gio/gdbus-2.0/codegen/Makefile.am! |
78 |
+ doins __init__.py \ |
79 |
+ codegen.py \ |
80 |
+ codegen_main.py \ |
81 |
+ codegen_docbook.py \ |
82 |
+ config.py \ |
83 |
+ dbustypes.py \ |
84 |
+ parser.py \ |
85 |
+ utils.py |
86 |
+ |
87 |
+ newbin gdbus-codegen.in gdbus-codegen |
88 |
+ |
89 |
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ python_need_rebuild |
94 |
+ python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen |
95 |
+} |
96 |
+ |
97 |
+pkg_postrm() { |
98 |
+ python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen |
99 |
+} |