Gentoo Archives: gentoo-proxy-maint

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

Replies