mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
40 lines
735 B
Bash
40 lines
735 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
MY_PV=${PV/_/-}
|
|
|
|
DESCRIPTION="A makefile generation tool"
|
|
HOMEPAGE="https://premake.github.io"
|
|
SRC_URI="https://github.com/premake/premake-core/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-core-${MY_PV}"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="5"
|
|
KEYWORDS="amd64 ~arm64 ppc ~ppc64 x86"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-5.0.0-remove-hardcoded-libpath.patch"
|
|
"${FILESDIR}/${PN}-5.0.0-c99.patch"
|
|
)
|
|
|
|
src_compile() {
|
|
# bug #773505
|
|
tc-export AR CC
|
|
|
|
emake -f Bootstrap.mak linux
|
|
}
|
|
|
|
src_test() {
|
|
bin/release/premake${SLOT} test || die
|
|
}
|
|
|
|
src_install() {
|
|
dobin bin/release/premake${SLOT}
|
|
|
|
einstalldocs
|
|
}
|