blob: c82a698d354c3531325e5dee9fae3edf0655d74c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
WANT_AUTOCONF="2.1"
inherit autotools 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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ppc sparc x86"
PATCHES=(
"${FILESDIR}"/snarf-basename-patch.diff
"${FILESDIR}"/snarf-unlink-empty.diff
"${FILESDIR}"/snarf-fix-off-by-ones.diff
"${FILESDIR}"/snarf-fix-build-for-clang16.patch
)
src_prepare() {
default
eautoconf
}
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}"'
}
|