1 |
From: "Anna (cybertailor) Vyalkova" <cyber+gentoo@×××××.in> |
2 |
|
3 |
* set correct LICENSE (main code is licensed under 3-clause BSD, only |
4 |
metamutt script is GPL) |
5 |
|
6 |
* remove "doc" USE flag as unnecessary |
7 |
|
8 |
* remove "etiquette" USE flag (can be toggled in tinrc) |
9 |
|
10 |
* remove "ipv6" USE flag (no external deps) |
11 |
|
12 |
* remove "unicode" USE flag (tin 2.6 builds with ncursesw only) |
13 |
|
14 |
* remove "mime" and "spell" USE flags (optional runtime functionality) |
15 |
|
16 |
* depend unconditionally on dev-libs/icu |
17 |
|
18 |
* depend on virtual/libintl instead of gettext (tarball already has .gmo |
19 |
files) |
20 |
|
21 |
* add yacc build dependency |
22 |
|
23 |
* unbundle libcanlock |
24 |
|
25 |
* gmane.org -> gmane.io |
26 |
|
27 |
* install localized manpages |
28 |
|
29 |
* do not remove mbox.5 and mmdf.5 manpages (e-file reports no |
30 |
collisions) |
31 |
|
32 |
Couldn't reproduce bug #725226 |
33 |
|
34 |
Bug: https://bugs.gentoo.org/725226 |
35 |
Closes: https://bugs.gentoo.org/550620 |
36 |
Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in> |
37 |
--- |
38 |
net-nntp/tin/Manifest | 1 + |
39 |
net-nntp/tin/metadata.xml | 6 +-- |
40 |
net-nntp/tin/tin-2.4.5-r1.ebuild | 2 +- |
41 |
net-nntp/tin/tin-2.6.0.ebuild | 87 ++++++++++++++++++++++++++++++ |
42 |
profiles/arch/arm/package.use.mask | 4 ++ |
43 |
5 files changed, 96 insertions(+), 4 deletions(-) |
44 |
create mode 100644 net-nntp/tin/tin-2.6.0.ebuild |
45 |
|
46 |
diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest |
47 |
index 339871627b9..001b34ab27e 100644 |
48 |
--- a/net-nntp/tin/Manifest |
49 |
+++ b/net-nntp/tin/Manifest |
50 |
@@ -1 +1,2 @@ |
51 |
DIST tin-2.4.5.tar.xz 1559164 BLAKE2B 4efea88c7f76aef91a848c9ed5d82efac640360e41c515015d406e84ed5ce639bbcd17eff29939312ebf83adb8bb84bc7a4f04833cd7cc0781f92b377a0cb31f SHA512 4ec1c4990ce8d9a46204c0064f19c5c2b99848201c37562f8df76de5be84fdd2bcd35cbc3e9f20233f636522e086ac031a5a9cb65bd22a53eda619dcce86adbc |
52 |
+DIST tin-2.6.0.tar.xz 1575564 BLAKE2B 2f42261457b359c63461953335f25de21fd3e54b3730b5db39daf0f25929e8c39a4c89be4d558bed9ce81801d2e3cad3d163c1827d2f3064144d8b2bf34ae645 SHA512 d843bd313fd144fbb5f4c40e3f0f776cab3a974494adc7004ee265235ab538dde520bc72c956d5a8517225fdb50e754b444f25bd3b661ddf51ff9e4135904862 |
53 |
diff --git a/net-nntp/tin/metadata.xml b/net-nntp/tin/metadata.xml |
54 |
index 54d0b1a0158..bd47f200bdb 100644 |
55 |
--- a/net-nntp/tin/metadata.xml |
56 |
+++ b/net-nntp/tin/metadata.xml |
57 |
@@ -3,9 +3,9 @@ |
58 |
<pkgmetadata> |
59 |
<!-- maintainer-needed --> |
60 |
<use> |
61 |
-<flag name="cancel-locks">Enable Cancel-Lock header functionality (also enables USE=evil)</flag> |
62 |
+<flag name="cancel-locks">Enable Cancel-Lock header functionality</flag> |
63 |
<flag name="gpg">Enable <pkg>app-crypt/gnupg</pkg> support</flag> |
64 |
-<flag name="etiquette">Enable the display off posting etiquettes</flag> |
65 |
-<flag name="mime">Add MIME support</flag> |
66 |
+<flag name="etiquette" restrict="<net-nntp/tin-2.6.0">Enable the display off posting etiquettes</flag> |
67 |
+<flag name="mime" restrict="<net-nntp/tin-2.6.0">Add MIME support</flag> |
68 |
</use> |
69 |
</pkgmetadata> |
70 |
diff --git a/net-nntp/tin/tin-2.4.5-r1.ebuild b/net-nntp/tin/tin-2.4.5-r1.ebuild |
71 |
index d9022f05e51..a5435105bbf 100644 |
72 |
--- a/net-nntp/tin/tin-2.4.5-r1.ebuild |
73 |
+++ b/net-nntp/tin/tin-2.4.5-r1.ebuild |
74 |
@@ -9,7 +9,7 @@ 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="GPL-2" |
79 |
+LICENSE="BSD GPL-2+" |
80 |
SLOT="0" |
81 |
KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
82 |
IUSE="cancel-locks debug doc +etiquette gpg idn ipv6 mime nls sasl socks5 spell unicode" |
83 |
diff --git a/net-nntp/tin/tin-2.6.0.ebuild b/net-nntp/tin/tin-2.6.0.ebuild |
84 |
new file mode 100644 |
85 |
index 00000000000..2f0923bd8d9 |
86 |
--- /dev/null |
87 |
+++ b/net-nntp/tin/tin-2.6.0.ebuild |
88 |
@@ -0,0 +1,87 @@ |
89 |
+# Copyright 1999-2021 Gentoo Authors |
90 |
+# Distributed under the terms of the GNU General Public License v2 |
91 |
+ |
92 |
+EAPI=8 |
93 |
+ |
94 |
+inherit optfeature toolchain-funcs |
95 |
+ |
96 |
+DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" |
97 |
+HOMEPAGE="http://www.tin.org/" |
98 |
+SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz" |
99 |
+ |
100 |
+LICENSE="BSD GPL-2+" |
101 |
+SLOT="0" |
102 |
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
103 |
+IUSE="cancel-locks debug gpg nls sasl socks5" |
104 |
+ |
105 |
+RDEPEND=" |
106 |
+ dev-libs/icu:= |
107 |
+ dev-libs/libpcre:3 |
108 |
+ dev-libs/uulib |
109 |
+ sys-libs/ncurses:=[unicode(+)] |
110 |
+ cancel-locks? ( >=net-libs/canlock-3.0:= ) |
111 |
+ gpg? ( app-crypt/gnupg ) |
112 |
+ nls? ( virtual/libintl ) |
113 |
+ sasl? ( virtual/gsasl ) |
114 |
+ socks5? ( net-proxy/dante ) |
115 |
+" |
116 |
+DEPEND="${RDEPEND}" |
117 |
+BDEPEND=" |
118 |
+ virtual/pkgconfig |
119 |
+ virtual/yacc |
120 |
+" |
121 |
+ |
122 |
+DOCS=( |
123 |
+ README{,.MAC,.WIN} |
124 |
+ doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering} |
125 |
+) |
126 |
+ |
127 |
+src_configure() { |
128 |
+ tc-export AR CC RANLIB |
129 |
+ |
130 |
+ econf_args=( |
131 |
+ $(use_enable cancel-locks) $(use_with cancel-locks canlock) |
132 |
+ $(use_enable debug) |
133 |
+ $(use_enable gpg pgp-gpg) |
134 |
+ $(use_enable nls) |
135 |
+ $(use_with socks5 socks) $(use_with socks5) |
136 |
+ --disable-mime-strict-charset |
137 |
+ --enable-nntp-only |
138 |
+ --enable-prototypes |
139 |
+ --with-coffee |
140 |
+ --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}" |
141 |
+ --with-pcre=/usr |
142 |
+ --with-screen=ncursesw |
143 |
+ ) |
144 |
+ |
145 |
+ # set default paths for utilities |
146 |
+ econf_args+=( |
147 |
+ --with-editor="${EPREFIX}"/usr/libexec/editor |
148 |
+ --with-gpg="${EPREFIX}"/usr/bin/gpg |
149 |
+ --with-ispell="${EPREFIX}"/usr/bin/aspell |
150 |
+ --with-mailer="${EPREFIX}"/bin/mail |
151 |
+ --with-metamail="${EPREFIX}"/usr/bin/metamail |
152 |
+ --with-sum="${EPREFIX}"/usr/bin/sum |
153 |
+ ) |
154 |
+ |
155 |
+ econf "${econf_args[@]}" |
156 |
+} |
157 |
+ |
158 |
+src_compile() { |
159 |
+ # To build from the root dir you have to call `make build`, not just |
160 |
+ # `make`. |
161 |
+ emake build |
162 |
+} |
163 |
+ |
164 |
+src_install() { |
165 |
+ default |
166 |
+ emake DESTDIR="${D}" install_sysdefs |
167 |
+ emake -C src DESTDIR="${D}" install_nls_man |
168 |
+ |
169 |
+ dodoc doc/{*.sample,*.txt} |
170 |
+} |
171 |
+ |
172 |
+pkg_postinst() { |
173 |
+ optfeature "view MIME articles" net-mail/metamail |
174 |
+ optfeature "spell checker support" app-text/aspell |
175 |
+} |
176 |
diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask |
177 |
index de57f5b8cf0..0b0f7f6b812 100644 |
178 |
--- a/profiles/arch/arm/package.use.mask |
179 |
+++ b/profiles/arch/arm/package.use.mask |
180 |
@@ -1,6 +1,10 @@ |
181 |
# Copyright 1999-2021 Gentoo Authors |
182 |
# Distributed under the terms of the GNU General Public License v2 |
183 |
|
184 |
+# Anna Vyalkova <cyber@gentoo@×××××.in> (2021-09-04) |
185 |
+# net-libs/canlock not keyworded |
186 |
+>=net-nntp/tin-2.6.0 cancel-locks |
187 |
+ |
188 |
# Sam James <sam@g.o> (2021-08-14) |
189 |
# Needs Raspberry Pi specific applications |
190 |
media-video/mjpg-streamer -input-raspicam |
191 |
-- |
192 |
2.33.0 |