1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="An Integrated Development Environment for dabo"
8 HOMEPAGE="http://dabodev.com/"
9 SRC_URI="ftp://dabodev.com/dabo/${P}-mac-nix.tar.gz"
19 RDEPEND=">=dev-python/wxpython-2.5.2.8
25 distutils_src_compile() {
26 # Prevent inherited method from trying to run setup.py
31 # Install daboide into site-packages
32 distutils_python_version
33 INS=/usr/lib/python${PYVER}/site-packages/${P}
37 # for each source directory
38 for DDIR in $(find . -type d)
40 # if there are any files - install them
41 if [ $(ls -l ${DDIR} | grep ^[-l] | wc -l) != "0" ]
43 insinto ${INS}/${DDIR}
47 # if we have any python files
48 if [ $(ls -l ${DDIR}/*.py 2>/dev/null | wc -l) != "0" ]
50 # pick out those files which should be executable
51 EFIL=$(grep '^#!' ${DDIR}/*.py | cut -d : -f 1)
53 # and if there are any - install them
56 exeinto ${INS}/${DDIR}
63 echo '#!/bin/sh' > daboide
64 echo "exec /usr/lib/python${PYVER}/site-packages/${P}/IDE.py" >> daboide
69 # There is currently a problem trying to optimise some of the files
71 #python_mod_optimize ${D}