gentoo/dev-libs/asmjit/asmjit-9999.ebuild
Alexander Golubev 6f65779c23
dev-libs/asmjit: add 2025.06.25
Closes: https://bugs.gentoo.org/961099
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43126
Closes: https://github.com/gentoo/gentoo/pull/43126
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-08-05 11:57:29 +02:00

34 lines
708 B
Bash

# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Machine code generation for C++"
HOMEPAGE="https://asmjit.com/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/asmjit/asmjit"
else
CommitId=REPLACE_ME
SRC_URI="https://github.com/asmjit/${PN}/archive/${CommitId}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}"/${PN}-${CommitId}
fi
LICENSE="ZLIB"
SLOT="0"
IUSE="test"
BDEPEND="test? ( dev-cpp/gtest )"
RESTRICT="!test? ( test )"
DOCS=( README.md CONTRIBUTING.md )
src_configure() {
local mycmakeargs=(
-DASMJIT_TEST=$(usex test)
)
cmake_src_configure
}