* [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dlpack/, sci-libs/dlpack/files/
@ 2025-08-19 13:58 David Roman
0 siblings, 0 replies; only message in thread
From: David Roman @ 2025-08-19 13:58 UTC (permalink / raw
To: gentoo-commits
commit: dc6ffbed82fd8e19d80da87391835d14279d7083
Author: Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Fri Aug 15 13:40:46 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Aug 19 13:26:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dc6ffbed
sci-libs/dlpack: new package, add 1.1
Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>
sci-libs/dlpack/Manifest | 1 +
sci-libs/dlpack/dlpack-1.1.ebuild | 36 ++++++++++++++++++++++
...n-warnings-into-errors-when-building-docs.patch | 16 ++++++++++
sci-libs/dlpack/metadata.xml | 12 ++++++++
4 files changed, 65 insertions(+)
diff --git a/sci-libs/dlpack/Manifest b/sci-libs/dlpack/Manifest
new file mode 100644
index 0000000000..7ea4318314
--- /dev/null
+++ b/sci-libs/dlpack/Manifest
@@ -0,0 +1 @@
+DIST dlpack-1.1.tar.gz 198915 BLAKE2B 6e354e1a76f3dd289935c4aaea2707723117ffc7a15f4c51dec6c241a7e02661cc9c2cf46930226fa77eb18cc689801abaecf8b073423f0785f817f2e56fb5e9 SHA512 ff24ddf8a138f20aeede2708327d8239bd3cc4e2223a6fbce1589638dd2d844827ce6af1d3eb1a14165e608f424f5d4ff358c5f55600b150083c6c8b83e35afd
diff --git a/sci-libs/dlpack/dlpack-1.1.ebuild b/sci-libs/dlpack/dlpack-1.1.ebuild
new file mode 100644
index 0000000000..cb9dd0b68f
--- /dev/null
+++ b/sci-libs/dlpack/dlpack-1.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Common in-memory tensor structure"
+HOMEPAGE="https://github.com/dmlc/dlpack"
+SRC_URI="https://github.com/dmlc/dlpack/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+ app-text/doxygen
+ dev-python/breathe
+ dev-python/pydata-sphinx-theme
+ dev-python/sphinx
+)"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.1-dont-turn-warnings-into-errors-when-building-docs.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCS=$(usex doc)
+ -DBUILD_MOCK=$(usex test)
+ )
+
+ cmake_src_configure
+}
diff --git a/sci-libs/dlpack/files/dlpack-1.1-dont-turn-warnings-into-errors-when-building-docs.patch b/sci-libs/dlpack/files/dlpack-1.1-dont-turn-warnings-into-errors-when-building-docs.patch
new file mode 100644
index 0000000000..61f80f81c1
--- /dev/null
+++ b/sci-libs/dlpack/files/dlpack-1.1-dont-turn-warnings-into-errors-when-building-docs.patch
@@ -0,0 +1,16 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Don't turn warnings into errors when building docs.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- a/docs/CMakeLists.txt
++++ b/docs/CMakeLists.txt
+@@ -29,7 +29,7 @@ set(doxygen_xml_builddir ${doxygen_output_dir}/xml)
+ add_custom_target(Sphinx ALL
+ COMMAND ${SPHINX_EXECUTABLE} -b html
+ -Dbreathe_projects.dlpack=${doxygen_xml_builddir}
+- ${sphinx_source} ${sphinx_build} -WT --keep-going
++ ${sphinx_source} ${sphinx_build} -T --keep-going
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "Generating documentation with Sphinx"
+ VERBATIM)
diff --git a/sci-libs/dlpack/metadata.xml b/sci-libs/dlpack/metadata.xml
new file mode 100644
index 0000000000..6872f976b4
--- /dev/null
+++ b/sci-libs/dlpack/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@paveloom.dev</email>
+ <name>Pavel Sobolev</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/dmlc/dlpack/issues</bugs-to>
+ <remote-id type="github">dmlc/dlpack</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-19 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-19 13:58 [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dlpack/, sci-libs/dlpack/files/ David Roman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox