summaryrefslogtreecommitdiff
blob: 80af012897669e0a40f85ed0399ba8e5b4f83ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="An Integrated Development Environment for dabo"
HOMEPAGE="http://dabodev.com/"
SRC_URI="ftp://dabodev.com/dabo/${P}-mac-nix.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
S=${WORKDIR}/${PN}

DEPEND=""

RDEPEND=">=dev-python/wxpython-2.5.2.8
	dev-db/dabo
	dev-python/imaging
	dev-python/reportlab
	${DEPEND}"

# Prevent inherited method from trying to run setup.py
src_compile() { :; }

src_install() {
	# Install daboide into site-packages
	distutils_python_version
	INS=/usr/lib/python${PYVER}/site-packages/${P}

	dodoc ChangeLog

	# investigate usage of doins -r please
	# for each source directory
	for DDIR in $(find . -type d)
	do
		# if there are any files - install them
		if [ $(ls -l ${DDIR} | grep ^[-l] | wc -l) != "0" ]
		then
			insinto ${INS}/${DDIR}
			doins ${DDIR}/*
		fi

		# if we have any python files
		if [ $(ls -l ${DDIR}/*.py 2>/dev/null | wc -l) != "0" ]
		then
			# pick out those files which should be executable
			EFIL=$(grep '^#!' ${DDIR}/*.py | cut -d : -f 1)

			# and if there are any - install them
			if [ -n "${EFIL}" ]
			then
				exeinto ${INS}/${DDIR}
				doexe ${EFIL}
			fi
		fi
	done

	# Create executable
	echo '#!/bin/sh' > daboide
	echo "exec /usr/lib/python${PYVER}/site-packages/${P}/IDE.py" >> daboide
	dobin daboide
}