From 38cf94c67a71f129bc06f1b2b2b10a166cd57d17 Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Sat, 2 Jan 2010 05:40:18 +0100 Subject: [PATCH] initial python-ptrace exheres --- .../python-ptrace-0.6.2.exheres-0 | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/dev-libs/python-ptrace/python-ptrace-0.6.2.exheres-0 diff --git a/packages/dev-libs/python-ptrace/python-ptrace-0.6.2.exheres-0 b/packages/dev-libs/python-ptrace/python-ptrace-0.6.2.exheres-0 new file mode 100644 index 0000000..326fae9 --- /dev/null +++ b/packages/dev-libs/python-ptrace/python-ptrace-0.6.2.exheres-0 @@ -0,0 +1,44 @@ +# Copyright 2009 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +require distutils + +SUMMARY="A debugger using python." +HOMEPAGE="http://bitbucket.org/haypo/python-ptrace/" +DOWNLOADS="${HOMEPAGE}/get/${PNV}.tar.bz2" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" + +REMOTE_IDS="freshmeat:python-ptrace pypi:python-ptrace" + +UPSTREAM_DOCUMENTATION="${HOMEPAGE}/wiki/Home [[ description = [ wiki ] ]]" + +WORK="${WORKBASE}/python-ptrace" + +do_phase() { + edo ln -sf setup.py{.orig,} + "$@" + edo ln -sf setup.py{.cptrace,} + "$@" +} + +src_prepare() { + edo mv setup.py{,.orig} + edo mv setup_cptrace.py setup.py.cptrace + + do_phase distutils_src_prepare +} + +src_compile() { + do_phase distutils_src_compile +} + +src_install() { + do_phase distutils_src_install + + insinto /usr/share/pyinotify/examples + doins -r examples/* +} +