gjdwebserver-overlay/net-fs/s3fs/s3fs-1.95.ebuild

71 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2024-03-23 22:49:05 +01:00
# Copyright 1999-2024 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/"
2024-12-11 10:13:34 +01:00
SRC_URI="
https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz
-> ${P}.tar.gz
"
S="${WORKDIR}/${MY_P}"
2024-03-23 22:49:05 +01:00
LICENSE="GPL-2+"
SLOT="0"
2024-12-11 10:13:34 +01:00
KEYWORDS="!amd64 ~riscv ~x86 ~arm ~arm64"
2024-03-23 22:49:05 +01:00
IUSE="gnutls nettle nss"
REQUIRED_USE="nettle? ( gnutls !nss )"
# Requires active internet connection and it tries to download some binaries for later execution
RESTRICT="test"
DEPEND="
dev-libs/libxml2:2
net-misc/curl
sys-fs/fuse:0
nss? ( dev-libs/nss )
!nss? (
gnutls? (
net-libs/gnutls:=
nettle? ( dev-libs/nettle:= )
)
!gnutls? ( dev-libs/openssl:0= )
)
"
2024-12-11 10:13:34 +01:00
RDEPEND="
${DEPEND}
2024-03-23 22:49:05 +01:00
app-misc/mime-types
"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
sed -i 's/ -D_FORTIFY_SOURCE=3//' configure.ac || die
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_with nettle)
)
if use nss; then
myeconfargs+=( $(use_with nss) )
elif use gnutls; then
myeconfargs+=( $(use_with gnutls) )
else
myeconfargs+=( --with-openssl )
fi
econf "${myeconfargs[@]}"
}