From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/quickjs/
Date: Fri, 9 Aug 2024 03:29:08 +0000 (UTC) [thread overview]
Message-ID: <1723124655.a4997dee1af34185350647374468062a5f73bdec.watermanpaint@gentoo> (raw)
commit: a4997dee1af34185350647374468062a5f73bdec
Author: Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Thu Aug 8 13:43:32 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Aug 8 13:44:15 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a4997dee
dev-lang/quickjs: removed unnecessary .la
Closes: https://bugs.gentoo.org/928482
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>
dev-lang/quickjs/quickjs-2024.01.13-r1.ebuild | 54 +++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/dev-lang/quickjs/quickjs-2024.01.13-r1.ebuild b/dev-lang/quickjs/quickjs-2024.01.13-r1.ebuild
new file mode 100644
index 000000000..3e5e8bd02
--- /dev/null
+++ b/dev-lang/quickjs/quickjs-2024.01.13-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="${PN}-${PV//./-}"
+
+DESCRIPTION="Small embeddable Javascript engine"
+HOMEPAGE="https://bellard.org/quickjs/"
+SRC_URI="https://bellard.org/quickjs/${MY_P}.tar.xz"
+S="${WORKDIR}/${MY_P}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="lto static-libs"
+
+PATCHES=(
+ "${FILESDIR}/quickjs-2020.11.08_Remove-TTY-check-in-test.patch"
+ "${FILESDIR}/quickjs-2024-01-13-sharedlib.patch"
+ "${FILESDIR}/quickjs-2024-01-13-respect-env.patch"
+)
+
+src_prepare() {
+ # Changed in master
+ sed -i '/^CONFIG_LTO=/s;^;#;' Makefile || die
+
+ default
+
+ sed -i '/$(STRIP) .*/d' Makefile || die "Failed removing STRIP call"
+
+ sed -Ei '/^\s*(CC|AR)=/d' Makefile \
+ || die "Failed to remove hard-coded tools."
+
+ sed -i 's;$(PREFIX)/lib;$(LIBDIR);' Makefile || die "Failed fixing libdir"
+
+ if ! use static-libs; then
+ sed -i '/install -m644 libquickjs.a "$(DESTDIR)$(LIBDIR)\/quickjs"/d' Makefile || die "Failed fixing static-libs"
+ fi
+}
+
+src_configure() {
+ export CC="$(tc-getCC)"
+ export AR="$(tc-getAR)"
+
+ export PREFIX=/usr
+ export LIBDIR="/usr/$(get_libdir)"
+
+ export CONFIG_LTO=$(use lto)
+ if ! use static-libs; then
+ export CONFIG_SHARED=y
+ fi
+}
next reply other threads:[~2024-08-09 3:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 3:29 Lucio Sauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-09 3:29 [gentoo-commits] repo/proj/guru:master commit in: dev-lang/quickjs/ Lucio Sauer
2021-04-30 7:45 Andrew Ammerlaan
2021-04-30 7:45 Andrew Ammerlaan
2021-01-25 17:37 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-01-25 17:37 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-01-25 17:36 Andrew Ammerlaan
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=1723124655.a4997dee1af34185350647374468062a5f73bdec.watermanpaint@gentoo \
--to=watermanpaint@posteo.net \
--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