Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/snarf/
Date: Fri, 06 Jul 2018 21:48:33
Message-Id: 1530913674.784449da19027b79ac828230f6c87d01ab0d1430.asturm@gentoo
1 commit: 784449da19027b79ac828230f6c87d01ab0d1430
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 24 15:18:07 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 21:47:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=784449da
7
8 net-misc/snarf: EAPI7, improve ebuild
9
10 net-misc/snarf/snarf-7.0-r4.ebuild | 38 ++++++++++++++++++++++++++++++++++++++
11 1 file changed, 38 insertions(+)
12
13 diff --git a/net-misc/snarf/snarf-7.0-r4.ebuild b/net-misc/snarf/snarf-7.0-r4.ebuild
14 new file mode 100644
15 index 00000000000..dacf70a7a6c
16 --- /dev/null
17 +++ b/net-misc/snarf/snarf-7.0-r4.ebuild
18 @@ -0,0 +1,38 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=7
23 +
24 +inherit toolchain-funcs
25 +
26 +DESCRIPTION="Small and fast CLI resource grabber for http, gopher, finger, ftp"
27 +HOMEPAGE="https://www.xach.com/snarf/"
28 +SRC_URI="https://www.xach.com/snarf/${P}.tar.gz"
29 +
30 +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
31 +LICENSE="GPL-2"
32 +SLOT="0"
33 +IUSE=""
34 +
35 +PATCHES=(
36 + "${FILESDIR}"/snarf-basename-patch.diff
37 + "${FILESDIR}"/snarf-unlink-empty.diff
38 + "${FILESDIR}"/snarf-fix-off-by-ones.diff
39 +)
40 +
41 +src_compile() {
42 + emake CC="$(tc-getCC)"
43 +}
44 +
45 +src_install() {
46 + dobin snarf
47 + doman snarf.1
48 + dodoc ChangeLog README TODO
49 +}
50 +
51 +pkg_postinst() {
52 + elog 'To use snarf with portage, try these settings in your make.conf'
53 + elog
54 + elog ' FETCHCOMMAND="/usr/bin/snarf -b \${URI} \${DISTDIR}/\${FILE}"'
55 + elog ' RESUMECOMMAND="/usr/bin/snarf -rb \${URI} \${DISTDIR}/\${FILE}"'
56 +}