summaryrefslogtreecommitdiff
blob: e92c5aa17828cb862cfbeae872c7e2c2e1848a06 (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
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-text/kbedic/kbedic-3.1.ebuild,v 1.1 2002/09/11 19:34:04 danarmak Exp $
inherit kde

S=${WORKDIR}/${P}
DESCRIPTION="English <-> Bulgarian Dictionary"
SRC_URI="mirror://sourceforge/kbedic/$P.tar.gz"
HOMEPAGE="http://kbedic.sourceforge.net"
KEYWORDS="x86"
SLOT="0"
LICENSE="GPL-2"

need-qt 3
[ -n "`use kde`" ] && need-kde 3

# -gcc3 is a typical "default value present in both definition and declaration" fix.
# -location makes it isntall the dictionary datafiles in /usr/share/kbedic,
# and not directly in /usr/share. Both sent upstream.
PATCHES="$FILESDIR/$P-gcc3.diff $FILESDIR/$P-location.diff"

src_compile() {
	
	local myopts
	if [ -n "`use kde`" ]
	then
		myopts="--with-kde"
		set-kdedir 3
	fi

	need-automake 1.6
	need-autoconf 2.5

	aclocal	

	./configure --prefix=/usr \
		--host=${CHOST} \
		${myopts} || die
		
	emake || die
	
}