1 |
commit: 943350c7b5abb647819c5b968f38b93185db3cad |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 28 21:37:52 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 21:37:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=943350c7 |
7 |
|
8 |
dev-scheme: drop gerbil |
9 |
|
10 |
complicated build system, long build time consuming many resources, |
11 |
weird build failures without any descriptions |
12 |
|
13 |
Closes: https://bugs.gentoo.org/807106 |
14 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
15 |
|
16 |
dev-scheme/gerbil/Manifest | 1 - |
17 |
dev-scheme/gerbil/files/70gerbil-gentoo.el | 6 -- |
18 |
dev-scheme/gerbil/files/99gerbil | 1 - |
19 |
dev-scheme/gerbil/gerbil-0.16.ebuild | 119 ----------------------------- |
20 |
dev-scheme/gerbil/gerbil-9999.ebuild | 119 ----------------------------- |
21 |
dev-scheme/gerbil/metadata.xml | 36 --------- |
22 |
6 files changed, 282 deletions(-) |
23 |
|
24 |
diff --git a/dev-scheme/gerbil/Manifest b/dev-scheme/gerbil/Manifest |
25 |
deleted file mode 100644 |
26 |
index d1147d682..000000000 |
27 |
--- a/dev-scheme/gerbil/Manifest |
28 |
+++ /dev/null |
29 |
@@ -1 +0,0 @@ |
30 |
-DIST gerbil-0.16.tar.gz 1715765 BLAKE2B 74cd501b19c8f124f9478c73080e92c2ba0bf92e8cb9faa4cba492b2def8a61633897b67def4200e53962ccf22287f58cf7fdd33604104acc80bde12dd58b07c SHA512 46782b4b71a3b437501b825f2f164e53b285d3a4cdba8f04485edaaa589d8500535c06a47a1464fc537ab7546413dde37c8d6a16a5e076a99ccf255905ed105d |
31 |
|
32 |
diff --git a/dev-scheme/gerbil/files/70gerbil-gentoo.el b/dev-scheme/gerbil/files/70gerbil-gentoo.el |
33 |
deleted file mode 100644 |
34 |
index 019fc534a..000000000 |
35 |
--- a/dev-scheme/gerbil/files/70gerbil-gentoo.el |
36 |
+++ /dev/null |
37 |
@@ -1,6 +0,0 @@ |
38 |
-;;; gerbil site-lisp configuration |
39 |
- |
40 |
-(add-to-list 'load-path "@SITELISP@") |
41 |
- |
42 |
-(autoload 'gerbil-mode "gerbil-mode" nil t) |
43 |
-(add-to-list 'auto-mode-alist '("\\.ss\\'" . gerbil-mode)) |
44 |
|
45 |
diff --git a/dev-scheme/gerbil/files/99gerbil b/dev-scheme/gerbil/files/99gerbil |
46 |
deleted file mode 100644 |
47 |
index 05a894ed6..000000000 |
48 |
--- a/dev-scheme/gerbil/files/99gerbil |
49 |
+++ /dev/null |
50 |
@@ -1 +0,0 @@ |
51 |
-GERBIL_HOME=/usr/share/gerbil |
52 |
|
53 |
diff --git a/dev-scheme/gerbil/gerbil-0.16.ebuild b/dev-scheme/gerbil/gerbil-0.16.ebuild |
54 |
deleted file mode 100644 |
55 |
index c33e3d262..000000000 |
56 |
--- a/dev-scheme/gerbil/gerbil-0.16.ebuild |
57 |
+++ /dev/null |
58 |
@@ -1,119 +0,0 @@ |
59 |
-# Copyright 1999-2021 Gentoo Authors |
60 |
-# Distributed under the terms of the GNU General Public License v2 |
61 |
- |
62 |
-EAPI=8 |
63 |
- |
64 |
-inherit elisp-common toolchain-funcs wrapper xdg-utils |
65 |
- |
66 |
-DESCRIPTION="Dialect of Scheme designed for Systems Programming" |
67 |
-HOMEPAGE="https://cons.io/ https://github.com/vyzo/gerbil" |
68 |
- |
69 |
-if [[ "${PV}" == *9999* ]]; then |
70 |
- inherit git-r3 |
71 |
- EGIT_REPO_URI="https://github.com/vyzo/${PN}.git" |
72 |
-else |
73 |
- SRC_URI="https://github.com/vyzo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
74 |
- KEYWORDS="~amd64" |
75 |
-fi |
76 |
- |
77 |
-LICENSE="Apache-2.0 LGPL-2.1" |
78 |
-SLOT="0" |
79 |
-IUSE="emacs leveldb lmdb mysql +sqlite +xml yaml +zlib" |
80 |
- |
81 |
-BDEPEND="dev-scheme/gambit" |
82 |
-RDEPEND=" |
83 |
- dev-scheme/gambit |
84 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
85 |
- leveldb? ( dev-libs/leveldb ) |
86 |
- lmdb? ( dev-db/lmdb ) |
87 |
- mysql? ( dev-db/mariadb:* ) |
88 |
- sqlite? ( dev-db/sqlite ) |
89 |
- xml? ( dev-libs/libxml2 ) |
90 |
- yaml? ( dev-libs/libyaml ) |
91 |
- zlib? ( sys-libs/zlib ) |
92 |
-" |
93 |
-DEPEND="${RDEPEND}" |
94 |
- |
95 |
-S="${WORKDIR}/${P}/src" |
96 |
- |
97 |
-SITEFILE="70${PN}-gentoo.el" |
98 |
- |
99 |
-src_prepare() { |
100 |
- # Just to be safe, because './configure --help' says: |
101 |
- # "Set default GERBIL_HOME (environment variable still overrides)" |
102 |
- unset GERBIL_HOME |
103 |
- unset GERBIL_PATH |
104 |
- xdg_environment_reset |
105 |
- |
106 |
- # Verbose build process |
107 |
- GAMBCOMP_VERBOSE="yes" |
108 |
- export GAMBCOMP_VERBOSE |
109 |
- |
110 |
- default |
111 |
- |
112 |
- sed -i "s|gcc|$(tc-getCC)|g" ./build.sh || die "Failed to fix CC setting" |
113 |
- sed -i "s|-O2|${CFLAGS}|g" ./build.sh || die "Failed to fix CFLAGS setting" |
114 |
-} |
115 |
- |
116 |
-src_configure() { |
117 |
- local myconf=( |
118 |
- $(use_enable leveldb) |
119 |
- $(use_enable lmdb) |
120 |
- $(use_enable mysql) |
121 |
- $(use_enable xml libxml) |
122 |
- $(use_enable yaml libyaml) |
123 |
- $(usex sqlite '' '--disable-sqlite') |
124 |
- $(usex zlib '' '--disable-zlib') |
125 |
- --prefix="${D}/usr/share/${PN}" |
126 |
- ) |
127 |
- # This is not a standard 'configure' script! |
128 |
- gsi ./configure "${myconf[@]}" || |
129 |
- die "Failed to configure using the 'configure' script" |
130 |
-} |
131 |
- |
132 |
-src_compile() { |
133 |
- # The 'build.sh' script uses environment variables that are exported |
134 |
- # by portage, ie.: CFLAGS, LDFLAGS, ... |
135 |
- sh ./build.sh || |
136 |
- die "Failed to compile using the 'build.sh' script" |
137 |
-} |
138 |
- |
139 |
-src_install() { |
140 |
- mkdir -p "${D}/usr/share/${PN}" || |
141 |
- die "Failed to make ${D}/usr/share/${PN} directory" |
142 |
- gsi ./install || die "Failed to install using the 'install' script" |
143 |
- |
144 |
- sed -i "s|${D}|${EPREFIX}|g" "${D}/usr/share/${PN}/bin/gxc" || |
145 |
- die "Failed to fix the 'gxc' executable script" |
146 |
- |
147 |
- mv "${D}/usr/share/${PN}/share/emacs" "${D}/usr/share/emacs" || |
148 |
- die "Failed to fix '/usr/share/emacs' install path" |
149 |
- mv "${D}/usr/share/${PN}/share/${PN}/TAGS" "${D}/usr/share/${PN}/TAGS" || |
150 |
- die "Failed to fix '/usr/share/gerbil/TAGS' install path" |
151 |
- |
152 |
- # Compile the 'gerbil-mode.el' |
153 |
- if use emacs; then |
154 |
- elisp-compile "${D}/usr/share/emacs/site-lisp/gerbil"/*.el || |
155 |
- die "Failed to compile elisp files" |
156 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
157 |
- fi |
158 |
- |
159 |
- # Create wrappers for gerbil executables in GERBIL_HOME (/usr/share/gerbil) |
160 |
- pushd "${D}/usr/share/${PN}/bin" || die |
161 |
- local gx_bin |
162 |
- for gx_bin in *; do |
163 |
- make_wrapper "${gx_bin}" "env GERBIL_HOME=\"${EPREFIX}/usr/share/${PN}\" ${EPREFIX}/usr/share/${PN}/bin/${gx_bin}" |
164 |
- done |
165 |
- popd || die |
166 |
- |
167 |
- # Without this the programs compiled with gxc will break! |
168 |
- doenvd "${FILESDIR}/99${PN}" |
169 |
-} |
170 |
- |
171 |
-pkg_postinst() { |
172 |
- use emacs && elisp-site-regen |
173 |
-} |
174 |
- |
175 |
-pkg_postrm() { |
176 |
- use emacs && elisp-site-regen |
177 |
-} |
178 |
|
179 |
diff --git a/dev-scheme/gerbil/gerbil-9999.ebuild b/dev-scheme/gerbil/gerbil-9999.ebuild |
180 |
deleted file mode 100644 |
181 |
index c33e3d262..000000000 |
182 |
--- a/dev-scheme/gerbil/gerbil-9999.ebuild |
183 |
+++ /dev/null |
184 |
@@ -1,119 +0,0 @@ |
185 |
-# Copyright 1999-2021 Gentoo Authors |
186 |
-# Distributed under the terms of the GNU General Public License v2 |
187 |
- |
188 |
-EAPI=8 |
189 |
- |
190 |
-inherit elisp-common toolchain-funcs wrapper xdg-utils |
191 |
- |
192 |
-DESCRIPTION="Dialect of Scheme designed for Systems Programming" |
193 |
-HOMEPAGE="https://cons.io/ https://github.com/vyzo/gerbil" |
194 |
- |
195 |
-if [[ "${PV}" == *9999* ]]; then |
196 |
- inherit git-r3 |
197 |
- EGIT_REPO_URI="https://github.com/vyzo/${PN}.git" |
198 |
-else |
199 |
- SRC_URI="https://github.com/vyzo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
200 |
- KEYWORDS="~amd64" |
201 |
-fi |
202 |
- |
203 |
-LICENSE="Apache-2.0 LGPL-2.1" |
204 |
-SLOT="0" |
205 |
-IUSE="emacs leveldb lmdb mysql +sqlite +xml yaml +zlib" |
206 |
- |
207 |
-BDEPEND="dev-scheme/gambit" |
208 |
-RDEPEND=" |
209 |
- dev-scheme/gambit |
210 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
211 |
- leveldb? ( dev-libs/leveldb ) |
212 |
- lmdb? ( dev-db/lmdb ) |
213 |
- mysql? ( dev-db/mariadb:* ) |
214 |
- sqlite? ( dev-db/sqlite ) |
215 |
- xml? ( dev-libs/libxml2 ) |
216 |
- yaml? ( dev-libs/libyaml ) |
217 |
- zlib? ( sys-libs/zlib ) |
218 |
-" |
219 |
-DEPEND="${RDEPEND}" |
220 |
- |
221 |
-S="${WORKDIR}/${P}/src" |
222 |
- |
223 |
-SITEFILE="70${PN}-gentoo.el" |
224 |
- |
225 |
-src_prepare() { |
226 |
- # Just to be safe, because './configure --help' says: |
227 |
- # "Set default GERBIL_HOME (environment variable still overrides)" |
228 |
- unset GERBIL_HOME |
229 |
- unset GERBIL_PATH |
230 |
- xdg_environment_reset |
231 |
- |
232 |
- # Verbose build process |
233 |
- GAMBCOMP_VERBOSE="yes" |
234 |
- export GAMBCOMP_VERBOSE |
235 |
- |
236 |
- default |
237 |
- |
238 |
- sed -i "s|gcc|$(tc-getCC)|g" ./build.sh || die "Failed to fix CC setting" |
239 |
- sed -i "s|-O2|${CFLAGS}|g" ./build.sh || die "Failed to fix CFLAGS setting" |
240 |
-} |
241 |
- |
242 |
-src_configure() { |
243 |
- local myconf=( |
244 |
- $(use_enable leveldb) |
245 |
- $(use_enable lmdb) |
246 |
- $(use_enable mysql) |
247 |
- $(use_enable xml libxml) |
248 |
- $(use_enable yaml libyaml) |
249 |
- $(usex sqlite '' '--disable-sqlite') |
250 |
- $(usex zlib '' '--disable-zlib') |
251 |
- --prefix="${D}/usr/share/${PN}" |
252 |
- ) |
253 |
- # This is not a standard 'configure' script! |
254 |
- gsi ./configure "${myconf[@]}" || |
255 |
- die "Failed to configure using the 'configure' script" |
256 |
-} |
257 |
- |
258 |
-src_compile() { |
259 |
- # The 'build.sh' script uses environment variables that are exported |
260 |
- # by portage, ie.: CFLAGS, LDFLAGS, ... |
261 |
- sh ./build.sh || |
262 |
- die "Failed to compile using the 'build.sh' script" |
263 |
-} |
264 |
- |
265 |
-src_install() { |
266 |
- mkdir -p "${D}/usr/share/${PN}" || |
267 |
- die "Failed to make ${D}/usr/share/${PN} directory" |
268 |
- gsi ./install || die "Failed to install using the 'install' script" |
269 |
- |
270 |
- sed -i "s|${D}|${EPREFIX}|g" "${D}/usr/share/${PN}/bin/gxc" || |
271 |
- die "Failed to fix the 'gxc' executable script" |
272 |
- |
273 |
- mv "${D}/usr/share/${PN}/share/emacs" "${D}/usr/share/emacs" || |
274 |
- die "Failed to fix '/usr/share/emacs' install path" |
275 |
- mv "${D}/usr/share/${PN}/share/${PN}/TAGS" "${D}/usr/share/${PN}/TAGS" || |
276 |
- die "Failed to fix '/usr/share/gerbil/TAGS' install path" |
277 |
- |
278 |
- # Compile the 'gerbil-mode.el' |
279 |
- if use emacs; then |
280 |
- elisp-compile "${D}/usr/share/emacs/site-lisp/gerbil"/*.el || |
281 |
- die "Failed to compile elisp files" |
282 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
283 |
- fi |
284 |
- |
285 |
- # Create wrappers for gerbil executables in GERBIL_HOME (/usr/share/gerbil) |
286 |
- pushd "${D}/usr/share/${PN}/bin" || die |
287 |
- local gx_bin |
288 |
- for gx_bin in *; do |
289 |
- make_wrapper "${gx_bin}" "env GERBIL_HOME=\"${EPREFIX}/usr/share/${PN}\" ${EPREFIX}/usr/share/${PN}/bin/${gx_bin}" |
290 |
- done |
291 |
- popd || die |
292 |
- |
293 |
- # Without this the programs compiled with gxc will break! |
294 |
- doenvd "${FILESDIR}/99${PN}" |
295 |
-} |
296 |
- |
297 |
-pkg_postinst() { |
298 |
- use emacs && elisp-site-regen |
299 |
-} |
300 |
- |
301 |
-pkg_postrm() { |
302 |
- use emacs && elisp-site-regen |
303 |
-} |
304 |
|
305 |
diff --git a/dev-scheme/gerbil/metadata.xml b/dev-scheme/gerbil/metadata.xml |
306 |
deleted file mode 100644 |
307 |
index 95631da13..000000000 |
308 |
--- a/dev-scheme/gerbil/metadata.xml |
309 |
+++ /dev/null |
310 |
@@ -1,36 +0,0 @@ |
311 |
-<?xml version="1.0" encoding="UTF-8"?> |
312 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
313 |
- |
314 |
-<pkgmetadata> |
315 |
- <maintainer type="person"> |
316 |
- <email>xgqt@××××××.net</email> |
317 |
- <name>Maciej Barć</name> |
318 |
- </maintainer> |
319 |
- <use> |
320 |
- <flag name="leveldb"> |
321 |
- Add support for using dev-libs/leveldb |
322 |
- </flag> |
323 |
- <flag name="lmdb"> |
324 |
- Add support for using dev-db/lmdb |
325 |
- </flag> |
326 |
- <flag name="yaml"> |
327 |
- Add support for yaml file format |
328 |
- </flag> |
329 |
- </use> |
330 |
- <longdescription lang="en"> |
331 |
- Gerbil is an opinionated dialect of Scheme designed |
332 |
- for Systems Programming, with a state of the art macro |
333 |
- and module system on top of the Gambit runtime. |
334 |
- The macro system is based on quote-syntax, and provides |
335 |
- the full meta-syntactic tower with a native implementation |
336 |
- of syntax-case. It also provides a full-blown module system, |
337 |
- similar to PLT Scheme’s (Racket) modules. The main difference |
338 |
- from Racket is that Gerbil modules are single instantiation, |
339 |
- supporting high performance ahead of time compilation |
340 |
- and compiled macros. |
341 |
- </longdescription> |
342 |
- <upstream> |
343 |
- <remote-id type="github">vyzo/gerbil</remote-id> |
344 |
- <bugs-to>https://github.com/vyzo/gerbil</bugs-to> |
345 |
- </upstream> |
346 |
-</pkgmetadata> |