commit:     9efdeba14510a290c01e6ba88ef75542eb80a77a
Author:     Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Wed Oct 14 13:56:45 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Oct 16 06:03:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9efdeba1

dev-lang/janet: bump version to 1.12.2

Package-Manager: Portage-3.0.8, Repoman-2.3.23
Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-lang/janet/Manifest            |  1 +
 dev-lang/janet/janet-1.12.2.ebuild | 62 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-lang/janet/Manifest b/dev-lang/janet/Manifest
index e49a148c18a..7dcdc7a1296 100644
--- a/dev-lang/janet/Manifest
+++ b/dev-lang/janet/Manifest
@@ -1,2 +1,3 @@
 DIST janet-1.11.1.tar.gz 550495 BLAKE2B 
4f9e6f08aeb167f3cbb0afb635e4f9f9e904ad1f0bc937d7baa101e37b1f6aa23ef56549741c2c42d9b652f5bf46121b3467aa5a5ae1a3ee02b955387ef3c5a6
 SHA512 
75508255bce1b3b9af30fb6de14f8dbfaf5774838e5e400a97112100e2ae6b1dfb870cf95860a7d7b500385e8e7f585e3032492cac88fa7b356443314dc7a45a
+DIST janet-1.12.2.tar.gz 558788 BLAKE2B 
0cdbc33d968b0b589cfc0ccd6dd5ffffe23932daa48e67c035d67d4bba0519083503693be470498c1f6d2811b164bfbb3d2fdb35967c6bd64808ec87f1fd9770
 SHA512 
bde3d516b0a1c55ad8edb2dc701a3afdb5e7c2bd028b132598d1a08796aca5f17f71dd2c760192a9703a07adb3450a7af6971611ae57005eafad1b741b0b69a6
 DIST janet-1.9.1.tar.gz 995046 BLAKE2B 
c65f59e874690b124b61811406670ed6bf9e23d930b5206a9fefebd64629a2287076a40db885b8a820d733a353237fea65dadccdf4efdd33f1537127f67e66b1
 SHA512 
4024b2f5bc52338b77c954e384157234ef3cecf21142ef60158adb656396b42accae3af8acb8e54f602f5fbce0e1e1f7f29030878ef2ac7055e933dd710db879

diff --git a/dev-lang/janet/janet-1.12.2.ebuild 
b/dev-lang/janet/janet-1.12.2.ebuild
new file mode 100644
index 00000000000..8ec6289c1be
--- /dev/null
+++ b/dev-lang/janet/janet-1.12.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic optfeature
+
+DESCRIPTION="A dynamic Lisp dialect and bytecode vm"
+HOMEPAGE="https://janet-lang.org https://github.com/janet-lang/janet/";
+SRC_URI="https://github.com/janet-lang/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+MY_RELEASE="${PV::-2}"
+
+src_configure() {
+       append-ldflags -Wl,-soname,libjanet.so.1.${MY_RELEASE}
+       append-cflags -fPIC
+}
+
+src_compile() {
+       # janet_build is the git hash of the commit related to the
+       # current release - it defines a constant which is then shown
+       # when starting janet
+       local janet_build='\"1.12.2\"'
+       emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" 
JANET_BUILD="${janet_build}"
+       emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" build/janet.pc 
JANET_BUILD="${janet_build}"
+       emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" docs 
JANET_BUILD="${janet_build}"
+       emake LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" build/jpm 
JANET_BUILD="${janet_build}"
+}
+
+src_install() {
+       dobin "build/janet"
+       dobin "build/jpm"
+       insinto "usr/include/janet"
+       doheader "src/include/janet.h"
+       doheader "src/conf/janetconf.h"
+
+       dolib.so "build/libjanet.so"
+       dosym libjanet.so /usr/$(get_libdir)/libjanet.so.${MY_RELEASE}
+       dosym libjanet.so.${MY_RELEASE} /usr/$(get_libdir)/libjanet.so.${PV}
+
+       if use static-libs; then
+               dolib.a "build/libjanet.a"
+       fi
+       doman "janet.1"
+       doman "jpm.1"
+
+       insinto /usr/$(get_libdir)/pkgconfig/
+       doins "build/janet.pc"
+       dodoc -r examples
+       dodoc "build/doc.html"
+       # required for jpm
+       keepdir /usr/$(get_libdir)/janet/.cache
+}
+
+pkg_postinst() {
+       elog "Enable use flag \"static-libs\" for building stand-alone 
executables with jpm"
+}

Reply via email to