Gentoo Archives: gentoo-proxy-maint

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-proxy-maint@l.g.o
Subject: [gentoo-proxy-maint] [PATCH v3] net-nntp/tin: add 2.6.2
Date: Fri, 13 Jan 2023 15:02:28
Message-Id: 20230113150213.13302-1-cyber+gentoo@sysrq.in
In Reply to: [gentoo-proxy-maint] [PATCH] net-nntp/tin: add 2.6.2 by Anna Vyalkova
1 In this update:
2 * New: NNTPS support with different backends (openssl by default)
3 * New: PCRE2 support (enabled by default)
4 * Add missing virtual/libiconv dependency
5 * Add missing sys-devel/gettext bdep
6 * Enable local news support
7 * Drop net-mail/metamail optfeature dep and don't mention it (pmasked)
8 * Export BUILD_* variables
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
11 ---
12
13 Changes since v2:
14 - fixed REQUIRED_USE for gnutls
15 - fixed code style
16 - dropped "--with-socks5" (no effect in gentoo)
17 - replaced "--enable-nntp-only" with "--enable-nntp" for local news
18 support
19
20 net-nntp/tin/Manifest | 1 +
21 net-nntp/tin/metadata.xml | 19 +++---
22 net-nntp/tin/tin-2.6.2.ebuild | 120 ++++++++++++++++++++++++++++++++++
23 3 files changed, 132 insertions(+), 8 deletions(-)
24 create mode 100644 net-nntp/tin/tin-2.6.2.ebuild
25
26 diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest
27 index 035c264e9b..a1a8f0c73e 100644
28 --- a/net-nntp/tin/Manifest
29 +++ b/net-nntp/tin/Manifest
30 @@ -1 +1,2 @@
31 DIST tin-2.6.1.tar.xz 1570500 BLAKE2B ec9c54b8b89ecd33a42ede37c8db50828de2dce56ddff01900121903a18d73bde8a06733ca2dfb72c676eb373b5ea874cecb9a1ee7890ada4ad6539d9ff1a435 SHA512 dc9ace5e24cac1efcaac25df1747dd435573130cff4e9c846c89e8faaed8e8120d66a2021332c01f350744155bcb7be608657285560a1a2457b4635cc8fa22b3
32 +DIST tin-2.6.2.tar.xz 1598732 BLAKE2B 0e5bac9a711fb69e64d64b4f0c070d456f38f727e7b7aa794ad5ada8695c2174023964b8f07d2e7d6add51cf0c7c3102965bef653a7e873275747145cb70dbe2 SHA512 4c9e0edb3268d57fb89d9d53a90e8a5ba73da7c1da63c834224bed0f763502a7c3dd325351d3e57b1ddcb57494a84228cc38f227c49300b759fad8d112b1cac1
33 diff --git a/net-nntp/tin/metadata.xml b/net-nntp/tin/metadata.xml
34 index e9e3c1ae47..22ce019d89 100644
35 --- a/net-nntp/tin/metadata.xml
36 +++ b/net-nntp/tin/metadata.xml
37 @@ -1,12 +1,15 @@
38 <?xml version="1.0" encoding="UTF-8"?>
39 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
40 <pkgmetadata>
41 -<!-- maintainer-needed -->
42 -<upstream>
43 -<doc>http://www.tin.org/bin/man.cgi?section=1&amp;topic=tin</doc>
44 -</upstream>
45 -<use>
46 -<flag name="cancel-locks">Enable Cancel-Lock header functionality</flag>
47 -<flag name="gpg">Enable <pkg>app-crypt/gnupg</pkg> support</flag>
48 -</use>
49 + <!-- maintainer-needed -->
50 + <upstream>
51 + <doc>http://www.tin.org/bin/man.cgi?section=1&amp;topic=tin</doc>
52 + </upstream>
53 + <use>
54 + <flag name="cancel-locks">Enable Cancel-Lock header functionality</flag>
55 + <flag name="gpg">Enable <pkg>app-crypt/gnupg</pkg> support</flag>
56 + <flag name="libtls" restrict="&gt;=net-nntp/tin-2.6.2">Prefer <pkg>dev-libs/libretls</pkg> as SSL/TLS provider (ineffective with USE=-ssl)</flag>
57 + <flag name="openssl" restrict="&gt;=net-nntp/tin-2.6.2">Prefer <pkg>dev-libs/openssl</pkg> as SSL/TLS provider (ineffective with USE=-ssl)</flag>
58 + <flag name="pcre2" restrict="&gt;=net-nntp/tin-2.6.2">Use <pkg>dev-libs/libpcre2</pkg> instead of <pkg>dev-libs/libpcre</pkg></flag>
59 + </use>
60 </pkgmetadata>
61 diff --git a/net-nntp/tin/tin-2.6.2.ebuild b/net-nntp/tin/tin-2.6.2.ebuild
62 new file mode 100644
63 index 0000000000..e4da1a32d8
64 --- /dev/null
65 +++ b/net-nntp/tin/tin-2.6.2.ebuild
66 @@ -0,0 +1,120 @@
67 +# Copyright 1999-2022 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=8
71 +
72 +inherit optfeature toolchain-funcs
73 +
74 +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader"
75 +HOMEPAGE="http://www.tin.org/"
76 +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz"
77 +
78 +LICENSE="BSD"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
81 +IUSE="cancel-locks debug gnutls gpg libtls nls +openssl +pcre2 sasl socks5 ssl"
82 +REQUIRED_USE="
83 + gnutls? ( debug )
84 + ssl? (
85 + ^^ ( gnutls libtls openssl )
86 + )
87 +"
88 +
89 +RDEPEND="
90 + dev-libs/icu:=
91 + dev-libs/uulib
92 + sys-libs/ncurses:=
93 + virtual/libiconv
94 + cancel-locks? ( >=net-libs/canlock-3.0:= )
95 + gpg? ( app-crypt/gnupg )
96 + nls? ( virtual/libintl )
97 + pcre2? ( dev-libs/libpcre2:= )
98 + !pcre2? ( dev-libs/libpcre:3 )
99 + sasl? ( virtual/gsasl )
100 + socks5? ( net-proxy/dante )
101 + ssl? (
102 + gnutls? ( net-libs/gnutls:= )
103 + libtls? ( dev-libs/libretls:= )
104 + openssl? ( dev-libs/openssl:= )
105 + )
106 +"
107 +DEPEND="${RDEPEND}"
108 +BDEPEND="
109 + app-alternatives/yacc
110 + virtual/pkgconfig
111 + nls? ( sys-devel/gettext )
112 +"
113 +
114 +DOCS=(
115 + README{,.MAC,.WIN}
116 + doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering}
117 +)
118 +
119 +src_configure() {
120 + tc-export AR CC RANLIB
121 + tc-export_build_env
122 +
123 + local myeconfargs=(
124 + $(use_enable cancel-locks)
125 + $(use_with cancel-locks canlock)
126 +
127 + $(use_with pcre2 pcre2-config)
128 + $(use_with !pcre2 pcre "${ESYSROOT}"/usr)
129 +
130 + $(use_enable debug)
131 + $(use_enable gpg pgp-gpg)
132 + $(use_enable nls)
133 + $(use_with socks5 socks)
134 + --disable-mime-strict-charset
135 + --enable-nntp
136 + --enable-prototypes
137 + --with-coffee # easter egg :)
138 + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}"
139 + --with-screen=ncursesw
140 + )
141 +
142 + if use ssl; then
143 + if use gnutls; then
144 + myeconfargs+=( --with-nntps=gnutls )
145 + elif use libtls; then
146 + myeconfargs+=( --with-nntps=libtls )
147 + elif use openssl; then
148 + myeconfargs+=( --with-nntps=openssl )
149 + else
150 + eerror "We can't be here because of REQUIRED_USE."
151 + fi
152 + fi
153 +
154 + myeconfargs+=(
155 + # set default paths for utilities
156 + --with-editor="${EPREFIX}"/usr/libexec/editor
157 + --with-gpg="${EPREFIX}"/usr/bin/gpg
158 + --with-ispell="${EPREFIX}"/usr/bin/aspell
159 + --with-mailer="${EPREFIX}"/bin/mail
160 + --with-sum="${EPREFIX}"/usr/bin/sum
161 +
162 + # set default paths for directories
163 + --with-libdir="${EPREFIX}"/var/lib/news
164 + --with-spooldir="${EPREFIX}"/var/spool/news
165 + )
166 +
167 + econf "${myeconfargs[@]}"
168 +}
169 +
170 +src_compile() {
171 + # To build from the root dir you have to call `make build`, not just `make`.
172 + emake build
173 +}
174 +
175 +src_install() {
176 + default
177 +
178 + emake DESTDIR="${D}" install_sysdefs
179 + emake -C src DESTDIR="${D}" install_nls_man
180 +
181 + dodoc doc/{*.sample,*.txt}
182 +}
183 +
184 +pkg_postinst() {
185 + optfeature "spell checker support" app-text/aspell
186 +}
187 --
188 2.39.0