mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sci-libs/dlpack: new package, add 1.1
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
1
sci-libs/dlpack/Manifest
Normal file
1
sci-libs/dlpack/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST dlpack-1.1.tar.gz 198915 BLAKE2B 6e354e1a76f3dd289935c4aaea2707723117ffc7a15f4c51dec6c241a7e02661cc9c2cf46930226fa77eb18cc689801abaecf8b073423f0785f817f2e56fb5e9 SHA512 ff24ddf8a138f20aeede2708327d8239bd3cc4e2223a6fbce1589638dd2d844827ce6af1d3eb1a14165e608f424f5d4ff358c5f55600b150083c6c8b83e35afd
|
||||
36
sci-libs/dlpack/dlpack-1.1.ebuild
Normal file
36
sci-libs/dlpack/dlpack-1.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -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)
|
||||
12
sci-libs/dlpack/metadata.xml
Normal file
12
sci-libs/dlpack/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user