Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 41979 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-text/crm114/crm114-20040212.ebuild (-14 / +29 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /home/cvsroot/gentoo-x86/app-text/crm114/crm114-20040212.ebuild,v 1.1 2004/03/22 10:29:09 seemant Exp $
3
# $Header: /home/cvsroot/gentoo-x86/app-text/crm114/crm114-20040212.ebuild,v 1.1 2004/03/22 10:29:09 seemant Exp $
4
4
5
IUSE="nls"
5
IUSE="nls static"
6
6
7
MY_P=${PN}-20040212-BlameJetlag.src
7
MY_P=${P}-BlameEasterBunny.src
8
S=${WORKDIR}/${MY_P}
8
S=${WORKDIR}/${MY_P}
9
DESCRIPTION="A powerful text processing tools, mainly used for spam filtering"
9
DESCRIPTION="A powerful text processing tools, mainly used for spam filtering"
10
HOMEPAGE="http://crm114.sourceforge.net/"
10
HOMEPAGE="http://crm114.sourceforge.net/"
Lines 15-47 Link Here
15
KEYWORDS="~x86"
15
KEYWORDS="~x86"
16
16
17
DEPEND=">=sys-apps/sed-4
17
DEPEND=">=sys-apps/sed-4
18
	virtual/glibc"
18
    virtual/glibc
19
	net-mail/procmail
20
	emacs? ( app-emacs/mew-3.3 )
21
	!emacs? ( net-mail/metamail )
22
	!static? ( >=dev-libs/tre-0.6.6 )"
19
23
20
src_unpack() {
24
src_unpack() {
21
	unpack ${A}
25
	unpack ${A}
22
26
23
	cd ${S}
27
	cd ${S}
24
	ln -s ${S}/tre-0.6.4/lib tre
28
	#ln -s ${S}/tre-0.6.6/lib tre
25
	sed -i \
29
	sed -i \
26
		-e "s#^CFLAGS.*#CFLAGS+=${CFLAGS} -I.#" \
30
		-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
31
		Makefile
30
32
31
	cd ${S}/tre-0.6.4
33
	if [ `use static` ] ; then
32
	chmod +x configure
34
		sed -i \
35
			-e "s#-ltre#-L${S}/tre-0.6.6/lib/.libs/ -ltre#g" \
36
			Makefile
37
	else
38
    	sed -i \
39
			-e "s#-static##g" \
40
			Makefile
41
	fi
42
43
    cd ${S}/tre-0.6.6
44
    chmod +x configure
33
}
45
}
34
46
35
src_compile() {
47
src_compile() {
36
	# Build TRE library.
48
	# Build TRE library.
37
	cd ${S}/tre-0.6.4
49
	cd ${S}/tre-0.6.6
38
	econf `use_enable nls` \
50
    econf \
51
		`use_enable nls` \
52
		`use_enable static` \
53
		--enable-system-abi \
39
		--disable-profile \
54
		--disable-profile \
40
		--disable-agrep \
55
		--disable-agrep \
41
		--enable-system-abi \
56
		--disable-debug || die
42
		--disable-shared \
43
		--disable-debug \
44
		--enable-static || die
45
	emake || die
57
	emake || die
46
58
47
	# Build crm114
59
	# Build crm114
Lines 52-57 Link Here
52
src_install() {
64
src_install() {
53
	cd ${S}
65
	cd ${S}
54
	dobin crm114 cssutil cssdiff cssmerge
66
	dobin crm114 cssutil cssdiff cssmerge
67
	dosym crm114 /usr/bin/crm
55
68
56
	dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt
69
	dodoc COLOPHON.txt CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt
57
	dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt
70
	dodoc QUICKREF.txt classify_details.txt inoc_passwd.txt
Lines 59-64 Link Here
59
72
60
	mkdir ${D}/usr/share/${PN}
73
	mkdir ${D}/usr/share/${PN}
61
	cp -a *.crm ${D}/usr/share/${PN}
74
	cp -a *.crm ${D}/usr/share/${PN}
75
	cp -a *.cf ${D}/usr/share/${PN}
76
	cp -a *.mfp ${D}/usr/share/${PN}
62
}
77
}
63
78
64
pkg_postinst() {
79
pkg_postinst() {

Return to bug 41979