From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2397138334 for ; Fri, 6 Jul 2018 21:48:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25C73E0982; Fri, 6 Jul 2018 21:48:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9016E0982 for ; Fri, 6 Jul 2018 21:48:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8CF4D335C7F for ; Fri, 6 Jul 2018 21:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2446A364 for ; Fri, 6 Jul 2018 21:48:25 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1530913674.784449da19027b79ac828230f6c87d01ab0d1430.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/snarf/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/snarf/snarf-7.0-r4.ebuild X-VCS-Directories: net-misc/snarf/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 784449da19027b79ac828230f6c87d01ab0d1430 X-VCS-Branch: master Date: Fri, 6 Jul 2018 21:48:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 421509d3-ec6a-448c-8567-f4a2108be7b4 X-Archives-Hash: 2feee72c5b0f8e77fd2739745f97637d commit: 784449da19027b79ac828230f6c87d01ab0d1430 Author: Michael Mair-Keimberger gmail com> AuthorDate: Sun Jun 24 15:18:07 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Jul 6 21:47:54 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=784449da net-misc/snarf: EAPI7, improve ebuild net-misc/snarf/snarf-7.0-r4.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/net-misc/snarf/snarf-7.0-r4.ebuild b/net-misc/snarf/snarf-7.0-r4.ebuild new file mode 100644 index 00000000000..dacf70a7a6c --- /dev/null +++ b/net-misc/snarf/snarf-7.0-r4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Small and fast CLI resource grabber for http, gopher, finger, ftp" +HOMEPAGE="https://www.xach.com/snarf/" +SRC_URI="https://www.xach.com/snarf/${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +PATCHES=( + "${FILESDIR}"/snarf-basename-patch.diff + "${FILESDIR}"/snarf-unlink-empty.diff + "${FILESDIR}"/snarf-fix-off-by-ones.diff +) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin snarf + doman snarf.1 + dodoc ChangeLog README TODO +} + +pkg_postinst() { + elog 'To use snarf with portage, try these settings in your make.conf' + elog + elog ' FETCHCOMMAND="/usr/bin/snarf -b \${URI} \${DISTDIR}/\${FILE}"' + elog ' RESUMECOMMAND="/usr/bin/snarf -rb \${URI} \${DISTDIR}/\${FILE}"' +}