Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/
Date: Sat, 08 Jan 2022 12:49:21
Message-Id: 1641646146.6f0831d475b261f64bbb12eb8d343892e79c8e6b.juippis@gentoo
1 commit: 6f0831d475b261f64bbb12eb8d343892e79c8e6b
2 Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Jan 8 11:28:34 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 8 12:49:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f0831d4
7
8 net-nntp/tin: add 2.6.1, drop 2.4.5-r1
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 net-nntp/tin/Manifest | 2 +-
14 net-nntp/tin/metadata.xml | 5 ++-
15 net-nntp/tin/tin-2.4.5-r1.ebuild | 74 ----------------------------------
16 net-nntp/tin/tin-2.6.1.ebuild | 87 ++++++++++++++++++++++++++++++++++++++++
17 4 files changed, 91 insertions(+), 77 deletions(-)
18
19 diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest
20 index 001b34ab27e8..a553037d6376 100644
21 --- a/net-nntp/tin/Manifest
22 +++ b/net-nntp/tin/Manifest
23 @@ -1,2 +1,2 @@
24 -DIST tin-2.4.5.tar.xz 1559164 BLAKE2B 4efea88c7f76aef91a848c9ed5d82efac640360e41c515015d406e84ed5ce639bbcd17eff29939312ebf83adb8bb84bc7a4f04833cd7cc0781f92b377a0cb31f SHA512 4ec1c4990ce8d9a46204c0064f19c5c2b99848201c37562f8df76de5be84fdd2bcd35cbc3e9f20233f636522e086ac031a5a9cb65bd22a53eda619dcce86adbc
25 DIST tin-2.6.0.tar.xz 1575564 BLAKE2B 2f42261457b359c63461953335f25de21fd3e54b3730b5db39daf0f25929e8c39a4c89be4d558bed9ce81801d2e3cad3d163c1827d2f3064144d8b2bf34ae645 SHA512 d843bd313fd144fbb5f4c40e3f0f776cab3a974494adc7004ee265235ab538dde520bc72c956d5a8517225fdb50e754b444f25bd3b661ddf51ff9e4135904862
26 +DIST tin-2.6.1.tar.xz 1570500 BLAKE2B ec9c54b8b89ecd33a42ede37c8db50828de2dce56ddff01900121903a18d73bde8a06733ca2dfb72c676eb373b5ea874cecb9a1ee7890ada4ad6539d9ff1a435 SHA512 dc9ace5e24cac1efcaac25df1747dd435573130cff4e9c846c89e8faaed8e8120d66a2021332c01f350744155bcb7be608657285560a1a2457b4635cc8fa22b3
27
28 diff --git a/net-nntp/tin/metadata.xml b/net-nntp/tin/metadata.xml
29 index 4a1d8ee295b7..e9e3c1ae47e8 100644
30 --- a/net-nntp/tin/metadata.xml
31 +++ b/net-nntp/tin/metadata.xml
32 @@ -2,10 +2,11 @@
33 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
34 <pkgmetadata>
35 <!-- maintainer-needed -->
36 +<upstream>
37 +<doc>http://www.tin.org/bin/man.cgi?section=1&amp;topic=tin</doc>
38 +</upstream>
39 <use>
40 <flag name="cancel-locks">Enable Cancel-Lock header functionality</flag>
41 <flag name="gpg">Enable <pkg>app-crypt/gnupg</pkg> support</flag>
42 -<flag name="etiquette" restrict="&lt;net-nntp/tin-2.6.0">Enable the display off posting etiquettes</flag>
43 -<flag name="mime" restrict="&lt;net-nntp/tin-2.6.0">Add MIME support</flag>
44 </use>
45 </pkgmetadata>
46
47 diff --git a/net-nntp/tin/tin-2.4.5-r1.ebuild b/net-nntp/tin/tin-2.4.5-r1.ebuild
48 deleted file mode 100644
49 index a5435105bbfb..000000000000
50 --- a/net-nntp/tin/tin-2.4.5-r1.ebuild
51 +++ /dev/null
52 @@ -1,74 +0,0 @@
53 -# Copyright 1999-2021 Gentoo Authors
54 -# Distributed under the terms of the GNU General Public License v2
55 -
56 -EAPI=7
57 -
58 -inherit toolchain-funcs
59 -
60 -DESCRIPTION="A threaded NNTP and spool based UseNet newsreader"
61 -HOMEPAGE="http://www.tin.org/"
62 -SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz"
63 -
64 -LICENSE="BSD GPL-2+"
65 -SLOT="0"
66 -KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
67 -IUSE="cancel-locks debug doc +etiquette gpg idn ipv6 mime nls sasl socks5 spell unicode"
68 -
69 -BDEPEND="virtual/pkgconfig"
70 -RDEPEND="
71 - dev-libs/libpcre
72 - dev-libs/uulib
73 - sys-libs/ncurses:=[unicode(+)?]
74 - gpg? ( app-crypt/gnupg )
75 - idn? ( net-dns/libidn )
76 - mime? ( net-mail/metamail )
77 - nls? ( sys-devel/gettext )
78 - sasl? ( virtual/gsasl )
79 - socks5? ( net-proxy/dante )
80 - unicode? ( dev-libs/icu:= )"
81 -DEPEND="${RDEPEND}"
82 -
83 -src_configure() {
84 - local screen="ncurses"
85 - use unicode && screen="ncursesw"
86 -
87 - tc-export AR CC RANLIB
88 -
89 - econf \
90 - $(use_enable cancel-locks) \
91 - $(use_enable debug) \
92 - $(use_enable etiquette) \
93 - $(use_enable gpg pgp-gpg) \
94 - $(use_enable ipv6) \
95 - $(use_enable nls) \
96 - $(use_with mime metamail /usr) \
97 - $(use_with socks5 socks) $(use_with socks5) \
98 - $(use_with spell ispell /usr) \
99 - --disable-mime-strict-charset \
100 - --enable-echo \
101 - --enable-nntp-only \
102 - --enable-prototypes \
103 - --with-coffee \
104 - --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \
105 - --with-pcre=/usr \
106 - --with-screen=${screen}
107 -}
108 -
109 -src_compile() {
110 - # To build from the root dir you have to call `make build`, not just
111 - # `make`.
112 - emake build
113 -}
114 -
115 -src_install() {
116 - default
117 -
118 - # File collision?
119 - rm -f "${ED}"/usr/share/man/man5/{mbox,mmdf}.5
120 -
121 - dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW}
122 - use doc && dodoc doc/{*.sample,*.txt}
123 -
124 - insinto /etc/tin
125 - doins doc/tin.defaults
126 -}
127
128 diff --git a/net-nntp/tin/tin-2.6.1.ebuild b/net-nntp/tin/tin-2.6.1.ebuild
129 new file mode 100644
130 index 000000000000..d9d070ef4f73
131 --- /dev/null
132 +++ b/net-nntp/tin/tin-2.6.1.ebuild
133 @@ -0,0 +1,87 @@
134 +# Copyright 1999-2022 Gentoo Authors
135 +# Distributed under the terms of the GNU General Public License v2
136 +
137 +EAPI=8
138 +
139 +inherit optfeature toolchain-funcs
140 +
141 +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader"
142 +HOMEPAGE="http://www.tin.org/"
143 +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz"
144 +
145 +LICENSE="BSD"
146 +SLOT="0"
147 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
148 +IUSE="cancel-locks debug gpg nls sasl socks5"
149 +
150 +RDEPEND="
151 + dev-libs/icu:=
152 + dev-libs/libpcre:3
153 + dev-libs/uulib
154 + sys-libs/ncurses:=[unicode(+)]
155 + cancel-locks? ( >=net-libs/canlock-3.0:= )
156 + gpg? ( app-crypt/gnupg )
157 + nls? ( virtual/libintl )
158 + sasl? ( virtual/gsasl )
159 + socks5? ( net-proxy/dante )
160 +"
161 +DEPEND="${RDEPEND}"
162 +BDEPEND="
163 + virtual/pkgconfig
164 + virtual/yacc
165 +"
166 +
167 +DOCS=(
168 + README{,.MAC,.WIN}
169 + doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering}
170 +)
171 +
172 +src_configure() {
173 + tc-export AR CC RANLIB
174 +
175 + econf_args=(
176 + $(use_enable cancel-locks) $(use_with cancel-locks canlock)
177 + $(use_enable debug)
178 + $(use_enable gpg pgp-gpg)
179 + $(use_enable nls)
180 + $(use_with socks5 socks) $(use_with socks5)
181 + --disable-mime-strict-charset
182 + --enable-nntp-only
183 + --enable-prototypes
184 + --with-coffee
185 + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}"
186 + --with-pcre=/usr
187 + --with-screen=ncursesw
188 + )
189 +
190 + # set default paths for utilities
191 + econf_args+=(
192 + --with-editor="${EPREFIX}"/usr/libexec/editor
193 + --with-gpg="${EPREFIX}"/usr/bin/gpg
194 + --with-ispell="${EPREFIX}"/usr/bin/aspell
195 + --with-mailer="${EPREFIX}"/bin/mail
196 + --with-metamail="${EPREFIX}"/usr/bin/metamail
197 + --with-sum="${EPREFIX}"/usr/bin/sum
198 + )
199 +
200 + econf "${econf_args[@]}"
201 +}
202 +
203 +src_compile() {
204 + # To build from the root dir you have to call `make build`, not just
205 + # `make`.
206 + emake build
207 +}
208 +
209 +src_install() {
210 + default
211 + emake DESTDIR="${D}" install_sysdefs
212 + emake -C src DESTDIR="${D}" install_nls_man
213 +
214 + dodoc doc/{*.sample,*.txt}
215 +}
216 +
217 +pkg_postinst() {
218 + optfeature "MIME articles support" net-mail/metamail
219 + optfeature "spell checker support" app-text/aspell
220 +}