public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/janet/
Date: Fri,  5 Jan 2024 11:29:28 +0000 (UTC)	[thread overview]
Message-ID: <1704454004.b05271e0bc7182a3dadb1afc7e54017ec821a97d.ceamac@gentoo> (raw)

commit:     b05271e0bc7182a3dadb1afc7e54017ec821a97d
Author:     Oz Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Sun Oct 22 17:49:38 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri Jan  5 11:26:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b05271e0

dev-lang/janet: add 1.32.1

Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-lang/janet/Manifest            |  1 +
 dev-lang/janet/janet-1.32.1.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/dev-lang/janet/Manifest b/dev-lang/janet/Manifest
index cf1bd1402fdb..e9eba1b6d8c6 100644
--- a/dev-lang/janet/Manifest
+++ b/dev-lang/janet/Manifest
@@ -1 +1,2 @@
 DIST janet-1.22.0.tar.gz 494011 BLAKE2B 2193cf0d87421adb122e86347d47ef1a9d3141d7dedf4ba88ed3d0e97c1b22a8216e1e42a6431266c6fbb4dcee665db63839e90ec9e5530491c64a94b8b11b04 SHA512 c1e90dafa833618e0999a1a53005241b768dee66bf7e6d4cc60b7c7ce87fccba955ca2faafd4eacda320801667acbfc56087f423a4ad6abe7e97d1f08e136107
+DIST janet-1.32.1.tar.gz 556827 BLAKE2B 93d7e9eefa45cfd63378f042b5efed77244ff3a32d5b17d24a06c732ec40e49d9079e325d08c8540f284a24501bd41e0fc088781acdf20bcc22694d99a2cb885 SHA512 65e00cfe9bcd66f5d640e58f965aec72f7703777e086220539a1b080d7dd44a9039247477c352d89b1e73c4f6080320bdba419bd0d20cc114985f9701e2ade2d

diff --git a/dev-lang/janet/janet-1.32.1.ebuild b/dev-lang/janet/janet-1.32.1.ebuild
new file mode 100644
index 000000000000..8f95ec60cf4f
--- /dev/null
+++ b/dev-lang/janet/janet-1.32.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+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() {
+	tc-export CC
+
+	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='\"'${PV}'\"'
+
+	local target
+	for target in '' build/janet.pc docs ; do
+		einfo "Building: ${target:-main}"
+		emake \
+			LIBDIR="/usr/$(get_libdir)" \
+			PREFIX="/usr" \
+			JANET_BUILD="${janet_build}" \
+			CFLAGS="${CFLAGS}" \
+			LDFLAGS="${LDFLAGS}" \
+			${target}
+	done
+}
+
+src_install() {
+	dobin build/janet
+
+	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
+
+	insinto /usr/$(get_libdir)/pkgconfig/
+	doins build/janet.pc
+
+	dodoc -r examples
+	dodoc build/doc.html
+}
+
+pkg_postinst() {
+	elog "Note: jpm has been extracted to its own repository upstream."
+	elog "Follow the upstream instructions on how to install it."
+	elog "Enable use flag \"static-libs\" for building stand-alone executables with jpm"
+}


             reply	other threads:[~2024-01-05 11:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-05 11:29 Viorel Munteanu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-05 11:29 [gentoo-commits] repo/gentoo:master commit in: dev-lang/janet/ Viorel Munteanu
2022-07-02 17:35 Joonas Niilola
2022-07-02 17:35 Joonas Niilola
2022-07-02 17:35 Joonas Niilola
2021-12-26  0:34 Sam James
2021-12-26  0:34 Sam James
2021-10-20  3:02 Sam James
2021-10-20  3:02 Sam James
2021-10-20  3:02 Sam James
2021-07-20 10:25 Joonas Niilola
2021-05-18 10:40 Joonas Niilola
2021-05-18 10:40 Joonas Niilola
2021-01-28  7:36 Joonas Niilola
2021-01-28  7:36 Joonas Niilola
2020-10-16  6:04 Joonas Niilola
2020-10-16  6:04 Joonas Niilola
2020-10-16  6:04 Joonas Niilola
2020-08-08  9:04 Joonas Niilola
2020-08-08  9:04 Joonas Niilola
2020-06-24 14:29 Joonas Niilola
2020-06-24 14:29 Joonas Niilola
2020-04-05  7:18 Joonas Niilola
2020-04-05  7:18 Joonas Niilola
2020-03-18  8:30 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1704454004.b05271e0bc7182a3dadb1afc7e54017ec821a97d.ceamac@gentoo \
    --to=ceamac@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox