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/mujs/
Date: Sat, 20 Jan 2024 12:04:08 +0000 (UTC)	[thread overview]
Message-ID: <1705752186.b21f8451fe45968f18232b485e874bc35bdc0e78.sam@gentoo> (raw)

commit:     b21f8451fe45968f18232b485e874bc35bdc0e78
Author:     Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Thu Dec 21 16:02:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 20 12:03:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b21f8451

dev-lang/mujs: add 1.3.4

Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/mujs/Manifest          |  1 +
 dev-lang/mujs/mujs-1.3.4.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest
index 6120ebca2ad6..2b2bf90c64a1 100644
--- a/dev-lang/mujs/Manifest
+++ b/dev-lang/mujs/Manifest
@@ -1,2 +1,3 @@
 DIST mujs-1.3.2.tar.gz 127899 BLAKE2B 4de5e1e60c5d6af9a20d8bb1fe2612d6c90a6b5557a66524bf81747e893a89a88b4da7e5393325923c6eb0788679da4013f25032cad23e547f15a1d49cf0a738 SHA512 ccffb04171f7ecec2cfa6f0e59859acc911836370a648e4c6703db174631ce316413a64ebf4b32eea3d3b09221ff01861cda91f4b1b9bebf495168f26f90daf5
 DIST mujs-1.3.3.tar.gz 128097 BLAKE2B 9b880dc462af8945e647994f9a42cf121461c6b295538db6cef818919a7c2418ebe1df7d36f69214279ad2414d0ce7149a541a3533e766274624b9c44b733db9 SHA512 74288484185473a813c55e08dcc2fefba46f87651d3a1fcea6ac843bb09a4150e13e0d46b348a34380a0defdeaa388cc93b6f7f569a7886091a34b4951b9461b
+DIST mujs-1.3.4.tar.gz 128202 BLAKE2B d07942cce02dc71937ad0207887bcefce67916e19d01f134d68d3673bcc0649eb616a1fadc5a21ddbf372629f12e7c04be4652a31ba604359607e9e7233a8923 SHA512 0806684be5e6dc3cb7305355ab7c7babbfd3fd5bbd22515659a88a82c25f3f4b6af14f7ca07bacd154823b19110b749bba68311c9f317dd684e0fd5628ece573

diff --git a/dev-lang/mujs/mujs-1.3.4.ebuild b/dev-lang/mujs/mujs-1.3.4.ebuild
new file mode 100644
index 000000000000..01af3eb22a5b
--- /dev/null
+++ b/dev-lang/mujs/mujs-1.3.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2023 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})
+}


             reply	other threads:[~2024-01-20 12:04 UTC|newest]

