summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Martin <slarti@gentoo.org>2005-04-21 18:48:40 +0000
committerTom Martin <slarti@gentoo.org>2005-04-21 18:48:40 +0000
commit9e8149e31a31f666abda7f0990e11aafa87e4764 (patch)
tree33c6b855dc3e5f9b919110d09d34298c33a14204 /app-text/crm114/crm114-20050415.ebuild
parentStable on ppc. (diff)
downloadgentoo-2-9e8149e31a31f666abda7f0990e11aafa87e4764.tar.gz
gentoo-2-9e8149e31a31f666abda7f0990e11aafa87e4764.tar.bz2
gentoo-2-9e8149e31a31f666abda7f0990e11aafa87e4764.zip
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)
Diffstat (limited to 'app-text/crm114/crm114-20050415.ebuild')
-rw-r--r--app-text/crm114/crm114-20050415.ebuild99
1 files changed, 99 insertions, 0 deletions
diff --git a/app-text/crm114/crm114-20050415.ebuild b/app-text/crm114/crm114-20050415.ebuild
new file mode 100644
index 000000000000..048f884ac0a0
--- /dev/null
+++ b/app-text/crm114/crm114-20050415.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20050415.ebuild,v 1.1 2005/04/21 18:48:40 slarti Exp $
+
+inherit eutils
+
+IUSE="nls static normalizemime mew mimencode"
+
+MY_P="${P}.BlameTheIRS.src"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A powerful text processing tool, 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 ~amd64"
+
+TREVERS="0.7.2"
+
+DEPEND=">=sys-apps/sed-4
+ virtual/libc
+ normalizemime? ( mail-filter/normalizemime )
+ mew? ( app-emacs/mew )
+ mimencode? ( net-mail/metamail )
+ !static? ( >=dev-libs/tre-${TREVERS} )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ sed -i "s#^CFLAGS.*#CFLAGS+=${CFLAGS}#" Makefile
+
+ if use static ; then
+ sed -i "s#-ltre#-L${S}/tre-${TREVERS}/lib/.libs/ -ltre#g" Makefile
+ else
+ sed -i "s#-static##g" Makefile
+ fi
+ sed -i "s#ln -f -s crm114_tre crm114##" Makefile
+
+ if use mimencode ; then
+ einfo "Using mimencode -- adjusting mailfilter.cf"
+ sed -i 's%#:mime_decoder: /mimencode -u/%:mime_decoder: /mimencode -u/%' \
+ mailfilter.cf
+ sed -i 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ mailfilter.cf
+ elif use normalizemime ; then
+ einfo "Using normalizemime -- adjusting mailfilter.cf"
+ sed -i 's%#:mime_decoder: /normalizemime/%:mime_decoder: /normalizemime/%' mailfilter.cf
+
+ sed -i 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ mailfilter.cf
+ fi
+
+ 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
+ emake -j1 || die
+}
+
+src_install() {
+ dobin crm114_tre cssutil cssdiff cssmerge
+ dobin osbf-util
+ 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
+ docinto examples
+ dodoc *.example
+
+ insinto /usr/share/${PN}
+ doins *.crm
+ doins *.cf
+ doins *.mfp
+}
+
+pkg_postinst() {
+ echo
+ einfo "The spam-filter CRM files are installed in /usr/share/${PN}."
+ echo
+}