dev-util/xmake: add 2.8.6, drop 2.7.9

Closes: https://bugs.gentoo.org/868744
Closes: https://bugs.gentoo.org/902883
Closes: https://bugs.gentoo.org/921286
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-01-09 00:11:25 +09:00
parent 9976d2a7f2
commit e77e309520
2 changed files with 27 additions and 5 deletions

View File

@@ -1 +1 @@
DIST xmake-v2.7.9.tar.gz 2742959 BLAKE2B 61b905b133e687e0f03a16f67e16d973dd098c3bd8987f807e59944633228b73b43426b22b422165df4a46ad4cb031b19cd10ef5300db10f64ee806b8e324d44 SHA512 e725f4c3ffb500d63cf6baa3fde2020b7110b44dfe8e39b3964e0761c120e0738e76dafc3808d243e47f3f202a9b9acfc6ab5a2cf06998e19f38ed8a740182cf
DIST xmake-v2.8.6.tar.gz 2792484 BLAKE2B eee06090c260576cff3fca50998f0e912a41786eb65e1a67119194e0eb20956795eeff092dfa59d92989ad9fe8fc190eb6ce2a35653c54582652a3cb2e1202bd SHA512 86808a38dc6e28a44b64f9598b26eadb8d6314dc2ff14929eb7cbcd0c01172240dd8475e1e88f874abff651436536c7391ad2294fd57b261529dd4560b8c563b

View File

@@ -1,9 +1,9 @@
# Copyright 2021 Gentoo Authors
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
inherit bash-completion-r1 optfeature
DESCRIPTION="A cross-platform build utility based on Lua"
HOMEPAGE="https://xmake.io"
@@ -17,7 +17,7 @@ else
fi
# tarball doesn't provide tests
RESTRICT="test strip"
RESTRICT="test"
LICENSE="Apache-2.0"
SLOT="0"
@@ -38,13 +38,35 @@ DOCS=(
NOTICE.md README.md README_zh.md
)
src_configure(){
src_prepare() {
default
# Don't strip binaries
sed -i 's/"-s"/""/' configure || die
}
src_configure() {
econf --prefix="${EPREFIX}"/usr \
--plat=linux
# --plat=linux is necessary, which enables correct directory:
# build/linux/ARCH other than build/ARCH/ARCH
}
src_install() {
default
doman scripts/man/*
newbashcomp xmake/scripts/completions/register-completions.bash xmake
bashcomp_alias xmake xrepo
insinto /usr/share/zsh/site-functions
newins xmake/scripts/completions/register-completions.zsh xmake.zsh
insinto /usr/share/fish/vendor_completions.d
newins xmake/scripts/completions/register-completions.fish xmake.fish
}
pkg_postinst() {
optfeature "cached compilation for your xmake projects" dev-util/ccache
}