/[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.1 - (hide annotations) (download)
Mon Mar 22 10:29:09 2004 UTC (15 years, 1 month ago) by seemant
Branch: MAIN
Updated the ebuild to use the latest version.
  The spam-filter *.crm files are now installed in /usr/share/crm114.
  CFLAGS set by the user will now be used.

1 seemant 1.1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /home/cvsroot/gentoo-x86/app-text/crm114/crm114-20030920.ebuild,v 1.1 2003/09/24 21:54:53 seemant Exp $
4    
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     virtual/glibc"
19    
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