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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 1 20:21:01 2012 UTC (2 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, remove old.

(Portage version: 2.1.10.57/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.32.0.ebuild,v 1.2 2012/03/25 03:48:42 nirbheek 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
18 ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
19 IUSE=""
20
21 DEPEND=""
22 RDEPEND="${DEPEND}"
23 # To prevent circular dependencies with glib[test]
24 PDEPEND=">=dev-libs/glib-${PV}:2"
25
26 S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
27
28 pkg_setup() {
29 python_set_active_version 2
30 python_pkg_setup
31 }
32
33 src_prepare() {
34 python_convert_shebangs 2 gdbus-codegen.in
35 sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \
36 -i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
37 sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
38 -i config.py || die "sed config.py failed"
39 }
40
41 src_test() {
42 elog "Skipping tests. This package is tested by dev-libs/glib"
43 elog "when merged with FEATURES=test"
44 }
45
46 src_install() {
47 insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
48
49 # Keep in sync with gio/gdbus-2.0/codegen/Makefile.am!
50 doins __init__.py \
51 codegen.py \
52 codegen_main.py \
53 codegen_docbook.py \
54 config.py \
55 dbustypes.py \
56 parser.py \
57 utils.py
58
59 newbin gdbus-codegen.in gdbus-codegen
60
61 doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
62 }
63
64 pkg_postinst() {
65 python_need_rebuild
66 python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen
67 }
68
69 pkg_postrm() {
70 python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen
71 }

  ViewVC Help
Powered by ViewVC 1.1.20