summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2012-07-03 13:40:57 +0300
committerPriit Laes <plaes@plaes.org>2012-07-03 13:40:57 +0300
commit893c0f5c071c752411cff6a4afcd8a6d6190d4fb (patch)
treee80c520aaaf913355e7d637f46de3bb97fc55aae /dev-util
parentdev-libs/glib: Add 2.33.3 to overlay (diff)
downloadgnome-893c0f5c071c752411cff6a4afcd8a6d6190d4fb.tar.gz
gnome-893c0f5c071c752411cff6a4afcd8a6d6190d4fb.tar.bz2
gnome-893c0f5c071c752411cff6a4afcd8a6d6190d4fb.zip
dev-libs/gdbus-codegen: Add 2.33.3 to overlay
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/gdbus-codegen/Manifest2
-rw-r--r--dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild80
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest
index 0e1c0438..4d2cd01f 100644
--- a/dev-util/gdbus-codegen/Manifest
+++ b/dev-util/gdbus-codegen/Manifest
@@ -1 +1,3 @@
+DIST glib-2.33.3.tar.xz 6188368 RMD160 c23083ed1734ee24df0b9f7b05d5a0bd89abdaf1 SHA1 329bff878af6d7b8deadc80e16dbdca04dc59f8a SHA256 4ae2695dff7f075e746c5dbcbed9e5f7afb7b11918201dc8e82609a610db0990
+EBUILD gdbus-codegen-2.33.3.ebuild 1798 RMD160 f0e066125c5de6cabade286a2ad4584aad2febeb SHA1 19e259465d9149d4ccdce2a30b42f5b022d4df3b SHA256 3a57b911304e7c83127ea55d28f3a2fd7ee86541468785aed92f0a50ad2ee859
EBUILD gdbus-codegen-9999.ebuild 1798 RMD160 f0e066125c5de6cabade286a2ad4584aad2febeb SHA1 19e259465d9149d4ccdce2a30b42f5b022d4df3b SHA256 3a57b911304e7c83127ea55d28f3a2fd7ee86541468785aed92f0a50ad2ee859
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild
new file mode 100644
index 00000000..ff2d6f4f
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.33.3.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+GNOME_ORG_MODULE="glib"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="xml"
+
+inherit multilib python
+if [[ ${PV} = 9999 ]]; then
+ EGIT_REPO_URI="git://git.gnome.org/${GNOME_ORG_MODULE}"
+ inherit git-2
+else
+ inherit gnome.org
+fi
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="http://www.gtk.org/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
+fi
+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
+ python_pkg_setup
+}
+
+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. This package is tested by dev-libs/glib"
+ elog "when merged with FEATURES=test"
+}
+
+src_install() {
+ insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
+
+ # Keep in sync with gio/gdbus-2.0/codegen/Makefile.am!
+ doins __init__.py \
+ codegen.py \
+ codegen_main.py \
+ codegen_docbook.py \
+ config.py \
+ dbustypes.py \
+ parser.py \
+ utils.py
+
+ newbin gdbus-codegen.in gdbus-codegen
+
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
+}
+
+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
+}