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@hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/35770
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Haelwenn (lanodan) Monnier 2024-03-15 19:26:46 +01:00 committed by Sam James
parent f08f1ea103
commit 9c0c78c417
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 69 additions and 0 deletions

View File

@ -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

View File

@ -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/*
}