<use>
<flag name="etc_profile">Install /etc/profile.d/ entry to inject nix support for all users.</flag>
<flag name="gc">Enable garbage collection in the Nix expression evaluator (use <pkg>dev-libs/boehm-gc</pkg>).</flag>
+ <flag name="s3">Enable Amazon S3 bucket to load and store packages (use <pkg>dev-libs/aws-sdk-cpp</pkg>).</flag>
<flag name="sodium">Use <pkg>dev-libs/libsodium</pkg> for cryptography</flag>
</use>
</pkgmetadata>
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+etc_profile +gc doc sodium"
+IUSE="+etc_profile +gc doc s3 sodium"
RDEPEND="
app-arch/brotli
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
)
+ s3? ( dev-libs/aws-sdk-cpp )
sodium? ( dev-libs/libsodium:0= )
"
DEPEND="${RDEPEND}
}
src_configure() {
+ local econf_args=()
+
+ if ! use s3; then
+ # Disable automagic depend: bug #670256
+ export ac_cv_header_aws_s3_S3Client_h=no
+ fi
+
econf \
--localstatedir="${EPREFIX}"/nix/var \
- $(use_enable gc)
+ $(use_enable gc) \
+ "${args[@]}"
}
src_compile() {
SLOT="0"
#keywords are blocked by boost-1.66
#KEYWORDS="~amd64 ~x86"
-IUSE="+etc_profile +gc doc sodium"
+IUSE="+etc_profile +gc doc s3 sodium"
RDEPEND="
app-arch/brotli
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
)
+ s3? ( dev-libs/aws-sdk-cpp )
sodium? ( dev-libs/libsodium:0= )
"
DEPEND="${RDEPEND}
}
src_configure() {
+ local econf_args=()
+
+ if ! use s3; then
+ # Disable automagic depend: bug #670256
+ export ac_cv_header_aws_s3_S3Client_h=no
+ fi
econf \
--localstatedir="${EPREFIX}"/nix/var \
- $(use_enable gc)
+ $(use_enable gc) \
+ "${args[@]}"
}
src_compile() {