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

EAPI="2"

MY_P=${P/_rc/rc}

DESCRIPTION="Mozilla plugin for voikko spellchecker"
HOMEPAGE="http://voikko.sf.net"
#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="~x86"
IUSE=""

DEPEND="app-text/voikko
	net-libs/xulrunner"
RDEPEND="${DEPEND}"

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

src_prepare() {
	sed -i -e 's/-Werror//' -e 's/libxul-unstable/libxul/' \
		Makefile* src/Makefile*
}

src_compile() {
	# only xulrunner build is supported for distributions
	emake -f Makefile.xulrunner\
		XULRUNNER_SDK=/usr/include/xulrunner-$(best_version \
		net-libs/xulrunner)/ || die "emake failed"
}


src_install() {
	emake -f Makefile.xulrunner\
		DESTDIR="${D}/usr/lib/mozilla-firefox/extensions/" \
		install-unpacked || die "install failed"
	dodoc README README.xulrunner ChangeLog || die "docs missing"
}