mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-09 00:10:21 +03:00
See: https://github.com/BLAKE3-team/BLAKE3/pull/405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/38021 Signed-off-by: Michał Górny <mgorny@gentoo.org>
32 lines
826 B
Bash
32 lines
826 B
Bash
# Copyright 2023-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
inherit cmake python-any-r1
|
|
|
|
DESCRIPTION="a fast cryptographic hash function"
|
|
HOMEPAGE="https://github.com/BLAKE3-team/BLAKE3"
|
|
SRC_URI="https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/BLAKE3-${PV}/c"
|
|
|
|
LICENSE="|| ( CC0-1.0 Apache-2.0 )"
|
|
SLOT="0/0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
PATCHES=( "${FILESDIR}/${PN}-1.5.3-backport-pr405.patch" )
|
|
BDEPEND="test? ( ${PYTHON_DEPS} )"
|
|
|
|
pkg_setup() {
|
|
use test && python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBLAKE3_BUILD_TESTING="$(usex test)"
|
|
)
|
|
cmake_src_configure
|
|
}
|