mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-util/xmake: new package, add 2.7.1, 9999
Signed-off-by: YingChi Long <me@inclyc.cn>
This commit is contained in:
51
dev-util/xmake/xmake-2.7.1.ebuild
Normal file
51
dev-util/xmake/xmake-2.7.1.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit optfeature
|
||||
|
||||
DESCRIPTION="A cross-platform build utility based on Lua."
|
||||
HOMEPAGE="https://xmake.io"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/xmake-io/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/xmake-io/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~riscv ~x86"
|
||||
# extraction path may change in future
|
||||
S="${WORKDIR}"
|
||||
fi
|
||||
|
||||
# tarball doesn't provide tests
|
||||
RESTRICT="test"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
virtual/pkgconfig
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=(
|
||||
CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md
|
||||
NOTICE.md README.md README_zh.md
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
emake PREFIX="/usr" DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "cached compilation for your xmake projects" dev-util/ccache
|
||||
}
|
||||
Reference in New Issue
Block a user