You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
957 B
52 lines
957 B
5 months ago
|
# Copyright 2022-2024 Gentoo Authors
|
||
6 months ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
5 months ago
|
PYTHON_COMPAT=( python3_{9..12} )
|
||
6 months ago
|
inherit python-any-r1 cmake prefix
|
||
6 months ago
|
|
||
4 months ago
|
CommitId=c7aeac02222978e7673ee5381bfcaa6b60d5d69c
|
||
6 months ago
|
|
||
|
DESCRIPTION="part of the PyTorch Profiler"
|
||
|
HOMEPAGE="https://github.com/pytorch/kineto"
|
||
|
SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
|
||
|
-> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE="test"
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-libs/libfmt
|
||
|
dev-libs/dynolog
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
|
test? ( dev-cpp/gtest )
|
||
|
${PYTHON_DEPS}
|
||
|
"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-0.4.0-gcc13.patch
|
||
|
)
|
||
|
|
||
|
S="${WORKDIR}"/${PN}-${CommitId}
|
||
|
|
||
|
src_prepare() {
|
||
|
cd libkineto
|
||
|
cmake_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
cd libkineto
|
||
|
local mycmakeargs=(
|
||
6 months ago
|
-DLIBKINETO_THIRDPARTY_DIR="${EPREFIX}"/usr/include/
|
||
6 months ago
|
)
|
||
4 months ago
|
eapply $(prefixify_ro "${FILESDIR}"/${PN}-0.4.0_p20231031-gentoo.patch)
|
||
6 months ago
|
|
||
|
cmake_src_configure
|
||
|
}
|