summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-05-08 08:41:15 +0200
committerAlfredo Tupone <tupone@gentoo.org>2024-05-08 08:41:38 +0200
commit012de2492c318c138ad6a753ab5b815a8a6bcee5 (patch)
tree48c15deccc4a828b02bd0947205c2205fe9bb15f /dev-libs/clog
parentdev-ruby/multipart-post: add 2.4.1 (diff)
downloadgentoo-012de2492c318c138ad6a753ab5b815a8a6bcee5.tar.gz
gentoo-012de2492c318c138ad6a753ab5b815a8a6bcee5.tar.bz2
gentoo-012de2492c318c138ad6a753ab5b815a8a6bcee5.zip
dev-libs/clog: new package, add 2023.11.04
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs/clog')
-rw-r--r--dev-libs/clog/Manifest1
-rw-r--r--dev-libs/clog/clog-2023.11.04.ebuild40
-rw-r--r--dev-libs/clog/files/clog-2023.11.04-test.patch11
-rw-r--r--dev-libs/clog/metadata.xml11
4 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/clog/Manifest b/dev-libs/clog/Manifest
new file mode 100644
index 000000000000..4f863c1a0897
--- /dev/null
+++ b/dev-libs/clog/Manifest
@@ -0,0 +1 @@
+DIST cpuinfo-2023.11.04.tar.gz 3516672 BLAKE2B 4f99781081ae7c0736bac35d8f589918be1466763d57d0b0661c7cdf8a24fccee61d87acae314714bad09da2a15d96d9725b7c2b7a6a9945bb320f96c31b3eb7 SHA512 02dd70f0b95c2cb6d8af4e33072f63f5d72d2314796033ae68bb6b37cb7db18d43dd2cdfedafc896dec0614dbeec9ab507f765f3d958fbda8c0ab3e3a191a87c
diff --git a/dev-libs/clog/clog-2023.11.04.ebuild b/dev-libs/clog/clog-2023.11.04.ebuild
new file mode 100644
index 000000000000..0be86df35182
--- /dev/null
+++ b/dev-libs/clog/clog-2023.11.04.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+CommitId=d6860c477c99f1fce9e28eb206891af3c0e1a1d7
+
+DESCRIPTION="CPU INFOrmation library"
+HOMEPAGE="https://github.com/pytorch/cpuinfo/"
+SRC_URI="https://github.com/pytorch/cpuinfo/archive/${CommitId}.tar.gz
+ -> cpuinfo-${PV}.tar.gz"
+
+S="${WORKDIR}"/clog
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="!<dev-libs/cpuinfo-${PV}"
+BDEPEND="test? ( dev-cpp/gtest )"
+RESTRICT="!test? ( test )"
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+src_unpack() {
+ unpack "${A}"
+ mv cpuinfo-${CommitId}/deps/clog clog || die
+ rm -r cpuinfo-${CommitId} || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_SYSTEM_LIBS=ON
+ -DUSE_SYSTEM_GOOGLETEST=ON
+ -DCLOG_BUILD_TESTS=$(usex test ON OFF)
+ )
+ cmake_src_configure
+}
diff --git a/dev-libs/clog/files/clog-2023.11.04-test.patch b/dev-libs/clog/files/clog-2023.11.04-test.patch
new file mode 100644
index 000000000000..e8027d5962e4
--- /dev/null
+++ b/dev-libs/clog/files/clog-2023.11.04-test.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt 2024-05-08 08:34:01.195300008 +0200
++++ b/CMakeLists.txt 2024-05-08 08:34:19.850068094 +0200
+@@ -93,7 +93,7 @@
+
+ ADD_EXECUTABLE(clog-test test/clog.cc)
+ SET_TARGET_PROPERTIES(clog-test PROPERTIES
+- CXX_STANDARD 11
++ CXX_STANDARD 14
+ CXX_EXTENSIONS NO)
+ CLOG_TARGET_RUNTIME_LIBRARY(clog-test)
+ TARGET_LINK_LIBRARIES(clog-test PRIVATE clog gtest gtest_main)
diff --git a/dev-libs/clog/metadata.xml b/dev-libs/clog/metadata.xml
new file mode 100644
index 000000000000..eec896ddc47d
--- /dev/null
+++ b/dev-libs/clog/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pytorch/cpuinfo</remote-id>
+ </upstream>
+</pkgmetadata>