Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 260370
Collapse All | Expand All

(-)/usr/portage/net-nntp/tin/tin-1.8.3.ebuild (-10 / +28 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
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: /var/cvsroot/gentoo-x86/net-nntp/tin/tin-1.8.3.ebuild,v 1.7 2009/03/08 10:30:25 cla Exp $
3
# $Header: $
4
4
5
EAPI="2"
5
EAPI="2"
6
6
Lines 13-19 Link Here
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 arm ia64 ppc sparc x86"
15
KEYWORDS="~amd64 arm ia64 ppc sparc x86"
16
IUSE="crypt debug idn ipv6 nls unicode"
16
IUSE="cancel-locks crypt debug evil forgery idn ipv6 nls unicode socks5 no-etiquette"
17
17
18
DEPEND="dev-libs/libpcre
18
DEPEND="dev-libs/libpcre
19
	dev-libs/uulib
19
	dev-libs/uulib
Lines 21-41 Link Here
21
	unicode? ( dev-libs/icu sys-libs/ncurses[unicode] )
21
	unicode? ( dev-libs/icu sys-libs/ncurses[unicode] )
22
	!unicode? ( sys-libs/ncurses )
22
	!unicode? ( sys-libs/ncurses )
23
	nls? ( sys-devel/gettext )
23
	nls? ( sys-devel/gettext )
24
	crypt? ( app-crypt/gnupg )"
24
	crypt? ( app-crypt/gnupg )
25
	socks5? ( net-proxy/dante )"
25
RDEPEND="${DEPEND}
26
RDEPEND="${DEPEND}
26
	net-misc/urlview"
27
	net-misc/urlview"
27
28
28
src_unpack() {
29
	unpack ${A}
30
	cd "${S}"
31
32
	epatch "${FILESDIR}"/1.8.2-various.patch
33
}
34
29
35
src_configure() {
30
src_configure() {
31
	if use evil
32
	then
33
		sed -i -e"s/# -DEVIL_INSIDE/-DEVIL_INSIDE/" src/Makefile.in
34
	fi
35
	
36
	if use forgery
37
	then
38
		sed -i -e"s/^CPPFLAGS.*/& -DFORGERY/" src/Makefile.in
39
	fi
40
	
36
	local screen="ncurses"
41
	local screen="ncurses"
37
42
38
	use unicode && screen="ncursesw"
43
	use unicode && screen="ncursesw"
44
	
45
	if use no-etiquette; then
46
		myconf="${myconf} --disable-etiquette"
47
	fi
48
	
49
	if ! use evil && use cancel-locks; then 
50
		die "USE=cancel-locks requires also USE=evil to generate MIDs and the Cancel-Lock:-Header."
51
	fi
39
52
40
	econf \
53
	econf \
41
		--with-pcre=/usr \
54
		--with-pcre=/usr \
Lines 44-56 Link Here
44
		--disable-echo \
57
		--disable-echo \
45
		--disable-mime-strict-charset \
58
		--disable-mime-strict-charset \
46
		--with-coffee  \
59
		--with-coffee  \
47
		--enable-fascist-newsadmin \
48
		--with-screen=${screen} \
60
		--with-screen=${screen} \
49
		--with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \
61
		--with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \
50
		$(use_enable ipv6) \
62
		$(use_enable ipv6) \
51
		$(use_enable debug) \
63
		$(use_enable debug) \
52
		$(use_enable crypt pgp-gpg) \
64
		$(use_enable crypt pgp-gpg) \
53
		$(use_enable nls) \
65
		$(use_enable nls) \
66
		$(use_enable cancel-locks) \
67
		$(use_with socks5) \
68
		${myconf} \
54
		|| die "econf failed"
69
		|| die "econf failed"
55
}
70
}
56
71
Lines 59-64 Link Here
59
}
74
}
60
75
61
src_install() {
76
src_install() {
77
	if has_version mail-client/mutt; then
78
		rm doc/mmdf.5 doc/mbox.5
79
	fi
62
	make DESTDIR="${D}" install || die "make install failed"
80
	make DESTDIR="${D}" install || die "make install failed"
63
81
64
	dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,*.sample,*.txt} || die "dodoc failed"
82
	dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,*.sample,*.txt} || die "dodoc failed"

Return to bug 260370