1 |
commit: 6e4496c46cfe67d060225164cf50b923c2cd5858 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Tue Aug 23 14:26:15 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 25 02:09:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e4496c4 |
7 |
|
8 |
sys-devel/qbe: new package from ::guru, add 1.0-r1, 9999 |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sys-devel/qbe/Manifest | 1 + |
14 |
sys-devel/qbe/metadata.xml | 12 ++++++++++++ |
15 |
sys-devel/qbe/qbe-1.0-r1.ebuild | 29 +++++++++++++++++++++++++++++ |
16 |
sys-devel/qbe/qbe-9999.ebuild | 29 +++++++++++++++++++++++++++++ |
17 |
4 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/sys-devel/qbe/Manifest b/sys-devel/qbe/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..fd1f19c3fece |
22 |
--- /dev/null |
23 |
+++ b/sys-devel/qbe/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST qbe-1.0.tar.xz 237756 BLAKE2B ca6e1ee81f7329a8aee1f4597de391dcc44595fb8371468360fbcf1a5fc9fa404c614d49e4668fba568fa8d11e753d10b4c46380884fa635a56331b059b69abd SHA512 7f53d4440fda36b21dbf390aa8b9c17ae7c137a6e034dd73ca1c2068d84dbe236a452d86cab8d8bce0b3d66c3f08e70f2bf54bc7cc2e93208cc1900014c18ad1 |
26 |
|
27 |
diff --git a/sys-devel/qbe/metadata.xml b/sys-devel/qbe/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000000..fc3c6c671309 |
30 |
--- /dev/null |
31 |
+++ b/sys-devel/qbe/metadata.xml |
32 |
@@ -0,0 +1,12 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person" proxied="yes"> |
37 |
+ <email>contact@×××××××××.me</email> |
38 |
+ <name>Haelwenn (lanodan) Monnier</name> |
39 |
+ </maintainer> |
40 |
+ <maintainer type="project" proxied="proxy"> |
41 |
+ <email>proxy-maint@g.o</email> |
42 |
+ <name>Proxy Maintainers</name> |
43 |
+ </maintainer> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/sys-devel/qbe/qbe-1.0-r1.ebuild b/sys-devel/qbe/qbe-1.0-r1.ebuild |
47 |
new file mode 100644 |
48 |
index 000000000000..28dcf876539b |
49 |
--- /dev/null |
50 |
+++ b/sys-devel/qbe/qbe-1.0-r1.ebuild |
51 |
@@ -0,0 +1,29 @@ |
52 |
+# Copyright 2021-2022 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+if [[ "${PV}" == "9999" ]]; then |
58 |
+ inherit git-r3 |
59 |
+ EGIT_REPO_URI="git://c9x.me/qbe.git" |
60 |
+else |
61 |
+ SRC_URI="https://c9x.me/compile/release/${P}.tar.xz" |
62 |
+ # 64-bit RISC-V only |
63 |
+ KEYWORDS="~amd64 ~arm64 ~riscv" |
64 |
+fi |
65 |
+ |
66 |
+DESCRIPTION="Pure-C embeddable compiler backend" |
67 |
+HOMEPAGE="https://c9x.me/compile/" |
68 |
+LICENSE="MIT" |
69 |
+SLOT="0" |
70 |
+ |
71 |
+DOCS=( README doc ) |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}" |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ einstalldocs |
79 |
+ emake install DESTDIR="${ED}" PREFIX=/usr |
80 |
+} |
81 |
|
82 |
diff --git a/sys-devel/qbe/qbe-9999.ebuild b/sys-devel/qbe/qbe-9999.ebuild |
83 |
new file mode 100644 |
84 |
index 000000000000..28dcf876539b |
85 |
--- /dev/null |
86 |
+++ b/sys-devel/qbe/qbe-9999.ebuild |
87 |
@@ -0,0 +1,29 @@ |
88 |
+# Copyright 2021-2022 Gentoo Authors |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+ |
91 |
+EAPI=7 |
92 |
+ |
93 |
+if [[ "${PV}" == "9999" ]]; then |
94 |
+ inherit git-r3 |
95 |
+ EGIT_REPO_URI="git://c9x.me/qbe.git" |
96 |
+else |
97 |
+ SRC_URI="https://c9x.me/compile/release/${P}.tar.xz" |
98 |
+ # 64-bit RISC-V only |
99 |
+ KEYWORDS="~amd64 ~arm64 ~riscv" |
100 |
+fi |
101 |
+ |
102 |
+DESCRIPTION="Pure-C embeddable compiler backend" |
103 |
+HOMEPAGE="https://c9x.me/compile/" |
104 |
+LICENSE="MIT" |
105 |
+SLOT="0" |
106 |
+ |
107 |
+DOCS=( README doc ) |
108 |
+ |
109 |
+src_compile() { |
110 |
+ emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}" |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ einstalldocs |
115 |
+ emake install DESTDIR="${ED}" PREFIX=/usr |
116 |
+} |