summaryrefslogtreecommitdiff
path: root/app-text/crm114
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/crm114
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/crm114')
-rw-r--r--app-text/crm114/Manifest6
-rw-r--r--app-text/crm114/crm114-20100106-r1.ebuild80
-rw-r--r--app-text/crm114/files/crm114-20100106-fix-makefile.patch60
-rw-r--r--app-text/crm114/metadata.xml24
4 files changed, 170 insertions, 0 deletions
diff --git a/app-text/crm114/Manifest b/app-text/crm114/Manifest
new file mode 100644
index 000000000000..47459e0fda70
--- /dev/null
+++ b/app-text/crm114/Manifest
@@ -0,0 +1,6 @@
+AUX crm114-20100106-fix-makefile.patch 1796 SHA256 aa1be34f4065dc6261101a4fec987138b40c344f347714132ca9da0914ad2d2e SHA512 3011a85116510fce131bd3c13b5ec1e4faeefdb1eebf114782d417fb9ce8050ce15cae05f8b651728335233641be1e870fe48702fa620b542a8f1c963853b81c WHIRLPOOL 59ee1eb13502093a6b7b9fdcf2d8f9d90e258b70e37d2fd4b564e5789715d2785f5cdb7667047dbb5ae2f710184c8582d868ca2f4dcd2d955f8b1fdb80e39f2a
+DIST crm114-20100106-BlameMichelson.src.tar.gz 724672 SHA256 fb626472eca43ac2bc03526d49151c5f76b46b92327ab9ee9c9455210b938c2b SHA512 bb95fa50d6feef1a127e39e4005c4964b0096c3c7059f63bbf2293042351cf5ceeb7590fd1bedc64291ba556dfba96856dba8554f2f52a6cbaa3ad65012809c6 WHIRLPOOL 8ae6f01d5b7a3d8419662ea9a34a32d25c39f7aea7e35118eb20439f82cbad4d288478ebd87fb521c2871b654a137d4c432a7f7064f918e047b65a69e6be0518
+EBUILD crm114-20100106-r1.ebuild 1962 SHA256 e2273a0cc091961aab448fd986d94963adfa46a977d9fe159b1deffea027d489 SHA512 29a09f44a2f9ca1011e15d36060a57603e1fffe9c22fc7a61bf82f3b77ff4e747a96133724f5f8168bfb341626a1d7f5556ac562e94666f8e544c09cfc9a535c WHIRLPOOL 6fcfcfb3bfe7e13b91811837e969463206f5c43f0527e79e374e6d4c98d65e78648ae2e865a1fa1629a5797cf51c62280b6dc657d7f77b37e30fa0d1145bec22
+MISC ChangeLog 3303 SHA256 191b84cc6900ff5db94492696defde77b802a7b47c350a7cfae1679b83ee8523 SHA512 d60b37549776b5dce08e74b29c2aa80ad1d5f29462e48bf32edb605eae4368519cfaad12e12b5877612909638610d3d4fdd475fa294573a0200caeb29efe8ace WHIRLPOOL 5737d7cd81bff06bf6295d7b501a7bba7b111fb1686d05bdf1ea773f8d8c6a111cfd6074665e46deb65dd0d7dd2f96fecfc9caff4336283b1fb282a725448e36
+MISC ChangeLog-2015 8960 SHA256 07eeb1eda817953ccb15126b6e0c9a7656ba564fd1bdb04519a1d8a9e39e29d7 SHA512 451268ad41aa5ca985f511e2eb58fb05011e0aa4b4e6fcf93454ac71fe37d9cd6551bd2aed0514ba3531e33b516fd6d9ab6ddf54ea8d957f342554823c7756b8 WHIRLPOOL 48eeaa8ae3ddeee2e4167d4ad45ae5ad4081ea75d6ca8d463108c8a42381492145238600178b60928502c3a4987dc06c667772b25ebc09ca8e8b733e64e50727
+MISC metadata.xml 866 SHA256 57a97097ba306a960f2d87fdce08fff8a8943aae4fa32d016d60b33c92fa15c6 SHA512 0d0b0809d30b60378d19c5433eb536a12886f7d2fa982c80e2d317a33e04b365050dc4d372f79cd8a0c948bc283417507c24fb0e99693072ad95562d0b9264a6 WHIRLPOOL 6be3ae590b28bbc3bfde3e52770150dc1ebdbf8e55ee484b6e872aba58be9135f6be27371ee626a5e1b175f53478f4cc4a61032060f5b4c3ad8c3b0aab7c4698
diff --git a/app-text/crm114/crm114-20100106-r1.ebuild b/app-text/crm114/crm114-20100106-r1.ebuild
new file mode 100644
index 000000000000..6c22e69d7c12
--- /dev/null
+++ b/app-text/crm114/crm114-20100106-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+MY_P="${P}-BlameMichelson.src"
+
+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="examples mew mimencode nls normalizemime static test"
+
+RDEPEND="
+ static? ( dev-libs/tre[static-libs] )
+ !static? ( 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}
+
+PATCHES=( "${FILESDIR}"/${P}-fix-makefile.patch )
+
+src_prepare() {
+ default
+
+ 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_compile() {
+ # Restore GNU89 inline semantics to
+ # emit external symbols, bug 571062
+ append-cflags -std=gnu89
+
+ use static && append-ldflags -static -static-libgcc
+
+ emake CC="$(tc-getCC)"
+}
+
+src_test() {
+ emake megatest
+}
+
+src_install() {
+ dobin crm114 cssdiff cssmerge cssutil osbf-util
+
+ insinto /usr/share/${PN}
+ doins *.crm *.cf *.mfp
+
+ dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt QUICKREF.txt \
+ CLASSIFY_DETAILS.txt inoc_passwd.txt KNOWNBUGS.txt THINGS_TO_DO.txt README
+
+ if use examples; then
+ docinto examples
+ dodoc *.example
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+pkg_postinst() {
+ elog "The spam-filter CRM files are installed in ${EROOT%/}/usr/share/${PN}."
+}
diff --git a/app-text/crm114/files/crm114-20100106-fix-makefile.patch b/app-text/crm114/files/crm114-20100106-fix-makefile.patch
new file mode 100644
index 000000000000..12ad4052002d
--- /dev/null
+++ b/app-text/crm114/files/crm114-20100106-fix-makefile.patch
@@ -0,0 +1,60 @@
+* Remove hardcoded variable
+* Respect user variables
+
+--- a/Makefile
++++ b/Makefile
+@@ -19,10 +19,6 @@
+ VER_SUFFIX ?=
+
+ #
+-# The following forces the compiler to be GCC. If you have trouble
+-# with your default compiler, and you want to force GCC, uncomment it.
+-CC=gcc
+-#
+ # What version is this software (PLEASE don't change this just
+ # to mess with my brain. - wsy)
+ #
+@@ -82,7 +78,7 @@
+ #
+ # Build our basic CFLAGS chunk
+ #
+-CFLAGS += -DVERSION='"$(VERSION)"'
++MY_CPPFLAGS += -DVERSION='"$(VERSION)"'
+ #
+ # Known Neighbord On, only for debugging
+ # CFLAGS += -DKNN_ON
+@@ -104,7 +100,7 @@
+ # certain functions to be inline (I added that to force gcc to inline functions
+ # under high optimization but not under low so that debugging is possible -
+ # that's why DO_INLINES is defined at O3 but not O0 - JB):
+-CFLAGS += -O3 -Wall -DDO_INLINES
++MY_CPPFLAGS += -DDO_INLINES
+ # turn this one on for no optimization, but debugging
+ #CFLAGS += -g -O0 -Wall
+ #
+@@ -119,7 +115,6 @@
+ # BSD users - do NOT use -static-libgcc!!!
+ # Also note that this keeps valgrind from running correctly so comment
+ # it out for debugging.
+-LDFLAGS += -static -static-libgcc
+ # use this one if you want program profiling.
+ #LDFLAGS += -static -static-libgcc -pg
+ #LDFLAGS += -pg
+@@ -306,7 +301,7 @@
+ # of with your mods built in.
+
+ crm114: $(OFILES)
+- $(CC) $(LDFLAGS) $(LIBS) $(OFILES) \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $(OFILES) \
+ -ltre -lm \
+ -o crm114
+ #
+@@ -315,7 +310,7 @@
+
+ *.o: $(HFILES)
+ .c.o:
+- $(CC) $(CFLAGS) -c $*.c
++ $(CC) $(CFLAGS) $(MY_CPPFLAGS) $(CPPFLAGS) -c $*.c
+
+ cssutil: cssutil.o crm_css_maintenance.o crm_util_errorhandlers.o crm_str_funcs.o $(HFILES)
+ $(CC) $(CFLAGS) $(LDFLAGS) cssutil.o \
diff --git a/app-text/crm114/metadata.xml b/app-text/crm114/metadata.xml
new file mode 100644
index 000000000000..497faa0ea1bd
--- /dev/null
+++ b/app-text/crm114/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>steev@gentoo.org</email>
+ <name>Steev Klimaszewski</name>
+ <description>Maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <use>
+ <flag name="mew">Add support for using the mewdecode mime decoder
+ (<pkg>app-emacs/mew</pkg>)</flag>
+ <flag name="mimencode">Add support for using the mimencode mime
+ (<pkg>net-mail/metamail</pkg>)</flag>
+ <flag name="normalizemime">Add support for using the normalizemime
+ (<pkg>mail-filter/normalizemime</pkg>)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">crm114</remote-id>
+ </upstream>
+</pkgmetadata>