summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/crm114/ChangeLog10
-rw-r--r--app-text/crm114/crm114-20070810.ebuild63
-rw-r--r--app-text/crm114/crm114-20090807.ebuild42
-rw-r--r--app-text/crm114/crm114-20100106.ebuild81
4 files changed, 146 insertions, 50 deletions
diff --git a/app-text/crm114/ChangeLog b/app-text/crm114/ChangeLog
index b0994d6f67b7..f93379a299e9 100644
--- a/app-text/crm114/ChangeLog
+++ b/app-text/crm114/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/crm114
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/ChangeLog,v 1.39 2009/12/25 03:13:40 darkside Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/ChangeLog,v 1.40 2011/01/05 17:30:44 jlec Exp $
+
+*crm114-20100106 (05 Jan 2011)
+
+ 05 Jan 2011; Justin Lecher <jlec@gentoo.org> crm114-20070810.ebuild,
+ crm114-20090807.ebuild, +crm114-20100106.ebuild:
+ Version Bump, Some Clean up
*crm114-20090807 (25 Dec 2009)
diff --git a/app-text/crm114/crm114-20070810.ebuild b/app-text/crm114/crm114-20070810.ebuild
index 45e7c6e107b9..2788df33c7f6 100644
--- a/app-text/crm114/crm114-20070810.ebuild
+++ b/app-text/crm114/crm114-20070810.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20070810.ebuild,v 1.5 2009/09/23 16:31:45 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20070810.ebuild,v 1.6 2011/01/05 17:30:44 jlec Exp $
inherit eutils
-IUSE="nls static normalizemime mew mimencode test"
+
MY_P="${P}-BlameTheSegfault.src"
S=${WORKDIR}/${MY_P}
@@ -14,41 +14,44 @@ SRC_URI="http://crm114.sourceforge.net/tarballs/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="nls static normalizemime mew mimencode test"
-TREVERS="0.7.5"
-
-DEPEND=">=sys-apps/sed-4
- normalizemime? ( mail-filter/normalizemime )
+RDEPEND="
+ dev-libs/tre
+ sys-apps/sed
mew? ( app-emacs/mew )
mimencode? ( net-mail/metamail )
- >=dev-libs/tre-${TREVERS}
+ normalizemime? ( mail-filter/normalizemime )"
+DEPEND="${RDEPEND}
test? ( sys-apps/miscfiles )"
src_unpack() {
unpack ${A}
cd "${S}"
- sed -i "s#^CFLAGS.*#CFLAGS+=${CFLAGS}#" Makefile
- sed -i "s#^LDFLAGS.*#LDFLAGS+=${LDFLAGS}#" Makefile
+ sed \
+ -e "s#^CFLAGS.*#CFLAGS+=${CFLAGS}#" \
+ -e "s#^LDFLAGS.*#LDFLAGS+=${LDFLAGS}#" \
+ -i Makefile || die
if use static ; then
- sed -i "s#-ltre#-L${S}/tre-${TREVERS}/lib/.libs/ -ltre#g" Makefile
+ sed -i "s#-ltre#-L${S}/tre-${TREVERS}/lib/.libs/ -ltre#g" Makefile || die
else
- sed -i "s#-static##g" Makefile
+ sed -i "s#-static##g" Makefile || die
fi
- sed -i "s#ln -f -s crm114_tre crm114##" Makefile
+ sed -i "s#ln -f -s crm114_tre crm114##" Makefile || die
if use mimencode ; then
einfo "Using mimencode -- adjusting mailfilter.cf"
sed -i 's%#:mime_decoder: /mimencode -u/%:mime_decoder: /mimencode -u/%' \
- mailfilter.cf
+ mailfilter.cf || die
sed -i 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
- mailfilter.cf
+ mailfilter.cf || die
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: /normalizemime/%:mime_decoder: /normalizemime/%' mailfilter.cf || die
sed -i 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
- mailfilter.cf
+ mailfilter.cf || die
fi
}
@@ -58,28 +61,26 @@ src_compile() {
}
src_install() {
- dobin crm114 cssutil cssdiff cssmerge
- dobin cssutil cssdiff cssmerge
- dobin osbf-util
+ dobin crm114 cssutil cssdiff cssmerge || die
+ dobin cssutil cssdiff cssmerge || die
+ dobin osbf-util || die
- 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
+ dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt || die
+ dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt || die
+ dodoc knownbugs.txt things_to_do.txt README || die
docinto examples
- dodoc *.example
+ dodoc *.example || die
insinto /usr/share/${PN}
- doins *.crm
- doins *.cf
- doins *.mfp
+ doins *.crm || die
+ doins *.cf || die
+ doins *.mfp || die
}
src_test() {
- make megatest
+ emake megatest || die
}
pkg_postinst() {
- einfo ""
- einfo "The spam-filter CRM files are installed in /usr/share/${PN}."
- einfo ""
+ elog "The spam-filter CRM files are installed in /usr/share/${PN}."
}
diff --git a/app-text/crm114/crm114-20090807.ebuild b/app-text/crm114/crm114-20090807.ebuild
index 7b22bccd2028..30e83916ba8f 100644
--- a/app-text/crm114/crm114-20090807.ebuild
+++ b/app-text/crm114/crm114-20090807.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20090807.ebuild,v 1.1 2009/12/25 03:13:41 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20090807.ebuild,v 1.2 2011/01/05 17:30:44 jlec Exp $
EAPI=2
+
MY_P="${P}-BlameThorstenAndJenny.src"
-S=${WORKDIR}/${MY_P}
inherit eutils toolchain-funcs
@@ -17,32 +17,40 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
IUSE="mew mimencode nls normalizemime +static test"
-RDEPEND="normalizemime? ( mail-filter/normalizemime )
+RDEPEND="
+ dev-libs/tre
mew? ( app-emacs/mew )
mimencode? ( net-mail/metamail )
- >=dev-libs/tre-0.7.5"
+ normalizemime? ( mail-filter/normalizemime )"
DEPEND="${RDEPEND}
test? ( sys-apps/miscfiles )"
+S="${WORKDIR}"/${MY_P}
+
src_prepare() {
- sed -i "s#^CFLAGS += -O3 -Wall##" Makefile || die
- sed -i "s#^CC=.*#CC=$(tc-getCC)#" Makefile || die
+ sed \
+ -e "s#^CFLAGS += -O3 -Wall##" \
+ -e "s#^CC=.*#CC=$(tc-getCC)#" \
+ -i Makefile || die
# Upstream recommends static linking
if ! use static ; then
- sed -i "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS}#" Makefile || die
+ sed -i "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS}#" Makefile || die
else
- sed -i "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS} \
- -static -static-libgcc#" Makefile || die
+ sed \
+ -e "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS} -static -static-libgcc#" \
+ -i Makefile || die
fi
if use mimencode ; then
- sed -i -e 's%#:mime_decoder: /mimencode -u/%:mime_decoder: /mimencode -u/%' \
- -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
- mailfilter.cf || die
+ sed \
+ -e 's%#:mime_decoder: /mimencode -u/%:mime_decoder: /mimencode -u/%' \
+ -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ -i mailfilter.cf || die
elif use normalizemime ; then
- sed -i -e 's%#:mime_decoder: /normalizemime/%:mime_decoder: /normalizemime/%' \
- -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
- mailfilter.cf || die
+ sed \
+ -e 's%#:mime_decoder: /normalizemime/%:mime_decoder: /normalizemime/%' \
+ -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ -i mailfilter.cf || die
fi
}
@@ -65,7 +73,7 @@ src_install() {
}
src_test() {
- emake megatest
+ emake megatest || die
}
pkg_postinst() {
diff --git a/app-text/crm114/crm114-20100106.ebuild b/app-text/crm114/crm114-20100106.ebuild
new file mode 100644
index 000000000000..36fc738db845
--- /dev/null
+++ b/app-text/crm114/crm114-20100106.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/crm114/crm114-20100106.ebuild,v 1.1 2011/01/05 17:30:44 jlec Exp $
+
+EAPI=2
+
+MY_P="${P}-BlameMichelson.src"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A powerful text processing tool, mainly used for spam filtering"
+HOMEPAGE="http://crm114.sourceforge.net/"
+SRC_URI="http://crm114.sourceforge.net/tarballs/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="mew mimencode nls normalizemime +static test"
+
+RDEPEND="
+ dev-libs/tre
+ mew? ( app-emacs/mew )
+ mimencode? ( net-mail/metamail )
+ normalizemime? ( mail-filter/normalizemime )"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/miscfiles )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ sed \
+ -e "s#-O3 -Wall##" \
+ -e "s#^CC=.*#CC=$(tc-getCC)#" \
+ -i Makefile || die
+ # Upstream recommends static linking
+ if ! use static ; then
+ sed -i "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS}#" Makefile || die
+ else
+ sed \
+ -e "s#LDFLAGS += -static -static-libgcc#LDFLAGS += ${LDFLAGS} -static -static-libgcc#" \
+ -i Makefile || die
+ fi
+
+ if use mimencode ; then
+ sed \
+ -e 's%#:mime_decoder: /mimencode -u/%:mime_decoder: /mimencode -u/%' \
+ -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ -i mailfilter.cf || die
+ elif use normalizemime ; then
+ sed \
+ -e 's%#:mime_decoder: /normalizemime/%:mime_decoder: /normalizemime/%' \
+ -e 's%:mime_decoder: /mewdecode/%#:mime_decoder: /mewdecode/%' \
+ -i mailfilter.cf || die
+ fi
+
+}
+
+src_install() {
+ dobin crm114 cssutil cssdiff cssmerge || die
+ dobin cssutil cssdiff cssmerge || die
+ dobin osbf-util || die
+
+ dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt || die
+ dodoc QUICKREF.txt CLASSIFY_DETAILS.txt inoc_passwd.txt || die
+ dodoc KNOWNBUGS.txt THINGS_TO_DO.txt README || die
+ docinto examples
+ dodoc *.example || die
+
+ insinto /usr/share/${PN}
+ doins *.crm || die
+ doins *.cf || die
+ doins *.mfp || die
+}
+
+src_test() {
+ emake megatest || die
+}
+
+pkg_postinst() {
+ elog "The spam-filter CRM files are installed in /usr/share/${PN}."
+}