1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs versionator
8 TIN_PV=$(get_version_component_range 1-2)
9 DESCRIPTION="A threaded NNTP and spool based UseNet newsreader"
10 HOMEPAGE="http://www.tin.org/"
11 SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/v${TIN_PV}/${P}.tar.xz"
15 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
16 IUSE="cancel-locks debug doc +etiquette evil forgery gpg idn ipv6 mime nls sasl socks5 spell unicode"
21 gpg? ( app-crypt/gnupg )
22 idn? ( net-dns/libidn )
23 mime? ( net-mail/metamail )
25 nls? ( sys-devel/gettext )
26 sasl? ( virtual/gsasl )
27 socks5? ( net-proxy/dante )
28 sys-libs/ncurses[unicode?]
29 unicode? ( dev-libs/icu:= )
39 sed -i src/Makefile.in -e 's| -s | |g' || die
40 sed -i configure -e '/CFLAGS/s|-g||g' || die
44 if use evil || use cancel-locks; then
45 sed -i -e"s/# -DEVIL_INSIDE/-DEVIL_INSIDE/" src/Makefile.in
50 sed -i -e"s/^CPPFLAGS.*/& -DFORGERY/" src/Makefile.in
53 local screen="ncurses"
54 use unicode && screen="ncursesw"
56 tc-export AR CC RANLIB
59 $(use_enable cancel-locks) \
61 $(use_enable etiquette) \
62 $(use_enable gpg pgp-gpg) \
65 $(use_with mime metamail /usr) \
66 $(use_with socks5 socks) $(use_with socks5) \
67 $(use_with spell ispell /usr) \
68 --disable-mime-strict-charset \
73 --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \
75 --with-screen=${screen}
86 rm -f "${ED}"/usr/share/man/man5/{mbox,mmdf}.5
88 dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW}
89 use doc && dodoc doc/{*.sample,*.txt}
92 doins doc/tin.defaults