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 +Subject: [PATCH] Don't turn warnings into errors when building docs. + +Signed-off-by: Pavel Sobolev + +--- 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 @@ + + + + + contact@paveloom.dev + Pavel Sobolev + + + https://github.com/dmlc/dlpack/issues + dmlc/dlpack + +