summaryrefslogtreecommitdiff
blob: 6d6243b46ac0cf215e0fd189a12508013376adfe (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit distutils multilib

DESCRIPTION="A 3-tier, cross-platform application development framework written in Python/wxPython"
HOMEPAGE="http://dabodev.com/"
SRC_URI="http://cdn.cloudfiles.mosso.com/c118811/${PN}/${P}-mac-nix.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE="ide"

DEPEND=">=dev-python/setuptools-0.6_alpha9
	ide? ( !dev-db/daboide )"

RDEPEND=">=dev-python/wxpython-2.6.1.1
	>=dev-db/sqlite-3.0
	>=dev-python/pysqlite-2.0
	ide? ( dev-python/imaging dev-python/reportlab )"

S=${WORKDIR}/${PN}

src_install() {
	distutils_python_version
	${python} setup.py install --root="${D}" --no-compile \
		--single-version-externally-managed "$@" \
		--install-data="/usr/$(get_libdir)/python${PYVER}/site-packages/" \
		|| die "setup.py install failed"

	dodoc ANNOUNCE AUTHORS ChangeLog README TODO || die

	if use ide; then
		cd "${S}/ide"
		INS="/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/ide"

		insinto ${INS}
		doins -r * || die "IDE installation failed!"

		# pick out those files which should be executable
		for EFIL in $(grep -RI '^#!' * | cut -d : -f 1 | grep -iv '\.txt$')
		do
			# and if there are any - install them
			exeinto "${INS}/$(dirname ${EFIL})"
			doexe "${EFIL}" || die
		done
	fi
}