summaryrefslogtreecommitdiff
blob: 0cce6454cf48ac3eb19c43d1cf4f90945c32ef5d (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
57
58
59
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Seemant Kulleen <seemant@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/aspell/aspell-0.33.7.1-r1.ebuild,v 1.4 2002/04/27 23:08:35 bangert Exp $


MY_P=${PN}-.33.7.1
S=${WORKDIR}/${MY_P}
DESCRIPTION="A spell checker replacement for ispell"
SRC_URI="http://download.sourceforge.net/aspell/${MY_P}.tar.gz http://prdownloads.sourceforge.net/aspell/aspell-.33-fix2.diff"
HOMEPAGE="http://aspell.sourceforge.net"

DEPEND=">=app-text/pspell-0.12
	>=sys-libs/ncurses-5.2"

#
# These flags a reset here because too much optimisation can cause aspell's
# compilation process to break.  Moreover, these must be set before ./configure
# otherwise it breaks again.  A very fragile build process, really.
#
CXXFLAGS="-O3"
CFLAGS=${CXXFLAGS}

src_unpack() {
	unpack ${MY_P}.tar.gz
	cd ${S}
	patch -p0 < ${DISTDIR}/aspell-.33-fix2.diff
}

src_compile() {
	# 
	# These two lines are here again to prevent breaking the compilation
	#
	libtoolize --copy --force
	aclocal

    ./configure \
		--prefix=/usr \
		--sysconfdir=/etc/aspell \
		--host=${CHOST} \
		--enable-doc-dir=/usr/share/doc/${P} || die
    
	emake || die

}

src_install () {

    make DESTDIR=${D} install || die
    cd ${D}/usr/share/doc/${P}
    dohtml -r man-html
	docinto text
    dodoc man-text
    cd ${S}
    
    dodoc README* TODO

}