summaryrefslogtreecommitdiff
blob: fded3ccf1ec6d02a944a92b0ff15873aa0098e85 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

MY_PN=${PN}-fuse
MY_P=${MY_PN}-${PV}

DESCRIPTION="Amazon S3 mounting via fuse"
HOMEPAGE="https://github.com/s3fs-fuse/s3fs-fuse/"
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
IUSE="gnutls nettle nss +openssl test"
REQUIRED_USE="
	^^ ( gnutls nss openssl )
	nettle? ( gnutls )"

# Requires active internet connection
RESTRICT="test"

DEPEND="
	dev-libs/libxml2:2
	net-misc/curl
	sys-fs/fuse:0
	gnutls? ( net-libs/gnutls:= )
	nettle? ( dev-libs/nettle:= )
	nss? ( dev-libs/nss )
	openssl? ( dev-libs/openssl:0= )
"

RDEPEND="${DEPEND}
	app-misc/mime-types
"

BDEPEND="virtual/pkgconfig"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		$(use_with gnutls)
		$(use_with nettle)
		$(use_with nss)
		$(use_with openssl)
	)
	econf "${myeconfargs[@]}"
}