blob: 61a471cdc410e7e844951df69516b0265ec1e060 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/treeline/treeline-1.2.3.ebuild,v 1.4 2010/01/01 16:17:46 fauli Exp $
EAPI=2
NEED_PYTHON="2.4"
PYTHON_USE_WITH="xml"
inherit eutils python
DESCRIPTION="TreeLine is a structured information storage program."
HOMEPAGE="http://treeline.bellz.org/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="spell"
LANGS="de fr"
for lang in ${LANGS}; do
IUSE="${IUSE} linguas_${lang}"
SRC_URI="${SRC_URI} linguas_${lang}? ( mirror://berlios/${PN}/${PN}-i18n-${PV}a.tar.gz )"
done
DEPEND="spell? ( || ( app-text/aspell app-text/ispell ) )
dev-python/PyQt4[X]"
RDEPEND="${DEPEND}"
S="${WORKDIR}/TreeLine"
src_unpack() {
unpack ${P}.tar.gz
for lang in ${LANGS}; do
if use linguas_${lang}; then
tar xozf "${DISTDIR}"/${PN}-i18n-${PV}a.tar.gz \
TreeLine/doc/{readme_${lang}.trl,README_${lang}.html} \
TreeLine/translations/{treeline_${lang}.{qm,ts},qt_${lang}.{qm,ts}} || die
fi
done
}
src_prepare() {
# let's leave compiling to python_mod_optimize
epatch "${FILESDIR}"/${P}-nocompile.patch
# install into proper python site-packages dir
sed -i "s;prefixDir, 'lib;'$(python_get_sitedir);" install.py || die 'sed failed'
rm doc/LICENSE
}
src_install() {
"${python}" install.py -x -p /usr/ -d /usr/share/doc/${PF} -b "${D}"
}
pkg_postinst() {
python_mod_optimize "$(python_get_sitedir)/${PN}"
}
pkg_postrm() {
python_mod_cleanup
}
|