summaryrefslogtreecommitdiff
path: root/dev-cpp/benchmark/benchmark-1.5.3.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-05 13:50:45 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-05 13:50:45 +0000
commitef6dda3fca8376635682eb43c0fdd4bceaa24d98 (patch)
tree0056adb65e44390b1d01eca1f712d39a44713385 /dev-cpp/benchmark/benchmark-1.5.3.ebuild
parent80851bd19b8e64787d4942afb171b08dbc289a29 (diff)
downloadsrcux-ef6dda3fca8376635682eb43c0fdd4bceaa24d98.tar.gz
srcux-ef6dda3fca8376635682eb43c0fdd4bceaa24d98.tar.xz
srcux-ef6dda3fca8376635682eb43c0fdd4bceaa24d98.zip
Adding metadata
Diffstat (limited to 'dev-cpp/benchmark/benchmark-1.5.3.ebuild')
-rw-r--r--dev-cpp/benchmark/benchmark-1.5.3.ebuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/benchmark/benchmark-1.5.3.ebuild b/dev-cpp/benchmark/benchmark-1.5.3.ebuild
new file mode 100644
index 000000000000..1463b00dc41b
--- /dev/null
+++ b/dev-cpp/benchmark/benchmark-1.5.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~arm64 ~hppa ~ppc64 ~x86"
+IUSE="debug test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBENCHMARK_ENABLE_TESTING=$(usex test)
+ -DBENCHMARK_ENABLE_GTEST_TESTS=OFF
+ -DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF
+ )
+
+ use debug || append-cppflags -DNDEBUG
+
+ cmake_src_configure
+}