blob: a2cdb6e0924f7e3614e9f417ce11eee908c60f84 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdissert/kdissert-1.0.5-r1.ebuild,v 1.4 2006/03/11 22:41:04 weeve Exp $
inherit kde
MY_P=${P/_/\.}
S=${WORKDIR}/${MY_P}
DESCRIPTION="KDissert - a mindmapping-like tool"
HOMEPAGE="http://www.freehackers.org/~tnagy/kdissert/index.html"
SRC_URI="http://www.freehackers.org/~tnagy/kdissert/${MY_P}.tar.bz2"
#SRC_URI="http://www.kde-apps.org/content/files/12725-${MY_P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ppc sparc x86"
IUSE=""
DEPEND=">=dev-util/scons-0.96.1
>=dev-lang/python-2.3"
RDEPEND=""
need-kde 3.4
PATCHES="${FILESDIR}/kdissert-1.0.5-bksys.diff"
LANGS="de es fr it nl pl"
src_compile() {
[ -d "$QTDIR/etc/settings" ] && addwrite "$QTDIR/etc/settings"
addpredict "$QTDIR/etc/settings"
local myconf="kdeincludes=$(kde-config --prefix)/include prefix=/usr "
use amd64 && myconf="${myconf} libsuffix=64"
scons configure ${myconf} || die "configure failed"
scons ${MAKEOPTS} || die "scons failed"
}
src_install() {
local LANG_INSTALL="$(echo $(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d))"
scons install DESTDIR="${D}" languages="${LANG_INSTALL}"
dodoc AUTHORS COPYING INSTALL README ROADMAP
# fix broken doc installation
cd ${D}/usr/share/doc/HTML
local KDE_HTML_DIR="$(kde-config --expandvars --install html)"
for i in $(ls) ; do
if [ -z "$(echo "${i} en ${LANG_INSTALL}" | fmt -w 1 | sort | uniq -d)" ] ; then
rm -rf ./${i}
else
rm -f ${i}/kdissert/common
ln -s ${KDE_HTML_DIR}/${i}/common ./${i}/kdissert/common
fi
done
}
|