public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/janet/
Date: Sun, 26 Dec 2021 00:34:23 +0000 (UTC)	[thread overview]
Message-ID: <1640478826.75a9246b863952692f31e379f9a10c264442a2f4.sam@gentoo> (raw)

commit:     75a9246b863952692f31e379f9a10c264442a2f4
Author:     Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Sat Dec 25 14:39:42 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 26 00:33:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a9246b

dev-lang/janet: add 1.19.2

Signed-off-by: Oz N Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/dev-lang/janet/Manifest b/dev-lang/janet/Manifest
index 1d210404ad66..9455bbcef90f 100644
--- a/dev-lang/janet/Manifest
+++ b/dev-lang/janet/Manifest
@@ -1,2 +1,3 @@
 DIST janet-1.16.1.tar.gz 493490 BLAKE2B 7542644a647d9d2ddd73d8e284f749cdad1900b8df2797c99a2f176c93eca412427b7f571493cfe62f64dd9c90bd12d8506b0f4b6b485ab2d3633e989e735cd9 SHA512 f4be0703676acad8896e41b46d79c4f6d99990c487028f1fd1abd681f756db119a06a5d6a0653b9301afcd62f45d6f1bb7876b9613c0ea28d7199e310a52895d
 DIST janet-1.17.2.tar.gz 488524 BLAKE2B 33e801eb10b46d44a36b95bd29ea318ab3daa88654f47e12303344d2362a2ecc0d0f2ab9371d9539e0787df08664f503ee268b7acf967bd74a929992bc3ea2be SHA512 608ae20992d90cd93a364239c967fef8fdd1c631f1777211d916c6dc16cac5f007f52565bdf24cc0f8af1f521a0977a7245a3c137fc3b61583c2900e26fee81c
+DIST janet-1.19.2.tar.gz 486633 BLAKE2B 420b98218cf6a592ab385f5d9432d9e8ae98fe0a4b9c294aa2783e3ee810d256ef1ccf17c3986d7e490e4fcc046cb9a25b2d0f09ada223c19104e49d703d5d33 SHA512 4181f15ad61bfba46ce87acd148166bd0ab3c5dd5fb608d8d8722b912ecfa435baa7d881d4a8163aabb1b06bca2983b108dfb7256efa854c12c136e4f24c1ef2

diff --git a/dev-lang/janet/janet-1.19.2.ebuild b/dev-lang/janet/janet-1.19.2.ebuild
new file mode 100644
index 000000000000..540be0ac1f9c
--- /dev/null
+++ b/dev-lang/janet/janet-1.19.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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:[~2021-12-26  0:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26  0:34 Sam James [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
2024-01-05 11:29 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-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=1640478826.75a9246b863952692f31e379f9a10c264442a2f4.sam@gentoo \
    --to=sam@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