From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D02FC158094 for ; Fri, 26 Aug 2022 12:52:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CDF1E0920; Fri, 26 Aug 2022 12:52:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D65C3E0920 for ; Fri, 26 Aug 2022 12:52:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 820E5340BE8 for ; Fri, 26 Aug 2022 12:52:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8FFA4D4 for ; Fri, 26 Aug 2022 12:52:53 +0000 (UTC) From: "YingChi Long" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "YingChi Long" Message-ID: <1661518349.a3f8536775b50db8c490d63db53e257b56165b9b.me@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/xmake/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/xmake/Manifest dev-util/xmake/metadata.xml dev-util/xmake/xmake-2.7.1.ebuild dev-util/xmake/xmake-9999.ebuild X-VCS-Directories: dev-util/xmake/ X-VCS-Committer: me X-VCS-Committer-Name: YingChi Long X-VCS-Revision: a3f8536775b50db8c490d63db53e257b56165b9b X-VCS-Branch: dev Date: Fri, 26 Aug 2022 12:52:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cf317f40-5465-4ae3-9998-b8adbb2aa5c6 X-Archives-Hash: ef3cc5be587e04df99db77bcf83debda commit: a3f8536775b50db8c490d63db53e257b56165b9b Author: YingChi Long inclyc cn> AuthorDate: Fri Aug 26 12:50:17 2022 +0000 Commit: YingChi Long inclyc cn> CommitDate: Fri Aug 26 12:52:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a3f85367 dev-util/xmake: new package, add 2.7.1, 9999 Signed-off-by: YingChi Long inclyc.cn> dev-util/xmake/Manifest | 1 + dev-util/xmake/metadata.xml | 18 ++++++++++++++ dev-util/xmake/xmake-2.7.1.ebuild | 51 +++++++++++++++++++++++++++++++++++++++ dev-util/xmake/xmake-9999.ebuild | 51 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 121 insertions(+) diff --git a/dev-util/xmake/Manifest b/dev-util/xmake/Manifest new file mode 100644 index 000000000..1aba9b603 --- /dev/null +++ b/dev-util/xmake/Manifest @@ -0,0 +1 @@ +DIST xmake-v2.7.1.tar.gz 4344324 BLAKE2B 6baec6724f4489f0abe25a5925f87fd952fd59645696014ffe23d33df98e838c7ef53fc948ca4d17feed6063da532fa2a59c691dd76305840f476e5e8f3407bb SHA512 499d1d4ac53b8189d8f68706b45981dd9a3c62018000291616a281b944fedb9d5802502dd9edfb7bc0ee5f0456b839f9f2605d536543994bdfb72d178024742e diff --git a/dev-util/xmake/metadata.xml b/dev-util/xmake/metadata.xml new file mode 100644 index 000000000..8181c8932 --- /dev/null +++ b/dev-util/xmake/metadata.xml @@ -0,0 +1,18 @@ + + + + + https://github.com/xmake-io/xmake/issues + xmake-io/xmake + + + 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. + + diff --git a/dev-util/xmake/xmake-2.7.1.ebuild b/dev-util/xmake/xmake-2.7.1.ebuild new file mode 100644 index 000000000..d2044cf5f --- /dev/null +++ b/dev-util/xmake/xmake-2.7.1.ebuild @@ -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 +} diff --git a/dev-util/xmake/xmake-9999.ebuild b/dev-util/xmake/xmake-9999.ebuild new file mode 100644 index 000000000..7671f4b44 --- /dev/null +++ b/dev-util/xmake/xmake-9999.ebuild @@ -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 +}