2010-01-02 05:40:18 +01:00
|
|
|
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
|
|
|
|
# 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 ] ]]"
|
|
|
|
|
2011-12-29 20:13:08 +01:00
|
|
|
WORK="${WORKBASE}/haypo-python-ptrace-6382a4d68daa"
|
2010-01-02 05:40:18 +01:00
|
|
|
|
|
|
|
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/*
|
|
|
|
}
|
|
|
|
|