1 |
commit: 6c8bd373b7a11ae00c4aec2a588a2e63181c4a31 |
2 |
Author: Maciej Barć <xgqt <AT> riseup <DOT> net> |
3 |
AuthorDate: Fri Apr 16 19:37:53 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> riseup <DOT> net> |
5 |
CommitDate: Fri Apr 16 19:38:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6c8bd373 |
7 |
|
8 |
dev-lang/fennel: new pkg; add 0.9.1 and live |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> riseup.net> |
12 |
|
13 |
dev-lang/fennel/Manifest | 1 + |
14 |
dev-lang/fennel/fennel-0.9.1.ebuild | 41 +++++++++++++++++++++++++++++++++++++ |
15 |
dev-lang/fennel/fennel-9999.ebuild | 41 +++++++++++++++++++++++++++++++++++++ |
16 |
dev-lang/fennel/metadata.xml | 26 +++++++++++++++++++++++ |
17 |
4 files changed, 109 insertions(+) |
18 |
|
19 |
diff --git a/dev-lang/fennel/Manifest b/dev-lang/fennel/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000..fc8d0dcd8 |
22 |
--- /dev/null |
23 |
+++ b/dev-lang/fennel/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST fennel-0.9.1.tar.gz 203441 BLAKE2B 74f461b3e7a24cdae0c8dde590814cb9753a12ab62e797746cc8753d178007a09084037e443d8309fa11ff309a5c6bf6c2e369942ef357aa0402883cef278542 SHA512 87e7ffbef0b49499a93255f50e77f53b9be4faa6d4609d8d65e3a64470bbf07b49a55e7dd547fda4b0e5fe0f4f1e6ece18282cc89955a57ed0a50be8dc01261c |
26 |
|
27 |
diff --git a/dev-lang/fennel/fennel-0.9.1.ebuild b/dev-lang/fennel/fennel-0.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000..d2adba074 |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/fennel/fennel-0.9.1.ebuild |
32 |
@@ -0,0 +1,41 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
39 |
+ |
40 |
+inherit lua-single |
41 |
+ |
42 |
+DESCRIPTION="Fennel is a lisp that compiles to Lua" |
43 |
+HOMEPAGE="https://fennel-lang.org/" |
44 |
+ |
45 |
+if [[ "${PV}" == *9999* ]]; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://git.sr.ht/~technomancy/fennel" |
48 |
+else |
49 |
+ SRC_URI="https://git.sr.ht/~technomancy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ KEYWORDS="~amd64" |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
56 |
+ |
57 |
+BDEPEND="${LUA_DEPS}" |
58 |
+RDEPEND="${BDEPEND}" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+ |
61 |
+pkg_setup() { |
62 |
+ lua-single_pkg_setup |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" install |
71 |
+ doman "${PN}.1" |
72 |
+ dodoc *.md |
73 |
+} |
74 |
|
75 |
diff --git a/dev-lang/fennel/fennel-9999.ebuild b/dev-lang/fennel/fennel-9999.ebuild |
76 |
new file mode 100644 |
77 |
index 000000000..d2adba074 |
78 |
--- /dev/null |
79 |
+++ b/dev-lang/fennel/fennel-9999.ebuild |
80 |
@@ -0,0 +1,41 @@ |
81 |
+# Copyright 1999-2021 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=7 |
85 |
+ |
86 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
87 |
+ |
88 |
+inherit lua-single |
89 |
+ |
90 |
+DESCRIPTION="Fennel is a lisp that compiles to Lua" |
91 |
+HOMEPAGE="https://fennel-lang.org/" |
92 |
+ |
93 |
+if [[ "${PV}" == *9999* ]]; then |
94 |
+ inherit git-r3 |
95 |
+ EGIT_REPO_URI="https://git.sr.ht/~technomancy/fennel" |
96 |
+else |
97 |
+ SRC_URI="https://git.sr.ht/~technomancy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
98 |
+ KEYWORDS="~amd64" |
99 |
+fi |
100 |
+ |
101 |
+LICENSE="MIT" |
102 |
+SLOT="0" |
103 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
104 |
+ |
105 |
+BDEPEND="${LUA_DEPS}" |
106 |
+RDEPEND="${BDEPEND}" |
107 |
+DEPEND="${RDEPEND}" |
108 |
+ |
109 |
+pkg_setup() { |
110 |
+ lua-single_pkg_setup |
111 |
+} |
112 |
+ |
113 |
+src_compile() { |
114 |
+ emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" install |
119 |
+ doman "${PN}.1" |
120 |
+ dodoc *.md |
121 |
+} |
122 |
|
123 |
diff --git a/dev-lang/fennel/metadata.xml b/dev-lang/fennel/metadata.xml |
124 |
new file mode 100644 |
125 |
index 000000000..52244949b |
126 |
--- /dev/null |
127 |
+++ b/dev-lang/fennel/metadata.xml |
128 |
@@ -0,0 +1,26 @@ |
129 |
+<?xml version="1.0" encoding="UTF-8"?> |
130 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
131 |
+<pkgmetadata> |
132 |
+ <maintainer type="person"> |
133 |
+ <email>xgqt@××××××.net</email> |
134 |
+ <name>Maciej Barć</name> |
135 |
+ </maintainer> |
136 |
+ <longdescription lang="en"> |
137 |
+ Fennel is a lisp that compiles to Lua. It aims to be easy to use, |
138 |
+ expressive, and has almost zero overhead compared to handwritten Lua. |
139 |
+ |
140 |
+ - Full Lua compatibility - You can use any function or library from Lua. |
141 |
+ - Zero overhead - Compiled code should be just as or more efficient |
142 |
+ than hand-written Lua. |
143 |
+ - Compile-time macros - Ship compiled code with no runtime dependency |
144 |
+ on Fennel. |
145 |
+ - Embeddable - Fennel is a one-file library as well as an executable. |
146 |
+ Embed it in other programs to support runtime extensibility and |
147 |
+ interactive development. |
148 |
+ |
149 |
+ At https://fennel-lang.org there's a live in-browser repl you can use without installing anything. |
150 |
+ </longdescription> |
151 |
+ <upstream> |
152 |
+ <remote-id type="github">bakpakin/Fennel</remote-id> |
153 |
+ </upstream> |
154 |
+</pkgmetadata> |