logo

overlay

My (experimental) gentoo overlay
commit: 9912d3198d6df1fbcbc185701e0d360f2e43aa54
parent: df5973bf382c741bf91510cbfee45bdf056aeb05
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 25 Mar 2019 16:59:57 +0100

net-nntp/suck: Bump to 4.3.4 (based on ::gentoo)

Diffstat:

Anet-nntp/suck/metadata.xml15+++++++++++++++
Anet-nntp/suck/suck-4.3.4.ebuild61+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+), 0 deletions(-)

diff --git a/net-nntp/suck/metadata.xml b/net-nntp/suck/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">lazarus-pkgs/suck</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/suck/suck-4.3.4.ebuild b/net-nntp/suck/suck-4.3.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 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 libressl" + +RDEPEND=" + sys-libs/gdbm:= + ssl? ( + !libressl ( dev-libs/openssl:0= ) + libressl ( dev-libs/libressl:= ) + ) +" +DEPEND="${RDEPEND} + sys-libs/db + perl? ( dev-lang/perl ) +" + +src_prepare() { + default + + # 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() { + use ssl || sed -i -e 's/^SSL_/#SSL_/' Makefile.in || die "ssl sed failed" + use perl || sed -i -e 's/^PERL_/#PERL_/' Makefile.in || die "perl sed failed" + + 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/* +}