1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A dynamic Lisp dialect and bytecode vm"
9 HOMEPAGE="https://janet-lang.org https://github.com/janet-lang/janet/"
10 SRC_URI="https://github.com/janet-lang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
18 "${FILESDIR}/${P}"-fix-ldflags-in-pkgconfig.patch
22 append-ldflags -Wl,-soname,libjanet.so.0
26 # janet_build is the git hash of the commit related to the
27 # current release - it defines a constant which is then shown
29 local janet_build='\"f7ee8bd\"'
30 emake PREFIX="/usr" JANET_BUILD="${janet_build}"
31 emake PREFIX="/usr" build/janet.pc JANET_BUILD="${janet_build}"
32 emake PREFIX="/usr" docs JANET_BUILD="${janet_build}"
39 doheader "src/include/janet.h"
40 doheader "src/conf/janetconf.h"
42 dolib.so "build/libjanet.so"
43 dosym libjanet.so /usr/$(get_libdir)/libjanet.so.0
45 if use static-libs; then
46 dolib.a "build/libjanet.a"
51 insinto /usr/$(get_libdir)/pkgconfig/
52 doins "build/janet.pc"
54 dodoc "build/doc.html"