From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7067D158093 for ; Sat, 2 Jul 2022 17:43:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50782E0BDB; Sat, 2 Jul 2022 17:43:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E58CE0BDB for ; Sat, 2 Jul 2022 17:43:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7E6F341CCB for ; Sat, 2 Jul 2022 17:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 65D995CB for ; Sat, 2 Jul 2022 17:35:22 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1656783314.9cbbbbf7933c8e109205ffc48d52db704857b6d1.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/janet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/janet/Manifest dev-lang/janet/janet-1.22.0.ebuild X-VCS-Directories: dev-lang/janet/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 9cbbbbf7933c8e109205ffc48d52db704857b6d1 X-VCS-Branch: master Date: Sat, 2 Jul 2022 17:35:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7a5670ca-7fd3-423b-be80-f8d54f4b1e4b X-Archives-Hash: 837814037c45e63ba3091ba5b39cec8d commit: 9cbbbbf7933c8e109205ffc48d52db704857b6d1 Author: Oz N Tiram gmail com> AuthorDate: Thu Jun 9 04:47:53 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 2 17:35:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbbbbf7 dev-lang/janet: add 1.22.0 Signed-off-by: Oz N Tiram gmail.com> Signed-off-by: Joonas Niilola gentoo.org> dev-lang/janet/Manifest | 1 + dev-lang/janet/janet-1.22.0.ebuild | 73 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-lang/janet/Manifest b/dev-lang/janet/Manifest index 9ff51eab62ec..a151f86a40c4 100644 --- a/dev-lang/janet/Manifest +++ b/dev-lang/janet/Manifest @@ -1,2 +1,3 @@ DIST janet-1.17.2.tar.gz 488524 BLAKE2B 33e801eb10b46d44a36b95bd29ea318ab3daa88654f47e12303344d2362a2ecc0d0f2ab9371d9539e0787df08664f503ee268b7acf967bd74a929992bc3ea2be SHA512 608ae20992d90cd93a364239c967fef8fdd1c631f1777211d916c6dc16cac5f007f52565bdf24cc0f8af1f521a0977a7245a3c137fc3b61583c2900e26fee81c DIST janet-1.19.2.tar.gz 486633 BLAKE2B 420b98218cf6a592ab385f5d9432d9e8ae98fe0a4b9c294aa2783e3ee810d256ef1ccf17c3986d7e490e4fcc046cb9a25b2d0f09ada223c19104e49d703d5d33 SHA512 4181f15ad61bfba46ce87acd148166bd0ab3c5dd5fb608d8d8722b912ecfa435baa7d881d4a8163aabb1b06bca2983b108dfb7256efa854c12c136e4f24c1ef2 +DIST janet-1.22.0.tar.gz 494011 BLAKE2B 2193cf0d87421adb122e86347d47ef1a9d3141d7dedf4ba88ed3d0e97c1b22a8216e1e42a6431266c6fbb4dcee665db63839e90ec9e5530491c64a94b8b11b04 SHA512 c1e90dafa833618e0999a1a53005241b768dee66bf7e6d4cc60b7c7ce87fccba955ca2faafd4eacda320801667acbfc56087f423a4ad6abe7e97d1f08e136107 diff --git a/dev-lang/janet/janet-1.22.0.ebuild b/dev-lang/janet/janet-1.22.0.ebuild new file mode 100644 index 000000000000..bff2523d8574 --- /dev/null +++ b/dev-lang/janet/janet-1.22.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 2022 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" +}