summaryrefslogtreecommitdiff
path: root/sci-ml/foxi/foxi-2021.05.27.ebuild
blob: a80ac4d0b79c8de2bdd4bc4a92b1c14ad42bf04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit cmake dot-a

CommitId=c278588e34e535f0bb8f00df3880d26928038cad

DESCRIPTION="ONNXIFI with Facebook Extension"
HOMEPAGE="https://github.com/houseroad/foxi/"
SRC_URI="https://github.com/houseroad/${PN}/archive/${CommitId}.tar.gz
	-> ${P}.tar.gz"

S="${WORKDIR}"/${PN}-${CommitId}

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64"

RESTRICT="test" # No test available

PATCHES=(
	"${FILESDIR}"/${P}-gentoo.patch
	"${FILESDIR}"/${P}-cmake.patch
)

src_configure() {
	lto-guarantee-fat
	cmake_src_configure
}

src_install() {
	cmake_src_install
	strip-lto-bytecode
}