dev-build/xmake: moved from dev-util/xmake

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-04-09 19:15:19 +09:00
parent 82dfcfc9e6
commit 5bb445885f
5 changed files with 1 additions and 0 deletions

1
dev-build/xmake/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST xmake-v2.8.8.tar.gz 2810801 BLAKE2B 79a877ebfbd99e034a5bb5767c1522304261024d96338671215dba0fd368737eca0603051c521859276ab811465e6c54548bb02582e5aea9d7c44387846701ec SHA512 538b33cb54a7aefc52edff1cc77144ba3d3b273f11d3b8cfa1cfac744b868467ff3ad0dc3bc39046648819b73badb7e8c9eb485d98cccf81da048a74470831a0

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<bugs-to>https://github.com/xmake-io/xmake/issues</bugs-to>
<remote-id type="github">xmake-io/xmake</remote-id>
</upstream>
<longdescription lang="en">
xmake is a lightweight cross-platform build utility based on Lua. It uses
xmake.lua to maintain project builds. Compared with makefile/CMakeLists.txt,
the configuration syntax is more concise and intuitive. It is very friendly
to novices and can quickly get started in a short time. Let users focus more
on actual project development.
It can compile the project directly like Make/Ninja, or generate project
files like CMake/Meson, and it also has a built-in package management system
to help users solve the integrated use of C/C++ dependent libraries.
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,68 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature shell-completion
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"
fi
LICENSE="Apache-2.0"
SLOT="0"
# tarball doesn't provide tests
RESTRICT="test"
DEPEND="
sys-libs/ncurses:=
sys-libs/readline:=
"
BDEPEND="
virtual/pkgconfig
"
RDEPEND="
${DEPEND}
${BDEPEND}
"
DOCS=(
CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md
NOTICE.md README.md README_zh.md
)
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
newzshcomp xmake/scripts/completions/register-completions.zsh _xmake
newfishcomp xmake/scripts/completions/register-completions.fish xmake.fish
}
pkg_postinst() {
optfeature "cached compilation for your xmake projects" dev-util/ccache
}

View File

@@ -0,0 +1,68 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature shell-completion
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"
fi
LICENSE="Apache-2.0"
SLOT="0"
# tarball doesn't provide tests
RESTRICT="test"
DEPEND="
sys-libs/ncurses:=
sys-libs/readline:=
"
BDEPEND="
virtual/pkgconfig
"
RDEPEND="
${DEPEND}
${BDEPEND}
"
DOCS=(
CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md
NOTICE.md README.md README_zh.md
)
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
newzshcomp xmake/scripts/completions/register-completions.zsh _xmake
newfishcomp xmake/scripts/completions/register-completions.fish xmake.fish
}
pkg_postinst() {
optfeature "cached compilation for your xmake projects" dev-util/ccache
}