summaryrefslogtreecommitdiff
blob: 5a3cd120f0ecf35eaeb8e96953619e72f353e8f5 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-util/boa-constructor/boa-constructor-0.1.0_alpha.ebuild,v 1.3 2002/07/11 06:30:24 drobbins Exp $

DESCRIPTION="Python GUI RAD development tool."
HOMEPAGE="http://boa-constructor.sourceforge.net/"

BOA_VER=0.1.0-alpha
SRC_URI="mirror://sourceforge/boa-constructor/${PN}-${BOA_VER}.src.zip"

S="${WORKDIR}"/boa

RDEPEND=">=dev-lang/python-2.0
         >=dev-python/wxPython-2.3
         dev-libs/expat"

DEPEND="${RDEPEND}
        app-arch/unzip"

src_compile() {
    python -c "import compileall; compileall.compile_dir('.', force=1)"
}

src_install () {
    local pv=`python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:'`
    local boadir="/usr/lib/python${pv}/site-packages/boa"

    local dir
    for dir in `find . -type d`
    do
        insinto "${boadir}/${dir}"
        cd "${dir}"
        local file
        for file in *
        do
            [ -f "${file}" ] && doins "${file}"
        done
        cd "${S}"
    done

    insinto "${boadir}"
    doins *.cfg
    insinto "${boadir}/Plug-ins"
    doins Plug-ins/*
    
    dobin "${FILESDIR}/boa-constructor"
    
    dodoc Bugs.txt Changes.txt Credits.txt PYTHONSTARTUP README.txt
}