Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-scheme/cyclone/
Date: Sun, 16 May 2021 01:25:51
Message-Id: 1621128117.d556962c2268cc3db8858427754b3999a888617c.xgqt@gentoo
1 commit: d556962c2268cc3db8858427754b3999a888617c
2 Author: Maciej Barć <xgqt <AT> riseup <DOT> net>
3 AuthorDate: Sun May 16 01:21:38 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> riseup <DOT> net>
5 CommitDate: Sun May 16 01:21:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d556962c
7
8 dev-scheme/cyclone: add version 0.28.0 and live
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>
12
13 dev-scheme/cyclone/Manifest | 1 +
14 dev-scheme/cyclone/cyclone-0.28.0.ebuild | 51 ++++++++++++++++++++++++++++++++
15 dev-scheme/cyclone/cyclone-9999.ebuild | 51 ++++++++++++++++++++++++++++++++
16 dev-scheme/cyclone/metadata.xml | 24 +++++++++++++++
17 4 files changed, 127 insertions(+)
18
19 diff --git a/dev-scheme/cyclone/Manifest b/dev-scheme/cyclone/Manifest
20 new file mode 100644
21 index 000000000..7d9a1e32b
22 --- /dev/null
23 +++ b/dev-scheme/cyclone/Manifest
24 @@ -0,0 +1 @@
25 +DIST cyclone-0.28.0.tar.gz 3683280 BLAKE2B 7f5e5982104094bbadc9cde545b3d9d21b3f000136ff07543b4fd4f8a5e79799b8adf8c480bc65f15645e62ec9ae5cccc9c5ae9305334ae2ef080eab6d730045 SHA512 e106a0ef779a4829b729a928e30cf80409e6fe6bb14859c595098e0bfe18fcd5d9ba8859d607a55ec2f97b2c58ec8ccb3405b41de34044994441889718c6caec
26
27 diff --git a/dev-scheme/cyclone/cyclone-0.28.0.ebuild b/dev-scheme/cyclone/cyclone-0.28.0.ebuild
28 new file mode 100644
29 index 000000000..7291e1b0f
30 --- /dev/null
31 +++ b/dev-scheme/cyclone/cyclone-0.28.0.ebuild
32 @@ -0,0 +1,51 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +# Cyclone is a self-hosting Scheme to C compiler
37 +# cyclone-bootstrap is the Cyclone SOURCE transpired by it to C
38 +
39 +EAPI=7
40 +
41 +inherit flag-o-matic
42 +
43 +DESCRIPTION="Scheme R7RS to C compiler"
44 +HOMEPAGE="http://justinethier.github.io/cyclone/"
45 +
46 +if [[ "${PV}" == *9999* ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI="https://github.com/justinethier/${PN}-bootstrap.git"
49 +else
50 + SRC_URI="https://github.com/justinethier/${PN}-bootstrap/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64"
52 + S="${WORKDIR}/${PN}-bootstrap-${PV}"
53 +fi
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +
58 +DEPEND="
59 + dev-libs/concurrencykit
60 +"
61 +RDEPEND="
62 + ${DEPEND}
63 +"
64 +
65 +src_configure() {
66 + append-cflags -fPIC -rdynamic -Iinclude
67 + append-ldflags -L. -Wl,--export-dynamic
68 + tc-export CC
69 +}
70 +
71 +src_compile() {
72 + emake
73 +}
74 +
75 +src_test() {
76 + emake test LDFLAGS=""
77 +}
78 +
79 +src_install() {
80 + einstalldocs
81 +
82 + emake PREFIX="/usr" DESTDIR="${D}" install
83 +}
84
85 diff --git a/dev-scheme/cyclone/cyclone-9999.ebuild b/dev-scheme/cyclone/cyclone-9999.ebuild
86 new file mode 100644
87 index 000000000..7291e1b0f
88 --- /dev/null
89 +++ b/dev-scheme/cyclone/cyclone-9999.ebuild
90 @@ -0,0 +1,51 @@
91 +# Copyright 1999-2021 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +# Cyclone is a self-hosting Scheme to C compiler
95 +# cyclone-bootstrap is the Cyclone SOURCE transpired by it to C
96 +
97 +EAPI=7
98 +
99 +inherit flag-o-matic
100 +
101 +DESCRIPTION="Scheme R7RS to C compiler"
102 +HOMEPAGE="http://justinethier.github.io/cyclone/"
103 +
104 +if [[ "${PV}" == *9999* ]]; then
105 + inherit git-r3
106 + EGIT_REPO_URI="https://github.com/justinethier/${PN}-bootstrap.git"
107 +else
108 + SRC_URI="https://github.com/justinethier/${PN}-bootstrap/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
109 + KEYWORDS="~amd64"
110 + S="${WORKDIR}/${PN}-bootstrap-${PV}"
111 +fi
112 +
113 +LICENSE="MIT"
114 +SLOT="0"
115 +
116 +DEPEND="
117 + dev-libs/concurrencykit
118 +"
119 +RDEPEND="
120 + ${DEPEND}
121 +"
122 +
123 +src_configure() {
124 + append-cflags -fPIC -rdynamic -Iinclude
125 + append-ldflags -L. -Wl,--export-dynamic
126 + tc-export CC
127 +}
128 +
129 +src_compile() {
130 + emake
131 +}
132 +
133 +src_test() {
134 + emake test LDFLAGS=""
135 +}
136 +
137 +src_install() {
138 + einstalldocs
139 +
140 + emake PREFIX="/usr" DESTDIR="${D}" install
141 +}
142
143 diff --git a/dev-scheme/cyclone/metadata.xml b/dev-scheme/cyclone/metadata.xml
144 new file mode 100644
145 index 000000000..befb734c7
146 --- /dev/null
147 +++ b/dev-scheme/cyclone/metadata.xml
148 @@ -0,0 +1,24 @@
149 +<?xml version="1.0" encoding="UTF-8"?>
150 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
151 +<pkgmetadata>
152 + <maintainer type="person">
153 + <email>xgqt@××××××.net</email>
154 + <name>Maciej Barć</name>
155 + </maintainer>
156 + <longdescription lang="en">
157 + Cyclone Scheme is a brand-new compiler that allows real-world
158 + application development using the R7RS Scheme Language standard.
159 + We provide modern features and a stable system capable of generating
160 + fast native binaries.
161 + Cheney on the MTA is used by Cyclone's runtime to implement full tail
162 + recursion, continuations, and generational garbage collection.
163 + In addition, the Cheney on the MTA concept has been extended to allow
164 + execution of multiple native threads. An on-the-fly garbage collector
165 + is used to manage the second-generation heap and perform major
166 + collections without "stopping the world".
167 + </longdescription>
168 + <upstream>
169 + <remote-id type="github">justinethier/cyclone-bootstrap</remote-id>
170 + <remote-id type="github">justinethier/cyclone</remote-id>
171 + </upstream>
172 +</pkgmetadata>