commit:     9c0c78c41756c4c7d0c6d709ae81d0b952fbc21f
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Mar 15 18:26:46 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 21 02:17:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0c78c4

net-nntp/suck: add 4.3.5

Closes: https://bugs.gentoo.org/875035
Closes: https://bugs.gentoo.org/927069
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/35770
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-nntp/suck/Manifest          |  1 +
 net-nntp/suck/suck-4.3.5.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/net-nntp/suck/Manifest b/net-nntp/suck/Manifest
index 86e5bad5072b..1cc682475499 100644
--- a/net-nntp/suck/Manifest
+++ b/net-nntp/suck/Manifest
@@ -1 +1,2 @@
 DIST suck-4.3.4.tar.gz 153774 BLAKE2B 
dc7943af43a305386872995a27b6e2faf34949813960314cbf85c4f2ad1658107480cdf77241394aa031270afc3faab5fbd30ec19559fb3d4d261fd8fa5e3416
 SHA512 
79892cfce1b569bbd5fb6468a919d77bce82a533c1b70369ab88a2066dc3d4396480b9a56b25e960d6e49cd0f9abad605d841693f086c9d07913798d7ac99730
+DIST suck-4.3.5.tar.gz 153874 BLAKE2B 
ecc7d20f8844890acae94bb154583ace66b02c594514e925500cb9337aa1678622622286aaefedda066e73236d136e2383a846f0013f7e65f657757ae6cee818
 SHA512 
7bf7196db62416800c040ff9afd545c8a62e50a7f8dcb914aef1105d4bdc57ec4c198b1a42d5ad4e3c9455ddca3d516a55ca9cc62c88e010e8ba8eb4fcbeb275

diff --git a/net-nntp/suck/suck-4.3.5.ebuild b/net-nntp/suck/suck-4.3.5.ebuild
new file mode 100644
index 000000000000..37cd11cf40b4
--- /dev/null
+++ b/net-nntp/suck/suck-4.3.5.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Grab news from a remote NNTP server and feed them to another"
+HOMEPAGE="https://lazarus-pkgs.github.io/lazarus-pkgs/suck.html";
+SRC_URI="https://github.com/lazarus-pkgs/suck/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="perl ssl"
+
+RDEPEND="
+       sys-libs/gdbm:=
+       ssl? (
+               dev-libs/openssl:0=
+       )
+"
+DEPEND="${RDEPEND}
+       sys-libs/db
+       perl? ( dev-lang/perl )
+"
+
+src_prepare() {
+       default
+
+       rm java/*.class || die
+
+       # Fix paths to the locations in Gentoo
+       sed -i \
+               -e 's:/usr/bin/rnews:/usr/$(get_libdir)/news/bin/rnews:' \
+               -e 's:/var/lib/news/history:/var/spool/news/db/history:' \
+               suck_config.h || die "path adaption sed failed"
+
+       eautoreconf
+}
+
+src_configure() {
+       if use ssl; then
+               sed -i -e 's/^SSL_/#SSL_/' Makefile.in || die "ssl sed failed"
+       fi
+
+       if use perl; then
+               sed -i -e 's/^PERL_/#PERL_/' Makefile.in || die "perl sed 
failed"
+       fi
+
+       econf --without-inn-lib --without-inn-include
+}
+
+src_compile() {
+       emake phrases.h
+       emake all lpost
+}
+
+src_install() {
+       dobin lmove lpost rpost suck testhost
+       doman man/*
+       dodoc CHANGELOG CONTENTS README*
+       docinto java
+       dodoc java/*
+       docinto perl
+       dodoc perl/*
+       docinto sample
+       dodoc sample/*
+}

Reply via email to