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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9066D158170 for ; Sat, 20 Jul 2024 06:42:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83978E2A4C; Sat, 20 Jul 2024 06:42:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E343E2A4C for ; Sat, 20 Jul 2024 06:42:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5512E341214 for ; Sat, 20 Jul 2024 06:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2E301D86 for ; Sat, 20 Jul 2024 06:42:49 +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: <1721457760.60d7d211df3396af15e578f01a79474d7b5e76df.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/mujs/Manifest dev-lang/mujs/mujs-1.3.5.ebuild X-VCS-Directories: dev-lang/mujs/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 60d7d211df3396af15e578f01a79474d7b5e76df X-VCS-Branch: master Date: Sat, 20 Jul 2024 06:42:49 +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: cb509e8d-64dc-41b2-9c48-4182e04eccde X-Archives-Hash: 452308b047c55ca8b23b8879955ed852 commit: 60d7d211df3396af15e578f01a79474d7b5e76df Author: Philipp Rösner protonmail com> AuthorDate: Mon Jun 24 15:44:23 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 20 06:42:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60d7d211 dev-lang/mujs: add 1.3.5 Upstream changes: https://github.com/ccxvii/mujs/compare/1.3.4...1.3.5 Signed-off-by: Philipp Rösner protonmail.com> Signed-off-by: Joonas Niilola gentoo.org> dev-lang/mujs/Manifest | 1 + dev-lang/mujs/mujs-1.3.5.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest index 86b6a2c9dd1a..658e0eb41b67 100644 --- a/dev-lang/mujs/Manifest +++ b/dev-lang/mujs/Manifest @@ -1,2 +1,3 @@ DIST mujs-1.3.3.tar.gz 128097 BLAKE2B 9b880dc462af8945e647994f9a42cf121461c6b295538db6cef818919a7c2418ebe1df7d36f69214279ad2414d0ce7149a541a3533e766274624b9c44b733db9 SHA512 74288484185473a813c55e08dcc2fefba46f87651d3a1fcea6ac843bb09a4150e13e0d46b348a34380a0defdeaa388cc93b6f7f569a7886091a34b4951b9461b DIST mujs-1.3.4.tar.gz 128202 BLAKE2B d07942cce02dc71937ad0207887bcefce67916e19d01f134d68d3673bcc0649eb616a1fadc5a21ddbf372629f12e7c04be4652a31ba604359607e9e7233a8923 SHA512 0806684be5e6dc3cb7305355ab7c7babbfd3fd5bbd22515659a88a82c25f3f4b6af14f7ca07bacd154823b19110b749bba68311c9f317dd684e0fd5628ece573 +DIST mujs-1.3.5.tar.gz 128938 BLAKE2B f262a99abe572548b456fabf5820c810885b86e1034d37c3375e9f4f44ddbd536acddf3cc56f086460fc0128ebf339b9e4f810069569243b86fc4af94f03ccb6 SHA512 9ebe0d2926d2621110cb67e701c1cdd87883703d58c49dc08e366b20c93dbdbc2f56e59b710999373bd8aaaee75b2d35adb1dad6929795684a8fff6483d9df25 diff --git a/dev-lang/mujs/mujs-1.3.5.ebuild b/dev-lang/mujs/mujs-1.3.5.ebuild new file mode 100644 index 000000000000..d60978857d66 --- /dev/null +++ b/dev-lang/mujs/mujs-1.3.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="An embeddable JavaScript interpreter written in C" +HOMEPAGE="https://mujs.com/ https://github.com/ccxvii/mujs" +SRC_URI="https://mujs.com/downloads/${P}.tar.gz" + +LICENSE="ISC" +# The subslot matches the SONAME +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" + +RDEPEND="sys-libs/readline:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.3-flags.patch +) + +src_prepare() { + default + + tc-export AR CC + + append-cflags -fPIC + + # The library's ABI (and API) might change in new releases + # Diff 'usr/include/mujs.h' across releases to validate + if [[ ${CHOST} == *-darwin* ]] ; then + append-cflags -Wl,-install_name,"${EPREFIX}"/usr/$(get_libdir)/lib${PN}.${PV}.dylib + else + append-cflags -Wl,-soname=lib${PN}.so.${PV} + fi +} + +src_compile() { + # We need to use ${PV} for the pkgconfig file, see: #784461 + emake \ + VERSION=${PV} \ + XCFLAGS="${CFLAGS}" \ + XLDFLAGS="${LDFLAGS}" \ + prefix=/usr \ + release +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + VERSION=${PV} \ + libdir="/usr/$(get_libdir)" \ + prefix=/usr \ + install-shared + + mv -v "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname) \ + "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname ${PV}) \ + || die "Failed adding version suffix to mujs shared library" + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname) + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname ${PV:0:1}) +}