summaryrefslogtreecommitdiff
blob: 64c21f70b38bd2fc3cdd849a906c1c94d92c0bdd (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/ispell-pt-br/ispell-pt-br-2.4-r2.ebuild,v 1.10 2009/10/18 01:02:39 halcy0n Exp $

inherit eutils

MY_P="br.ispell-${PV}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A Brazilian portuguese dictionary for ispell"
HOMEPAGE="http://www.ime.usp.br/~ueda/br.ispell"
SRC_URI="http://www.ime.usp.br/~ueda/br.ispell/${MY_P}.tar.gz
	mirror://gentoo/${P}-palavras-gentoo.diff.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 hppa ~mips ppc sparc x86"
IUSE=""

DEPEND="app-text/ispell
	sys-apps/gawk"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${WORKDIR}/${P}-palavras-gentoo.diff"
}

src_compile() {
	emake VDIR=/usr/share/dict || die
	make palavras
	make paradigmas
}

src_install() {
	emake \
		prefix="${D}usr" \
		VDIR="${D}/usr/share/dict" \
		HASHDIR="${D}usr/lib/ispell" \
		MANDIR="${D}usr/share/man" \
		install || die

	insinto /usr/lib/ispell
	newins br.aff pt_BR.aff
	newins br.hash pt_BR.hash
	rm -f "${D}"/usr/lib/ispell/br.*

	dodoc README
}