1 |
commit: bc3821916de1b6e0fd184622d5781ac986e9907e |
2 |
Author: Michele Santullo <m.santullo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sat May 9 22:24:19 2020 +0000 |
4 |
Commit: Michele Santullo <m.santullo <AT> posteo <DOT> net> |
5 |
CommitDate: Sat May 9 22:24:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc382191 |
7 |
|
8 |
dev-libs/wren: adding package |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Michele Santullo <m.santullo <AT> posteo.net> |
12 |
|
13 |
dev-libs/wren/Manifest | 1 + |
14 |
dev-libs/wren/metadata.xml | 19 +++++++++++++ |
15 |
dev-libs/wren/wren-0.2.0.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++ |
16 |
dev-libs/wren/wren-9999.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 144 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/wren/Manifest b/dev-libs/wren/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..782d2d9 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/wren/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST wren-0.2.0.tar.gz 1791488 BLAKE2B a2f48e9b115ea89cf25af1fe8cefa3c26639ce06f89796df4f5eb744b2382b44f83d6285eedfa9cb5681342cc8ebca535bae586445225622c8ebdb30c7088975 SHA512 67912df14d8afa16a4e50fa67e232870e08eb392601f7b1633bcfb242f2de7624b9a3501df9e1ae40fb62646db57ff6553733ddb3015b6b5086999dadf7d2da2 |
26 |
|
27 |
diff --git a/dev-libs/wren/metadata.xml b/dev-libs/wren/metadata.xml |
28 |
new file mode 100644 |
29 |
index 0000000..2c40eb0 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/wren/metadata.xml |
32 |
@@ -0,0 +1,19 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <longdescription lang="en"> |
37 |
+Wren is a small, fast, class-based concurrent scripting language |
38 |
+Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax. |
39 |
+ </longdescription> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>m.santullo@××××××.net</email> |
42 |
+ <name>Michele Santullo</name> |
43 |
+ </maintainer> |
44 |
+ <upstream> |
45 |
+ <bugs-to>https://github.com/wren-lang/wren/issues</bugs-to> |
46 |
+ <remote-id type="github">wren-lang/wren</remote-id> |
47 |
+ </upstream> |
48 |
+ <use> |
49 |
+ <flag name="tools">Install the wren command line interpreter</flag> |
50 |
+ </use> |
51 |
+</pkgmetadata> |
52 |
|
53 |
diff --git a/dev-libs/wren/wren-0.2.0.ebuild b/dev-libs/wren/wren-0.2.0.ebuild |
54 |
new file mode 100644 |
55 |
index 0000000..2b3681e |
56 |
--- /dev/null |
57 |
+++ b/dev-libs/wren/wren-0.2.0.ebuild |
58 |
@@ -0,0 +1,62 @@ |
59 |
+# Copyright 2020 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=7 |
63 |
+ |
64 |
+inherit toolchain-funcs |
65 |
+ |
66 |
+DESCRIPTION="The Wren Programming Language" |
67 |
+HOMEPAGE="http://wren.io/" |
68 |
+if [[ ${PV} == 9999 ]]; then |
69 |
+ EGIT_REPO_URI="https://github.com/wren-lang/${PN}.git" |
70 |
+ inherit git-r3 |
71 |
+ KEYWORDS="" |
72 |
+else |
73 |
+ SRC_URI="https://github.com/wren-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
74 |
+ KEYWORDS="~amd64 ~x86" |
75 |
+fi |
76 |
+ |
77 |
+LICENSE="MIT" |
78 |
+SLOT="0" |
79 |
+IUSE="static-libs tools" |
80 |
+ |
81 |
+DEPEND=">=dev-libs/libuv-1.10.0" |
82 |
+RDEPEND="${DEPEND}" |
83 |
+BDEPEND="" |
84 |
+#BDEPEND="test? ( dev-lang/python )" |
85 |
+#RESTRICT="!test? ( test )" |
86 |
+ |
87 |
+src_configure() { |
88 |
+ return |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ local targets="" |
93 |
+ |
94 |
+ if use static-libs ; then |
95 |
+ #do both shared and static libs |
96 |
+ targets="${targets} vm" |
97 |
+ else |
98 |
+ targets="${targets} shared" |
99 |
+ fi |
100 |
+ if use tools ; then |
101 |
+ targets="${targets} cli" |
102 |
+ fi |
103 |
+ #I don't think tests are working, I just get lots of linker errors |
104 |
+ #if use test ; then |
105 |
+ # targets="${targets} api_test unit_test" |
106 |
+ #fi |
107 |
+ |
108 |
+ tc-export AR CC |
109 |
+ emake -f util/wren.mk LIBUV_DIR=${EPREFIX}/usr LIBUV=${EPREFIX}/usr/$(get_libdir)/libuv.so VERBOSE=1 ${targets} |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ if use tools ; then |
114 |
+ dobin bin/wren |
115 |
+ fi |
116 |
+ if use static-libs ; then |
117 |
+ dolib.a lib/libwren.a |
118 |
+ fi |
119 |
+ dolib.so lib/libwren.so |
120 |
+} |
121 |
|
122 |
diff --git a/dev-libs/wren/wren-9999.ebuild b/dev-libs/wren/wren-9999.ebuild |
123 |
new file mode 100644 |
124 |
index 0000000..2b3681e |
125 |
--- /dev/null |
126 |
+++ b/dev-libs/wren/wren-9999.ebuild |
127 |
@@ -0,0 +1,62 @@ |
128 |
+# Copyright 2020 Gentoo Authors |
129 |
+# Distributed under the terms of the GNU General Public License v2 |
130 |
+ |
131 |
+EAPI=7 |
132 |
+ |
133 |
+inherit toolchain-funcs |
134 |
+ |
135 |
+DESCRIPTION="The Wren Programming Language" |
136 |
+HOMEPAGE="http://wren.io/" |
137 |
+if [[ ${PV} == 9999 ]]; then |
138 |
+ EGIT_REPO_URI="https://github.com/wren-lang/${PN}.git" |
139 |
+ inherit git-r3 |
140 |
+ KEYWORDS="" |
141 |
+else |
142 |
+ SRC_URI="https://github.com/wren-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
143 |
+ KEYWORDS="~amd64 ~x86" |
144 |
+fi |
145 |
+ |
146 |
+LICENSE="MIT" |
147 |
+SLOT="0" |
148 |
+IUSE="static-libs tools" |
149 |
+ |
150 |
+DEPEND=">=dev-libs/libuv-1.10.0" |
151 |
+RDEPEND="${DEPEND}" |
152 |
+BDEPEND="" |
153 |
+#BDEPEND="test? ( dev-lang/python )" |
154 |
+#RESTRICT="!test? ( test )" |
155 |
+ |
156 |
+src_configure() { |
157 |
+ return |
158 |
+} |
159 |
+ |
160 |
+src_compile() { |
161 |
+ local targets="" |
162 |
+ |
163 |
+ if use static-libs ; then |
164 |
+ #do both shared and static libs |
165 |
+ targets="${targets} vm" |
166 |
+ else |
167 |
+ targets="${targets} shared" |
168 |
+ fi |
169 |
+ if use tools ; then |
170 |
+ targets="${targets} cli" |
171 |
+ fi |
172 |
+ #I don't think tests are working, I just get lots of linker errors |
173 |
+ #if use test ; then |
174 |
+ # targets="${targets} api_test unit_test" |
175 |
+ #fi |
176 |
+ |
177 |
+ tc-export AR CC |
178 |
+ emake -f util/wren.mk LIBUV_DIR=${EPREFIX}/usr LIBUV=${EPREFIX}/usr/$(get_libdir)/libuv.so VERBOSE=1 ${targets} |
179 |
+} |
180 |
+ |
181 |
+src_install() { |
182 |
+ if use tools ; then |
183 |
+ dobin bin/wren |
184 |
+ fi |
185 |
+ if use static-libs ; then |
186 |
+ dolib.a lib/libwren.a |
187 |
+ fi |
188 |
+ dolib.so lib/libwren.so |
189 |
+} |