mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -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:
1
dev-util/xmake/Manifest
Normal file
1
dev-util/xmake/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST xmake-v2.7.1.tar.gz 4344324 BLAKE2B 6baec6724f4489f0abe25a5925f87fd952fd59645696014ffe23d33df98e838c7ef53fc948ca4d17feed6063da532fa2a59c691dd76305840f476e5e8f3407bb SHA512 499d1d4ac53b8189d8f68706b45981dd9a3c62018000291616a281b944fedb9d5802502dd9edfb7bc0ee5f0456b839f9f2605d536543994bdfb72d178024742e
|
||||
18
dev-util/xmake/metadata.xml
Normal file
18
dev-util/xmake/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://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>
|
||||
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
|
||||
}
|
||||
51
dev-util/xmake/xmake-9999.ebuild
Normal file
51
dev-util/xmake/xmake-9999.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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