Add initial ebuild for pyclutter, python bindings for clutter
authorNirbheek Chauhan <nirbheek@gentoo.org>
Fri, 26 Feb 2010 22:42:28 +0000 (22:42 +0000)
committerNirbheek Chauhan <nirbheek@gentoo.org>
Fri, 26 Feb 2010 22:42:28 +0000 (22:42 +0000)
Package-Manager: portage-2.1.7.17/cvs/Linux i686

dev-python/pyclutter/ChangeLog [new file with mode: 0644]
dev-python/pyclutter/Manifest [new file with mode: 0644]
dev-python/pyclutter/files/pyclutter-fix-docs-install-data-hook.patch [new file with mode: 0644]
dev-python/pyclutter/metadata.xml [new file with mode: 0644]
dev-python/pyclutter/pyclutter-1.0.0.ebuild [new file with mode: 0644]

diff --git a/dev-python/pyclutter/ChangeLog b/dev-python/pyclutter/ChangeLog
new file mode 100644 (file)
index 0000000..f6a3d94
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-python/pyclutter
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyclutter/ChangeLog,v 1.1 2010/02/26 22:42:28 nirbheek Exp $
+
+*pyclutter-1.0.0 (26 Feb 2010)
+
+  26 Feb 2010; Nirbheek Chauhan <nirbheek@gentoo.org>
+  +pyclutter-1.0.0.ebuild,
+  +files/pyclutter-fix-docs-install-data-hook.patch, +metadata.xml:
+  Add initial ebuild for pyclutter, python bindings for clutter
+
diff --git a/dev-python/pyclutter/Manifest b/dev-python/pyclutter/Manifest
new file mode 100644 (file)
index 0000000..e371835
--- /dev/null
@@ -0,0 +1,5 @@
+AUX pyclutter-fix-docs-install-data-hook.patch 632 RMD160 a4d3e65e2cb2df9fe1b0c05c274aeedf1d3cafb0 SHA1 081bd2f0fa3341090c5a54be7b3a0b9a2e01691c SHA256 7c4441423b361bc672742baafeee907a17457e3decd1b3bd886f61791385638e
+DIST pyclutter-1.0.0.tar.bz2 422185 RMD160 0687f8f0b04fd535dad8c492cc88101de191f234 SHA1 067c18f470a4b7cb47726807ae5b368d5ec679f0 SHA256 1c916bc9ab1c98803fecc23ac0276cc02e95a047aa42f7defe05dca81912b537
+EBUILD pyclutter-1.0.0.ebuild 1096 RMD160 1dad2a7fe924f8fc2202b2ce417e59276445e77a SHA1 89fdc0d4a998e5b7e21c6c0b84482652de4c6f6d SHA256 fc75cad74293b9b621f4277a46e55ca722ee6b5facf95a9cb1e0bcf73e72f204
+MISC ChangeLog 461 RMD160 cee21d0d0249ff3a4b4e049aee85c870363e9541 SHA1 0fa8828a7b37c7a0f4459d2576a2761b924a8008 SHA256 ab119ae2750523069e19f1f029a18538c0720da718db0cf4efda4a4044cfb441
+MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1
diff --git a/dev-python/pyclutter/files/pyclutter-fix-docs-install-data-hook.patch b/dev-python/pyclutter/files/pyclutter-fix-docs-install-data-hook.patch
new file mode 100644 (file)
index 0000000..3f3c529
--- /dev/null
@@ -0,0 +1,25 @@
+Assumes $(PYGOBJECT_FIXXREF) is executable
+
+---
+--- docs/Makefile.am
++++ docs/Makefile.am
+@@ -82,7 +82,7 @@
+       fi
+ 
+ install-data-hook:
+-      @$(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(DESTDIR)$(TARGET_DIR)
++      python $(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(DESTDIR)$(TARGET_DIR)
+ 
+ uninstall-local:
+       rm -rf $(DESTDIR)$(TARGET_DIR)/*
+--- docs/Makefile.in
++++ docs/Makefile.in
+@@ -82,7 +82,7 @@
+       fi
+ 
+ install-data-hook:
+-      @$(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(DESTDIR)$(TARGET_DIR)
++      python $(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(DESTDIR)$(TARGET_DIR)
+ 
+ uninstall-local:
+       rm -rf $(DESTDIR)$(TARGET_DIR)/*
diff --git a/dev-python/pyclutter/metadata.xml b/dev-python/pyclutter/metadata.xml
new file mode 100644 (file)
index 0000000..da6fd63
--- /dev/null
@@ -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>
diff --git a/dev-python/pyclutter/pyclutter-1.0.0.ebuild b/dev-python/pyclutter/pyclutter-1.0.0.ebuild
new file mode 100644 (file)
index 0000000..a45fc47
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyclutter/pyclutter-1.0.0.ebuild,v 1.1 2010/02/26 22:42:28 nirbheek Exp $
+
+EAPI="2"
+
+inherit eutils python clutter
+
+DESCRIPTION="Python bindings for Clutter"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+SLOT="1.0"
+RDEPEND=">=dev-lang/python-2.5
+       >=dev-python/pygtk-2.8.0
+       >=dev-python/pycairo-1.0.2
+       >=media-libs/clutter-1.0.0:${SLOT}"
+DEPEND="${RDEPEND}
+       doc? ( dev-libs/libxslt )"
+EXAMPLES="examples/{*.py,*.png}"
+
+# XXX: If eautoreconf, use AT_M4DIR=build/autotools
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-fix-docs-install-data-hook.patch"
+
+       ln -sf $(type -P true) py-compile
+}
+
+src_configure() {
+       local myconf="
+               $(use_enable doc docs)"
+
+       econf ${myconf}
+}
+
+src_install() {
+       # FIXME: Parallel make failure in emake install
+       MAKEOPTS="-j1" clutter_src_install
+}
+
+pkg_postinst() {
+       python_mod_optimize $(python_get_sitedir)/clutter/*
+       python_need_rebuild
+}
+
+pkg_postrm() {
+       python_mod_cleanup /usr/lib*/python*/site-packages/clutter/*
+}