diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2004-09-01 01:59:57 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2004-09-01 01:59:57 +0000 |
commit | 96aade2309591550b26de4b1c6073bf0cedcd9c2 (patch) | |
tree | c51ed3947db4b8077d2a5cb574c124bf31c2f7e3 /app-text/crm114/crm114-20040820.ebuild | |
parent | Updated the digests as i've changed the patchball. Not bumping as .27-r2 is p... (diff) | |
download | gentoo-2-96aade2309591550b26de4b1c6073bf0cedcd9c2.tar.gz gentoo-2-96aade2309591550b26de4b1c6073bf0cedcd9c2.tar.bz2 gentoo-2-96aade2309591550b26de4b1c6073bf0cedcd9c2.zip |
version bump and move to stable
Diffstat (limited to 'app-text/crm114/crm114-20040820.ebuild')
-rw-r--r-- | app-text/crm114/crm114-20040820.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/app-text/crm114/crm114-20040820.ebuild b/app-text/crm114/crm114-20040820.ebuild new file mode 100644 index 000000000000..5bac1ed160bd --- /dev/null +++ b/app-text/crm114/crm114-20040820.ebuild @@ -0,0 +1,87 @@ +# 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-20040820.ebuild,v 1.1 2004/09/01 01:59:57 seemant Exp $ + +inherit eutils + +IUSE="emacs nls static" + +MY_P=${P}.BlameClockworkOrange.src +S=${WORKDIR}/${MY_P} +DESCRIPTION="A powerful text processing tools, mainly used for spam filtering" +HOMEPAGE="http://crm114.sourceforge.net/" +SRC_URI="http://crm114.sourceforge.net/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" + +TREVERS="0.6.8" + +DEPEND=">=sys-apps/sed-4 + virtual/libc + mail-filter/procmail + emacs? ( app-emacs/mew ) + !emacs? ( net-mail/metamail ) + !static? ( >=dev-libs/tre-${TREVERS} )" + + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i "s#^CFLAGS.*#CFLAGS+=${CFLAGS} -I.#" Makefile + + if use static ; then + sed -i "s#-ltre#-L${S}/${TREVERS}/lib/.libs/ -ltre#g" Makefile + else + sed -i "s#-static##g" Makefile + fi + sed -i "s#ln -f -s crm114_tre crm114##" Makefile + + epatch ${FILESDIR}/${PN}-20040601-mailfilter.patch + + cd ${S}/tre-${TREVERS} + chmod +x configure +} + +src_compile() { + # Build TRE library. + if use static ; then + cd ${S}/tre-${TREVERS} + econf \ + `use_enable nls` \ + `use_enable static` \ + --enable-system-abi \ + --disable-profile \ + --disable-agrep \ + --disable-debug || die + emake || die + fi + + # Build crm114 + cd ${S} + emake || die +} + +src_install() { + cd ${S} + dobin crm114_tre cssutil cssdiff cssmerge + dosym crm114_tre /usr/bin/crm114 + dosym crm114_tre /usr/bin/crm + + dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt + dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt + dodoc knownbugs.txt things_to_do.txt README + + mkdir ${D}/usr/share/${PN} + cp -a *.crm ${D}/usr/share/${PN} + cp -a *.cf ${D}/usr/share/${PN} + cp -a *.mfp ${D}/usr/share/${PN} +} + +pkg_postinst() { + echo + einfo "The spam-filter CRM files are installed in /usr/share/${PN}." + echo +} |