summaryrefslogtreecommitdiff
blob: 4034ef264bf6590746cfe59b985b30f45dd1c86a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20030920.ebuild,v 1.5 2004/07/01 11:56:40 eradicator Exp $

IUSE="nls"

MY_P=${PN}-2003-09-20-Beta.src
S=${WORKDIR}/${MY_P}
DESCRIPTION="A powerful text processing tools, mainly used for spam filtering"
HOMEPAGE="http://crm114.sourceforge.net/"
SRC_URI="mirror://sourceforge/crm114/${MY_P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

DEPEND=">=sys-apps/sed-4
	virtual/libc"

src_compile() {
	# Build TRE library.
	cd ${S}/tre-0.5.3
	# FIXME: for some reason, the configure script doesn't use
	# our CFLAGS!
	econf `use_enable nls` \
	    --disable-profile \
	    --disable-agrep \
	    --enable-system-abi \
	    --disable-shared \
	    --disable-debug \
	    --enable-static || die

	emake

	# Build crm114
	cd ${S}
	sed -i \
		-e "s#^CFLAGS=.*#CFLAGS=${CFLAGS}#" \
	    -e "s#-ltre#-Ltre-0.5.3/lib/.libs -ltre#g" \
	    -e "s#-static##g" \
	    Makefile

	emake || die
}

src_install() {
	cd ${S}
	dobin crm114 cssutil cssdiff cssmerge
	dodoc CRM114_Mailfilter_HOWTO.txt classify_details.txt
	dodoc colophon.txt faq.txt intro.txt knownbugs.txt
	dodoc quickref.txt things_to_do.txt
}