/[gentoo-x86]/app-text/crm114/crm114-20040627.ebuild
Gentoo

Contents of /app-text/crm114/crm114-20040627.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Apr 21 18:48:40 2005 UTC (13 years, 2 months ago) by slarti
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump, resolves both bug 89851 and bug 69358 in the process. Clean out old ebuilds and stabilise 20041231 on amd64.'
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20040627.ebuild,v 1.4 2005/03/14 12:14:53 seemant Exp $
4
5 inherit eutils
6
7 IUSE="emacs nls static"
8
9 MY_P=${P}-BlameSeifkes.src
10 S=${WORKDIR}/${MY_P}
11 DESCRIPTION="A powerful text processing tool, mainly used for spam filtering"
12 HOMEPAGE="http://crm114.sourceforge.net/"
13 SRC_URI="http://crm114.sourceforge.net/${MY_P}.tar.gz"
14
15 SLOT="0"
16 LICENSE="GPL-2"
17 KEYWORDS="~x86 ~ppc"
18
19 TREVERS="0.6.8"
20
21 DEPEND=">=sys-apps/sed-4
22 virtual/libc
23 mail-filter/procmail
24 emacs? ( app-emacs/mew )
25 !emacs? ( net-mail/metamail )
26 !static? ( >=dev-libs/tre-${TREVERS} )"
27
28
29 src_unpack() {
30 unpack ${A}
31 cd ${S}
32
33 sed -i "s#^CFLAGS.*#CFLAGS+=${CFLAGS} -I.#" Makefile
34
35 if use static ; then
36 sed -i "s#-ltre#-L${S}/${TREVERS}/lib/.libs/ -ltre#g" Makefile
37 else
38 sed -i "s#-static##g" Makefile
39 fi
40
41 epatch ${FILESDIR}/${PN}-20040601-mailfilter.patch
42
43 cd ${S}/tre-${TREVERS}
44 chmod +x configure
45 }
46
47 src_compile() {
48 # Build TRE library.
49 if use static ; then
50 cd ${S}/tre-${TREVERS}
51 econf \
52 `use_enable nls` \
53 `use_enable static` \
54 --enable-system-abi \
55 --disable-profile \
56 --disable-agrep \
57 --disable-debug || die
58 emake || die
59 fi
60
61 # Build crm114
62 cd ${S}
63 emake || die
64 }
65
66 src_install() {
67 cd ${S}
68 dobin crm114 cssutil cssdiff cssmerge
69 dosym crm114 /usr/bin/crm
70
71 dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt
72 dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt
73 dodoc knownbugs.txt things_to_do.txt README
74
75 mkdir ${D}/usr/share/${PN}
76 cp -a *.crm ${D}/usr/share/${PN}
77 cp -a *.cf ${D}/usr/share/${PN}
78 cp -a *.mfp ${D}/usr/share/${PN}
79 }
80
81 pkg_postinst() {
82 echo
83 einfo "The spam-filter CRM files are installed in /usr/share/${PN}."
84 echo
85 }

  ViewVC Help
Powered by ViewVC 1.1.20