blob: 7ff66310b3b1489002a4382f0f6b23be71432efb (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils multilib
DESCRIPTION="A 3-tier, cross-platform application development framework written in Python/wxPython."
HOMEPAGE="http://dabodev.com/"
SRC_URI="ftp://dabodev.com/dabo/${P}.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
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}"
done
fi
}
|