You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.0 KiB
58 lines
1.0 KiB
4 years ago
|
# Copyright 2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit toolchain-funcs cmake
|
||
|
|
||
|
DESCRIPTION="SIMD accelerated C++ JSON library"
|
||
|
HOMEPAGE="
|
||
|
https://simdjson.org/
|
||
|
https://github.com/simdjson/simdjson
|
||
|
"
|
||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="Apache-2.0 Boost-1.0"
|
||
|
SLOT="0/4"
|
||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||
|
IUSE="test tools"
|
||
|
|
||
|
BDEPEND="
|
||
|
sys-apps/file
|
||
|
sys-apps/findutils
|
||
|
sys-apps/grep
|
||
|
"
|
||
|
DEPEND="
|
||
|
tools? ( dev-libs/cxxopts:= )
|
||
|
"
|
||
|
|
||
|
REQUIRED_USE="test? ( tools )"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/simdjson-0.7.0-dont-bundle-cssopts.patch"
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -e 's:-Werror ::' -i cmake/simdjson-flags.cmake || die
|
||
|
cmake_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
4 years ago
|
local -a mycmakeargs
|
||
|
|
||
|
if use tools; then
|
||
|
mycmakeargs+=(
|
||
|
-DSIMDJSON_JUST_LIBRARY=OFF
|
||
|
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
|
||
|
-DSIMDJSON_COMPETITION=OFF
|
||
|
)
|
||
|
else
|
||
|
mycmakeargs+=(
|
||
|
-DSIMDJSON_JUST_LIBRARY=ON
|
||
|
)
|
||
|
fi
|
||
4 years ago
|
|
||
|
cmake_src_configure
|
||
|
}
|