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