Gentoo Archives: gentoo-proxy-maint

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

Replies

Subject Author
Re: [gentoo-proxy-maint] [PATCH v2] net-nntp/tin: add 2.6.2 Joonas Niilola <juippis@g.o>