Thread overview: 155+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20 12:04 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-30  7:59 [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/ Sam James
2024-08-20  5:08 Joonas Niilola
2024-08-20  5:08 Joonas Niilola
2024-08-19 19:23 Sam James
2024-08-19 19:23 Sam James
2024-08-19 19:22 Sam James
2024-08-19 19:22 Sam James
2024-07-20  6:42 Joonas Niilola
2024-07-20  6:42 Joonas Niilola
2024-03-13  6:26 Arthur Zamarin
2024-03-12 21:13 Arthur Zamarin
2024-03-12 20:42 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2023-05-29 20:34 Sam James
2023-05-29 17:49 Arthur Zamarin
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:22 Sam James
2023-03-19 17:36 Arthur Zamarin
2023-01-09 12:51 Joonas Niilola
2023-01-06 22:23 Sam James
2023-01-06 22:23 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2022-12-24  7:42 Sam James
2022-11-12  6:12 WANG Xuerui
2022-11-03  2:05 WANG Xuerui
2022-11-02 14:24 Joonas Niilola
2022-11-02 14:24 Joonas Niilola
2022-01-28 19:13 Arthur Zamarin
2022-01-28 18:45 Arthur Zamarin
2022-01-28  9:34 Agostino Sarubbo
2022-01-28  9:33 Agostino Sarubbo
2022-01-28  9:30 Agostino Sarubbo
2022-01-28  2:34 Sam James
2022-01-28  2:34 Sam James
2021-12-29  1:59 Sam James
2021-12-29  1:58 Sam James
2021-12-25 19:48 Sam James
2021-12-25 19:48 Sam James
2021-12-17  0:40 Sam James
2021-07-19 14:24 Yixun Lan
2021-07-16 21:44 Sam James
2021-07-13 20:05 Sam James
2021-07-13 20:05 Sam James
2021-07-13  6:28 Agostino Sarubbo
2021-07-13  0:05 Sam James
2021-07-13  0:05 Sam James
2021-07-13  0:05 Sam James
2021-06-10 19:23 Sam James
2021-05-31 11:40 Sam James
2021-05-29  8:53 Agostino Sarubbo
2021-05-29  8:43 Agostino Sarubbo
2021-05-29  8:41 Agostino Sarubbo
2021-05-29  6:13 Sam James
2021-05-29  6:13 Sam James
2021-05-29  6:13 Sam James
2021-05-03 20:20 Sam James
2021-04-28 18:47 Sam James
2021-04-20 15:02 Sam James
2021-04-20 15:02 Sam James
2021-04-14 22:03 Sam James
2021-03-28 12:52 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-25 21:29 Sam James
2021-03-25 16:27 Agostino Sarubbo
2021-03-24 19:42 Sam James
2021-03-23  4:53 Sam James
2021-03-23  4:04 Sam James
2021-03-23  4:04 Sam James
2021-03-23  4:04 Sam James
2021-03-17  1:44 Sam James
2021-02-05 10:37 Sam James
2020-12-21 22:41 Sam James
2020-12-20  6:29 Sam James
2020-11-17 19:05 Agostino Sarubbo
2020-11-01 14:22 Sam James
2020-10-28 22:34 Sam James
2020-10-26  7:29 Sergei Trofimovich
2020-10-25 23:24 Sam James
2020-10-25 23:08 Thomas Deutschmann
2020-10-25 22:13 Sam James
2020-10-24 17:46 Sergei Trofimovich
2020-10-24 11:08 Sergei Trofimovich
2020-10-24 11:03 Sergei Trofimovich
2020-10-13 23:21 Sam James
2020-09-04 15:55 Sam James
2020-09-01 20:54 Sam James
2020-08-29 17:57 Thomas Deutschmann
2020-08-28 22:21 Sergei Trofimovich
2020-08-25 12:56 Sam James
2020-08-25  0:41 Sam James
2020-06-26 20:45 Thomas Deutschmann
2020-06-26 20:45 Thomas Deutschmann
2020-06-26 20:45 Thomas Deutschmann
2020-04-27 17:08 Sergei Trofimovich
2020-04-26 15:33 Agostino Sarubbo
2020-04-26 15:32 Agostino Sarubbo
2020-04-26 15:31 Agostino Sarubbo
2020-04-26 15:30 Agostino Sarubbo
2020-04-26 15:29 Agostino Sarubbo
2020-04-26 14:19 Agostino Sarubbo
2020-04-26 14:16 Agostino Sarubbo
2019-08-11  9:07 Sergei Trofimovich
2019-07-05 19:05 Virgil Dupras
2019-06-02 11:53 Virgil Dupras
2019-05-17  2:47 Aaron Bauman
2019-02-12 12:12 Mikle Kolyada
2019-02-12 12:12 Mikle Kolyada
2019-01-31 14:23 Tobias Klausmann
2019-01-21  1:19 Virgil Dupras
2019-01-17 22:41 Sergei Trofimovich
2019-01-17  8:29 Sergei Trofimovich
2019-01-17  8:08 Sergei Trofimovich
2019-01-15 22:10 Thomas Deutschmann
2019-01-13  9:43 Sergei Trofimovich
2019-01-12 23:57 Sergei Trofimovich
2019-01-12 14:23 Virgil Dupras
2019-01-12 14:02 Virgil Dupras
2019-01-05 17:19 Mikle Kolyada
2018-11-17 15:08 Mikle Kolyada
2018-10-30  0:11 Virgil Dupras
2018-10-14  9:14 Sergei Trofimovich
2018-10-14  8:59 Sergei Trofimovich
2018-10-13 16:14 Sergei Trofimovich
2018-10-13  6:56 Tobias Klausmann
2018-10-12 19:08 Sergei Trofimovich
2018-10-11 19:51 Agostino Sarubbo
2018-10-09 21:24 Thomas Deutschmann
2018-10-07  2:15 Virgil Dupras
2017-09-16 12:10 Jeroen Roovers
2017-06-30  7:39 Alexis Ballier
2017-05-24 13:27 Michał Górny
2017-05-23 13:36 Tobias Klausmann
2017-02-22 11:45 Michael Weber
2017-02-05 16:57 Markus Meier
2017-01-23  8:24 Michael Weber
2017-01-23  1:25 Michael Weber
2017-01-12  9:30 Jeroen Roovers
2017-01-10 14:56 Agostino Sarubbo
2017-01-04 12:34 David Seifert
2016-10-30  8:17 Pacho Ramos
2016-06-13 20:51 Michael Weber
2016-05-30 20:11 Michael Weber
2016-04-29  5:57 Jeroen Roovers
2016-04-10  8:45 Jeroen Roovers

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=1705752186.b21f8451fe45968f18232b485e874bc35bdc0e78.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