diff options
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/benchmark/Manifest | 1 | ||||
-rw-r--r-- | dev-cpp/benchmark/benchmark-1.6.1.ebuild | 36 | ||||
-rw-r--r-- | dev-cpp/benchmark/metadata.xml | 3 |
3 files changed, 40 insertions, 0 deletions
diff --git a/dev-cpp/benchmark/Manifest b/dev-cpp/benchmark/Manifest index fcd377803e12..d96cd79330ba 100644 --- a/dev-cpp/benchmark/Manifest +++ b/dev-cpp/benchmark/Manifest @@ -1,2 +1,3 @@ DIST benchmark-1.5.6.tar.gz 177911 BLAKE2B ea4e98cb98471b2b8e2371109b96017bc483459dc924deaa1d9770b065de946ea2d69ca36098c27283f15370699f2475448af1e205cfca3d9c64408f08c202a9 SHA512 b3c1fd4407d660456ae51abd7c427460a2c7b029ab6344e21bb61d3ec84e3b60638b7a719655aa04fb9ca639b6371e553e9de18539aca8dd38c361b4c6522538 DIST benchmark-1.6.0.tar.gz 178527 BLAKE2B b31fdd2a00d80c63102ea81ed9d1392f243e0d6d67ebf7d1e1a3d20cf7702acc68a3ddd3edd6ccbcfe76c01438c492c15f4d0146689587ccf8a3dccd6043ed11 SHA512 83788f64322067cedca4e459dd2b4117a80d3dc480e1ce0a4d9c323827e13cb1969889a6049cd487dc28ecb0ff52c868a73492c738283ee1236e527b0ca8b11d +DIST benchmark-1.6.1.tar.gz 184616 BLAKE2B bcbc69ae4c4f5f21ed8199f34faccf41a9b97d311aaeeba8cecb6acc47780c91d2cb41a1dadfe400accecd46f90f02211a219a0000739c122dc7398ae1fa76a7 SHA512 7d3e3baf5a2d92e9552ab5007c37253b3510ac269edf8922a2794ff3dfbd0bf5b4c519240d4577b1ec30ef9e8a64caa17a809054c3dc7f2b1bcd410596177d67 diff --git a/dev-cpp/benchmark/benchmark-1.6.1.ebuild b/dev-cpp/benchmark/benchmark-1.6.1.ebuild new file mode 100644 index 000000000000..dd6c099e45f6 --- /dev/null +++ b/dev-cpp/benchmark/benchmark-1.6.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A microbenchmark support library" +HOMEPAGE="https://github.com/google/benchmark" +SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="debug doc lto test" + +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.11.0 )" + +src_configure() { + local mycmakeargs=( + -DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF + -DBENCHMARK_ENABLE_DOXYGEN=$(usex doc) + -DBENCHMARK_ENABLE_GTEST_TESTS=$(usex test) + -DBENCHMARK_ENABLE_LTO=$(usex lto) + -DBENCHMARK_ENABLE_TESTING=$(usex test) + -DBENCHMARK_ENABLE_WERROR=OFF + -DBENCHMARK_USE_BUNDLED_GTEST=OFF + ) + + use debug || append-cppflags -DNDEBUG + + cmake_src_configure +} diff --git a/dev-cpp/benchmark/metadata.xml b/dev-cpp/benchmark/metadata.xml index ac75eeab418b..1a6a996e42c9 100644 --- a/dev-cpp/benchmark/metadata.xml +++ b/dev-cpp/benchmark/metadata.xml @@ -10,4 +10,7 @@ <doc lang="en">https://github.com/google/benchmark/tree/master/docs/</doc> <remote-id type="github">google/benchmark</remote-id> </upstream> + <use> + <flag name="lto">Optimize the build using Link Time Optimization (LTO)</flag> + </use> </pkgmetadata> |