summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-09-27 13:02:37 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-09-27 13:02:37 +0000
commit9ad7c319c1eb2ba1d77669c2542d8f315fb9e664 (patch)
tree25ff1cfc183d43713b955d6b8485235ba5c86301 /dev-util
parentBump to 2.30, from the GNOME overlay. Ebuild updates and patches by tetromino. (diff)
downloadgentoo-2-9ad7c319c1eb2ba1d77669c2542d8f315fb9e664.tar.gz
gentoo-2-9ad7c319c1eb2ba1d77669c2542d8f315fb9e664.tar.bz2
gentoo-2-9ad7c319c1eb2ba1d77669c2542d8f315fb9e664.zip
Move from GNOME overlay for GNOME 3.2. Ebuild by tetromino.
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/gdbus-codegen/ChangeLog10
-rw-r--r--dev-util/gdbus-codegen/gdbus-codegen-2.30.0.ebuild69
-rw-r--r--dev-util/gdbus-codegen/metadata.xml5
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/gdbus-codegen/ChangeLog b/dev-util/gdbus-codegen/ChangeLog
new file mode 100644
index 000000000000..53408a6fca92
--- /dev/null
+++ b/dev-util/gdbus-codegen/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/gdbus-codegen
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbus-codegen/ChangeLog,v 1.1 2011/09/27 13:02:37 nirbheek Exp $
+
+*gdbus-codegen-2.30.0 (27 Sep 2011)
+
+ 27 Sep 2011; Nirbheek Chauhan <nirbheek@gentoo.org>
+ +gdbus-codegen-2.30.0.ebuild, +metadata.xml:
+ Move from GNOME overlay for GNOME 3.2. Ebuild by tetromino.
+
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.30.0.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.30.0.ebuild
new file mode 100644
index 000000000000..b71e05ac4287
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.30.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbus-codegen/gdbus-codegen-2.30.0.ebuild,v 1.1 2011/09/27 13:02:37 nirbheek Exp $
+
+EAPI="3"
+GNOME_ORG_MODULE="glib"
+GNOME_TARBALL_SUFFIX="xz"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="xml"
+
+inherit gnome.org multilib python
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="http://www.gtk.org/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh
+~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+# To prevent circular dependencies with glib[test]
+PDEPEND=">=dev-libs/glib-${PV}:2"
+
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ python_convert_shebangs 2 gdbus-codegen.in
+ sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \
+ -i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
+ sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
+ -i config.py || die "sed config.py failed"
+}
+
+src_test() {
+ elog "Skipping tests. To test ${PN}, emerge dev-libs/glib"
+ elog "with FEATURES=test"
+}
+
+src_install() {
+ insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
+ # keep in sync with Makefile.am
+ doins __init__.py \
+ codegen.py \
+ codegen_main.py \
+ codegen_docbook.py \
+ config.py \
+ dbustypes.py \
+ parser.py \
+ utils.py || die "doins failed"
+ newbin gdbus-codegen.in gdbus-codegen || die "dobin failed"
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" ||
+ die "doman failed"
+}
+
+pkg_postinst() {
+ python_need_rebuild
+ python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen
+}
diff --git a/dev-util/gdbus-codegen/metadata.xml b/dev-util/gdbus-codegen/metadata.xml
new file mode 100644
index 000000000000..6e0e2ecb48ca
--- /dev/null
+++ b/dev-util/gdbus-codegen/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+</pkgmetadata>