1 |
commit: 9a4f0ffa0aeb336d964a2b7260833d9b00f47628 |
2 |
Author: Oz N Tiram <oz.tiram <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 29 21:54:17 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 18 10:18:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4f0ffa |
7 |
|
8 |
dev-lang/janet: add 1.15.5 |
9 |
|
10 |
Signed-off-by: Oz N Tiram <oz.tiram <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
dev-lang/janet/Manifest | 1 + |
14 |
dev-lang/janet/janet-1.15.5.ebuild | 62 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/janet/Manifest b/dev-lang/janet/Manifest |
18 |
index ed78ed1c0a1..e604595830d 100644 |
19 |
--- a/dev-lang/janet/Manifest |
20 |
+++ b/dev-lang/janet/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST janet-1.12.2.tar.gz 558788 BLAKE2B 0cdbc33d968b0b589cfc0ccd6dd5ffffe23932daa48e67c035d67d4bba0519083503693be470498c1f6d2811b164bfbb3d2fdb35967c6bd64808ec87f1fd9770 SHA512 bde3d516b0a1c55ad8edb2dc701a3afdb5e7c2bd028b132598d1a08796aca5f17f71dd2c760192a9703a07adb3450a7af6971611ae57005eafad1b741b0b69a6 |
23 |
DIST janet-1.13.1.tar.gz 584998 BLAKE2B f1bfd9e62dde786127a1307d38f48fc7e75b9fb09f009f9d01eeefa593b67c2469e213fd366fac7c52e0372e61b1a9afdb558e8a1be1ab2f4f538b5fb39075f3 SHA512 8022ecbaf7680855611202a3c17b8e5f6dc61a9302508c9de5312dbd9e80d40c24786bb5e8ae653ab5a7b00191a2d7c44cc3e305d31245e3e8c53be0e1c80372 |
24 |
+DIST janet-1.15.5.tar.gz 601033 BLAKE2B dfc8c2a2d238f2554aae667f706e84905ba15c732fa2f06b3c537f08d064375dcb00043117dfc56328365627e2e8f4e2a8f171731d9d6bc0d48206cea58f127c SHA512 ebdc090de6fbea0c94f0618957a4b36776fa0009298df77b279b79064d4524e73f42723ba2c315167cb6f3a40f2a4dffbb2a865fa2d479ba196aa9f0aa24cbf6 |
25 |
|
26 |
diff --git a/dev-lang/janet/janet-1.15.5.ebuild b/dev-lang/janet/janet-1.15.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..49f4ff2d82f |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/janet/janet-1.15.5.ebuild |
31 |
@@ -0,0 +1,62 @@ |
32 |
+# Copyright 2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit flag-o-matic |
38 |
+ |
39 |
+DESCRIPTION="A dynamic Lisp dialect and bytecode vm" |
40 |
+HOMEPAGE="https://janet-lang.org https://github.com/janet-lang/janet/" |
41 |
+SRC_URI="https://github.com/janet-lang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="static-libs" |
47 |
+ |
48 |
+MY_RELEASE="${PV::-2}" |
49 |
+ |
50 |
+src_configure() { |
51 |
+ append-ldflags -Wl,-soname,libjanet.so.1.${MY_RELEASE} |
52 |
+ append-cflags -fPIC |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ # janet_build is the git hash of the commit related to the |
57 |
+ # current release - it defines a constant which is then shown |
58 |
+ # when starting janet |
59 |
+ local janet_build='\"1.15.5\"' |
60 |
+ emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" JANET_BUILD="${janet_build}" |
61 |
+ emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" build/janet.pc JANET_BUILD="${janet_build}" |
62 |
+ emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" docs JANET_BUILD="${janet_build}" |
63 |
+ emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" build/jpm JANET_BUILD="${janet_build}" |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dobin "build/janet" |
68 |
+ dobin "build/jpm" |
69 |
+ insinto "usr/include/janet" |
70 |
+ doheader "src/include/janet.h" |
71 |
+ doheader "src/conf/janetconf.h" |
72 |
+ |
73 |
+ dolib.so "build/libjanet.so" |
74 |
+ dosym libjanet.so /usr/$(get_libdir)/libjanet.so.${MY_RELEASE} |
75 |
+ dosym libjanet.so.${MY_RELEASE} /usr/$(get_libdir)/libjanet.so.${PV} |
76 |
+ |
77 |
+ if use static-libs; then |
78 |
+ dolib.a "build/libjanet.a" |
79 |
+ fi |
80 |
+ doman "janet.1" |
81 |
+ doman "jpm.1" |
82 |
+ |
83 |
+ insinto /usr/$(get_libdir)/pkgconfig/ |
84 |
+ doins "build/janet.pc" |
85 |
+ dodoc -r examples |
86 |
+ dodoc "build/doc.html" |
87 |
+ # required for jpm |
88 |
+ keepdir /usr/$(get_libdir)/janet/.cache |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ elog "Enable use flag \"static-libs\" for building stand-alone executables with jpm" |
93 |
+} |