Gentoo Archives: gentoo-commits

From: YingChi Long <me@××××××.cn>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/xmake/
Date: Fri, 26 Aug 2022 12:52:57
Message-Id: 1661518349.a3f8536775b50db8c490d63db53e257b56165b9b.me@gentoo
1 commit: a3f8536775b50db8c490d63db53e257b56165b9b
2 Author: YingChi Long <me <AT> inclyc <DOT> cn>
3 AuthorDate: Fri Aug 26 12:50:17 2022 +0000
4 Commit: YingChi Long <me <AT> inclyc <DOT> cn>
5 CommitDate: Fri Aug 26 12:52:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a3f85367
7
8 dev-util/xmake: new package, add 2.7.1, 9999
9
10 Signed-off-by: YingChi Long <me <AT> inclyc.cn>
11
12 dev-util/xmake/Manifest | 1 +
13 dev-util/xmake/metadata.xml | 18 ++++++++++++++
14 dev-util/xmake/xmake-2.7.1.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
15 dev-util/xmake/xmake-9999.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
16 4 files changed, 121 insertions(+)
17
18 diff --git a/dev-util/xmake/Manifest b/dev-util/xmake/Manifest
19 new file mode 100644
20 index 000000000..1aba9b603
21 --- /dev/null
22 +++ b/dev-util/xmake/Manifest
23 @@ -0,0 +1 @@
24 +DIST xmake-v2.7.1.tar.gz 4344324 BLAKE2B 6baec6724f4489f0abe25a5925f87fd952fd59645696014ffe23d33df98e838c7ef53fc948ca4d17feed6063da532fa2a59c691dd76305840f476e5e8f3407bb SHA512 499d1d4ac53b8189d8f68706b45981dd9a3c62018000291616a281b944fedb9d5802502dd9edfb7bc0ee5f0456b839f9f2605d536543994bdfb72d178024742e
25
26 diff --git a/dev-util/xmake/metadata.xml b/dev-util/xmake/metadata.xml
27 new file mode 100644
28 index 000000000..8181c8932
29 --- /dev/null
30 +++ b/dev-util/xmake/metadata.xml
31 @@ -0,0 +1,18 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <upstream>
36 + <bugs-to>https://github.com/xmake-io/xmake/issues</bugs-to>
37 + <remote-id type="github">xmake-io/xmake</remote-id>
38 + </upstream>
39 + <longdescription lang="en">
40 + xmake is a lightweight cross-platform build utility based on Lua. It uses
41 + xmake.lua to maintain project builds. Compared with makefile/CMakeLists.txt,
42 + the configuration syntax is more concise and intuitive. It is very friendly
43 + to novices and can quickly get started in a short time. Let users focus more
44 + on actual project development.
45 + It can compile the project directly like Make/Ninja, or generate project
46 + files like CMake/Meson, and it also has a built-in package management system
47 + to help users solve the integrated use of C/C++ dependent libraries.
48 + </longdescription>
49 +</pkgmetadata>
50
51 diff --git a/dev-util/xmake/xmake-2.7.1.ebuild b/dev-util/xmake/xmake-2.7.1.ebuild
52 new file mode 100644
53 index 000000000..d2044cf5f
54 --- /dev/null
55 +++ b/dev-util/xmake/xmake-2.7.1.ebuild
56 @@ -0,0 +1,51 @@
57 +# Copyright 2021 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +
62 +inherit optfeature
63 +
64 +DESCRIPTION="A cross-platform build utility based on Lua."
65 +HOMEPAGE="https://xmake.io"
66 +
67 +if [[ ${PV} == *9999* ]]; then
68 + inherit git-r3
69 + EGIT_REPO_URI="https://github.com/xmake-io/${PN}.git"
70 +else
71 + SRC_URI="https://github.com/xmake-io/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
72 + KEYWORDS="~amd64 ~riscv ~x86"
73 + # extraction path may change in future
74 + S="${WORKDIR}"
75 +fi
76 +
77 +# tarball doesn't provide tests
78 +RESTRICT="test"
79 +LICENSE="Apache-2.0"
80 +SLOT="0"
81 +
82 +DEPEND="
83 + virtual/pkgconfig
84 + sys-libs/ncurses
85 + sys-libs/readline
86 +"
87 +RDEPEND="${DEPEND}"
88 +BDEPEND="${DEPEND}"
89 +
90 +DOCS=(
91 + CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md
92 + NOTICE.md README.md README_zh.md
93 +)
94 +
95 +src_compile() {
96 + emake build
97 +}
98 +
99 +src_install() {
100 + einstalldocs
101 +
102 + emake PREFIX="/usr" DESTDIR="${D}" install
103 +}
104 +
105 +pkg_postinst() {
106 + optfeature "cached compilation for your xmake projects" dev-util/ccache
107 +}
108
109 diff --git a/dev-util/xmake/xmake-9999.ebuild b/dev-util/xmake/xmake-9999.ebuild
110 new file mode 100644
111 index 000000000..7671f4b44
112 --- /dev/null
113 +++ b/dev-util/xmake/xmake-9999.ebuild
114 @@ -0,0 +1,51 @@
115 +# Copyright 2021 Gentoo Authors
116 +# Distributed under the terms of the GNU General Public License v2
117 +
118 +EAPI=8
119 +
120 +inherit optfeature
121 +
122 +DESCRIPTION="A cross-platform build utility based on Lua."
123 +HOMEPAGE="https://xmake.io"
124 +
125 +if [[ ${PV} == *9999* ]]; then
126 + inherit git-r3
127 + EGIT_REPO_URI="https://github.com/xmake-io/${PN}.git"
128 +else
129 + SRC_URI="https://github.com/xmake-io/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
130 + KEYWORDS="~amd64 ~riscv ~x86"
131 + # extraction path may change in future
132 + S="${WORKDIR}"
133 +fi
134 +
135 +# tarball doesn't provide tests
136 +RESTRICT="test"
137 +LICENSE="Apache-2.0"
138 +SLOT="0"
139 +
140 +DEPEND="
141 + virtual/pkgconfig
142 + sys-libs/ncurses
143 + sys-libs/readline
144 +"
145 +RDEPEND="${DEPEND}"
146 +BDEPEND="${DEPEND}"
147 +
148 +DOCS=(
149 + CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md
150 + NOTICE.md README.md README_zh.md
151 +)
152 +
153 +src_compile() {
154 + emake build
155 +}
156 +
157 +src_install() {
158 + einstalldocs
159 +
160 + emake PREFIX="/usr" DESTDIR="${D}" install
161 +}
162 +
163 +pkg_postinst() {
164 + optfeature "cached compilation for your xmake projects" dev-util/ccache
165 +}