1 |
commit: 351c1b5a626680968e5f4e0330000b1f7f32d871 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 28 22:24:44 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 22:25:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=351c1b5a |
7 |
|
8 |
dev-scheme/owl-lisp: new package; add version 0.2 and live |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
dev-scheme/owl-lisp/Manifest | 1 + |
14 |
dev-scheme/owl-lisp/metadata.xml | 20 +++++++++++++++ |
15 |
dev-scheme/owl-lisp/owl-lisp-0.2.ebuild | 42 ++++++++++++++++++++++++++++++++ |
16 |
dev-scheme/owl-lisp/owl-lisp-9999.ebuild | 42 ++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 105 insertions(+) |
18 |
|
19 |
diff --git a/dev-scheme/owl-lisp/Manifest b/dev-scheme/owl-lisp/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..0a54360a4209 |
22 |
--- /dev/null |
23 |
+++ b/dev-scheme/owl-lisp/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST owl-v0.2.tar.gz 515574 BLAKE2B 054a06d33554cc31f5e1c756bf3ff5ea4fb5cec220048fb939aa9dcd19c586cef54ae8ddc80e1ee8befedfa2e42fc1bf9ea4bcfe37e6743154ff678346444e87 SHA512 f0dc4badc84be1ebd1ad8f6a84c8fc292449b0f66a9416f202f9010e89aa2971c6470599173db67bf3db3e4b6a61d777ee369eda76fa7c42114748e8fe48b7b2 |
26 |
|
27 |
diff --git a/dev-scheme/owl-lisp/metadata.xml b/dev-scheme/owl-lisp/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000000..904d4e58388f |
30 |
--- /dev/null |
31 |
+++ b/dev-scheme/owl-lisp/metadata.xml |
32 |
@@ -0,0 +1,20 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+ |
36 |
+<pkgmetadata> |
37 |
+ <maintainer type="project"> |
38 |
+ <email>scheme@g.o</email> |
39 |
+ <name>Gentoo Scheme Project</name> |
40 |
+ </maintainer> |
41 |
+ <longdescription lang="en"> |
42 |
+ Owl Lisp is a simple programming language. The main motivation for |
43 |
+ writing it was to get a portable system for writing standalone |
44 |
+ programs in a subjectively pleasant dialect of LISP, which in this |
45 |
+ case means a minimal core language and runtime, purely functional |
46 |
+ operation and support for asynchronous evaluation. |
47 |
+ </longdescription> |
48 |
+ <upstream> |
49 |
+ <bugs-to>https://gitlab.com/owl-lisp/owl/-/issues</bugs-to> |
50 |
+ <remote-id type="gitlab">owl-lisp/owl</remote-id> |
51 |
+ </upstream> |
52 |
+</pkgmetadata> |
53 |
|
54 |
diff --git a/dev-scheme/owl-lisp/owl-lisp-0.2.ebuild b/dev-scheme/owl-lisp/owl-lisp-0.2.ebuild |
55 |
new file mode 100644 |
56 |
index 000000000000..95d2e9242438 |
57 |
--- /dev/null |
58 |
+++ b/dev-scheme/owl-lisp/owl-lisp-0.2.ebuild |
59 |
@@ -0,0 +1,42 @@ |
60 |
+# Copyright 1999-2021 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+# NOTICE: Because it is "purely functional" it is not scheme-compatible ootb |
64 |
+ |
65 |
+EAPI=8 |
66 |
+ |
67 |
+inherit toolchain-funcs |
68 |
+ |
69 |
+DESCRIPTION="Purely functional dialect of Scheme" |
70 |
+HOMEPAGE="https://haltp.org/posts/owl.html" |
71 |
+ |
72 |
+if [[ "${PV}" == *9999* ]]; then |
73 |
+ inherit git-r3 |
74 |
+ EGIT_REPO_URI="https://gitlab.com/owl-lisp/owl.git" |
75 |
+else |
76 |
+ SRC_URI="https://gitlab.com/owl-lisp/owl/-/archive/v0.2/owl-v${PV}.tar.gz" |
77 |
+ KEYWORDS="~amd64" |
78 |
+ S="${WORKDIR}/owl-v${PV}" |
79 |
+fi |
80 |
+ |
81 |
+LICENSE="MIT" |
82 |
+SLOT="0" |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ |
87 |
+ sed -i 's|make bin/vm|$(MAKE) bin/vm|g' ./Makefile || die |
88 |
+} |
89 |
+ |
90 |
+src_compile(){ |
91 |
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" owl |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ einstalldocs |
96 |
+ |
97 |
+ dobin ./bin/ol |
98 |
+ newbin ./bin/vm ovm |
99 |
+ |
100 |
+ doman ./doc/*.1 |
101 |
+} |
102 |
|
103 |
diff --git a/dev-scheme/owl-lisp/owl-lisp-9999.ebuild b/dev-scheme/owl-lisp/owl-lisp-9999.ebuild |
104 |
new file mode 100644 |
105 |
index 000000000000..95d2e9242438 |
106 |
--- /dev/null |
107 |
+++ b/dev-scheme/owl-lisp/owl-lisp-9999.ebuild |
108 |
@@ -0,0 +1,42 @@ |
109 |
+# Copyright 1999-2021 Gentoo Authors |
110 |
+# Distributed under the terms of the GNU General Public License v2 |
111 |
+ |
112 |
+# NOTICE: Because it is "purely functional" it is not scheme-compatible ootb |
113 |
+ |
114 |
+EAPI=8 |
115 |
+ |
116 |
+inherit toolchain-funcs |
117 |
+ |
118 |
+DESCRIPTION="Purely functional dialect of Scheme" |
119 |
+HOMEPAGE="https://haltp.org/posts/owl.html" |
120 |
+ |
121 |
+if [[ "${PV}" == *9999* ]]; then |
122 |
+ inherit git-r3 |
123 |
+ EGIT_REPO_URI="https://gitlab.com/owl-lisp/owl.git" |
124 |
+else |
125 |
+ SRC_URI="https://gitlab.com/owl-lisp/owl/-/archive/v0.2/owl-v${PV}.tar.gz" |
126 |
+ KEYWORDS="~amd64" |
127 |
+ S="${WORKDIR}/owl-v${PV}" |
128 |
+fi |
129 |
+ |
130 |
+LICENSE="MIT" |
131 |
+SLOT="0" |
132 |
+ |
133 |
+src_prepare() { |
134 |
+ default |
135 |
+ |
136 |
+ sed -i 's|make bin/vm|$(MAKE) bin/vm|g' ./Makefile || die |
137 |
+} |
138 |
+ |
139 |
+src_compile(){ |
140 |
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" owl |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ einstalldocs |
145 |
+ |
146 |
+ dobin ./bin/ol |
147 |
+ newbin ./bin/vm ovm |
148 |
+ |
149 |
+ doman ./doc/*.1 |
150 |
+} |