dev-cpp/xtl: new package, add 0.7.5

Signed-off-by: Kamal Abdellatif <gentoo.kamal@tgf.pw>
This commit is contained in:
Kamal Abdellatif
2023-02-12 21:16:38 +00:00
parent 1f20f96c55
commit 45227fe0d6
3 changed files with 70 additions and 0 deletions

1
dev-cpp/xtl/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST xtl-0.7.5.tar.gz 160548 BLAKE2B 61d8c8c8e69722e2d29bd70991840650b22f2f440e2ee8100786869e4410ace8a5063cc0101361aedca963607cf046bb46e923fc096e25d731affdf2876ef4fa SHA512 fb447334f68f255d7d28c9202eee2cec70d007c1031f3756a6acd0cc019c0d95ed1d12ec63f2e9fb3df184f9ec305e6a3c808bb88c1e3eb922916ad059d2e856

12
dev-cpp/xtl/metadata.xml Normal file
View 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>gentoo.kamal@tgf.pw</email>
<name>Kamal Abdellatif</name>
</maintainer>
<upstream>
<remote-id type="github">xtensor-stack/xtl</remote-id>
<doc>https://xtl.readthedocs.io/en/latest/</doc>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,57 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit cmake python-any-r1
DESCRIPTION="Algorithms and containers used by the xtensor stack and the xeus stack"
HOMEPAGE="https://github.com/xtensor-stack/xtl"
SRC_URI="https://codeload.github.com/xtensor-stack/${PN}/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc test"
BDEPEND="
doc? (
app-doc/doxygen
$(python_gen_any_dep '
dev-python/breathe[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
')
)
test? ( dev-cpp/doctest )
"
RESTRICT="!test? ( test )"
python_check_deps() {
python_has_version \
"dev-python/breathe[${PYTHON_USEDEP}]" \
"dev-python/sphinx[${PYTHON_USEDEP}]"
}
pkg_setup() {
use doc && python-any-r1_pkg_setup
}
src_configure() {
local mycmakeargs=( -DBUILD_TESTS=$(usex test) )
cmake_src_configure
}
src_compile() {
use test && cmake_src_compile xtest
if use doc; then
cd "${WORKDIR}/${P}/docs" || die
emake html BUILDDIR="${BUILD_DIR}"
HTML_DOCS=( "${BUILD_DIR}/html/." )
fi
}