summaryrefslogtreecommitdiff
blob: b9ec7da845a15b552926117ea6b6a718f9891968 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_P=lib${P/_rc/rc}

DESCRIPTION="Free Finnish spellchecking and hyphenation library"
HOMEPAGE="http://www.lemi.fi/voikko/"
SRC_URI="http://www.puimula.org/htp/testing/${MY_P}.tar.gz"
#SRC_URI="mirror://sourceforge/voikko/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="" # release candidate
IUSE=""

DEPEND="sci-misc/malaga
	|| ( =sci-misc/suomi-malaga-1.0* =sci-misc/suomi-malaga-0.7*
		=sci-misc/suomi-malaga-9999 )
	virtual/libiconv"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P/rc?/}"

src_compile() {
	econf --with-dictionary-path="/usr/lib/suomi-malaga/" \
		|| die "econf failed"
	emake || die "emake failed"
}


src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc README || die "docs missing"
}

pkg_postinst() {
	ewarn "This is a release candidate! No support, may break"
}