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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Jul 1 11:56:40 2004 UTC (14 years, 9 months ago) by eradicator
Branch: MAIN
Changes since 1.2: +2 -2 lines
virtual/glibc -> virtual/libc

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 seemant 1.1 # Distributed under the terms of the GNU General Public License v2
3 eradicator 1.3 # $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20040212.ebuild,v 1.2 2004/06/24 22:30:37 agriffis Exp $
4 seemant 1.1
5     IUSE="nls"
6    
7     MY_P=${PN}-20040212-BlameJetlag.src
8     S=${WORKDIR}/${MY_P}
9     DESCRIPTION="A powerful text processing tools, mainly used for spam filtering"
10     HOMEPAGE="http://crm114.sourceforge.net/"
11     SRC_URI="mirror://sourceforge/crm114/${MY_P}.tar.gz"
12    
13     SLOT="0"
14     LICENSE="GPL-2"
15     KEYWORDS="~x86"
16    
17     DEPEND=">=sys-apps/sed-4
18 eradicator 1.3 virtual/libc"
19 seemant 1.1
20     src_unpack() {
21     unpack ${A}
22    
23     cd ${S}
24     ln -s ${S}/tre-0.6.4/lib tre
25     sed -i \
26     -e "s#^CFLAGS.*#CFLAGS+=${CFLAGS} -I.#" \
27     -e "s#-ltre#-Ltre-0.6.4/lib/.libs -ltre#g" \
28     -e "s#-static##g" \
29     Makefile
30    
31     cd ${S}/tre-0.6.4
32     chmod +x configure
33     }
34    
35     src_compile() {
36     # Build TRE library.
37     cd ${S}/tre-0.6.4
38     econf `use_enable nls` \
39     --disable-profile \
40     --disable-agrep \
41     --enable-system-abi \
42     --disable-shared \
43     --disable-debug \
44     --enable-static || die
45     emake || die
46    
47     # Build crm114
48     cd ${S}
49     emake || die
50     }
51    
52     src_install() {
53     cd ${S}
54     dobin crm114 cssutil cssdiff cssmerge
55    
56     dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt
57     dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt
58     dodoc knownbugs.txt things_to_do.txt README
59    
60     mkdir ${D}/usr/share/${PN}
61     cp -a *.crm ${D}/usr/share/${PN}
62     }
63    
64     pkg_postinst() {
65     echo
66     einfo "The spam-filter CRM files are installed in /usr/share/${PN}."
67     echo
68     }

  ViewVC Help
Powered by ViewVC 1.1.20