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/luajit/
Date: Wed, 13 Nov 2024 05:10:40 +0000 (UTC)	[thread overview]
Message-ID: <1731474478.167d7633fec9eb8606255ca3e75429348c4a0320.sam@gentoo> (raw)

commit:     167d7633fec9eb8606255ca3e75429348c4a0320
Author:     Artemis Everfree <artemis <AT> artemis <DOT> sh>
AuthorDate: Tue Nov 12 22:47:01 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 05:07:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=167d7633

dev-lang/luajit: add 2.1.9999999999

This addresses the -9999 request in #843773.

Currently, upstream pushes all changes to the v2.1 branch.

Per http://luajit.org/status.html,

> The old git master branch is phased out and stays pinned
> to the v2.0 branch. Please follow the versioned branches
> instead.

I think that tracking v2.1 is in the spirit of the original
request; most people interested in this ebuild will want to
have the latest rolling commit of v2.1, and will not want to
suddenly be switched to a new incompatible version of
luajit. To be consistent, I've versioned it 2.1.9999999999
so we can create a 2.2.9999999999 or 3.0.9999999999 if the
time comes. I've included enough nines that we should be
good for the next hundred or so years ;)

Bug: https://bugs.gentoo.org/843773
Signed-off-by: Artemis Everfree <artemis <AT> artemis.sh>
Closes: https://github.com/gentoo/gentoo/pull/39293
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/luajit/luajit-2.1.9999999999.ebuild | 79 ++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)

diff --git a/dev-lang/luajit/luajit-2.1.9999999999.ebuild b/dev-lang/luajit/luajit-2.1.9999999999.ebuild
new file mode 100644
index 000000000000..f4cd0a39d8e1
--- /dev/null
+++ b/dev-lang/luajit/luajit-2.1.9999999999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Upstream doesn't make releases anymore and instead have a (broken) "rolling
+# git tag" model.
+#
+# https://github.com/LuaJIT/LuaJIT/issues/665#issuecomment-784452583
+# https://www.freelists.org/post/luajit/LuaJIT-uses-rolling-releases
+#
+# Regular snapshots should be made from the v2.1 branch. Get the version with
+# `git show -s --format=%ct`
+
+inherit toolchain-funcs
+
+DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
+HOMEPAGE="https://luajit.org/"
+
+if [[ ${PV} == 2.1.9999999999 ]]; then
+	# This is the 2.1 rolling release live build. When a 2.2 or 3.x branch comes
+	# out, create a new ebuild for it.
+	#
+	# Upstream recommends pulling rolling releases from the v2.1 branch.
+	# > The old git master branch is phased out and stays pinned to the v2.0
+	# > branch. Please follow the versioned branches instead.
+	#
+	# See http://luajit.org/status.html for additional information.
+	EGIT_BRANCH="v2.1"
+	EGIT_REPO_URI="https://luajit.org/git/luajit.git"
+	inherit git-r3
+else
+	# Update this commit hash to bump a pinned-commit ebuild.
+	GIT_COMMIT=""
+	SRC_URI="https://github.com/LuaJIT/LuaJIT/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}/LuaJIT-${GIT_COMMIT}"
+
+	KEYWORDS="~amd64 ~arm ~arm64 -hppa ~mips ~ppc -riscv -sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="MIT"
+# this should probably be pkgmoved to 2.1 for sake of consistency.
+SLOT="2/${PV}"
+IUSE="lua52compat static-libs"
+
+_emake() {
+	emake \
+		Q= \
+		PREFIX="${EPREFIX}/usr" \
+		MULTILIB="$(get_libdir)" \
+		DESTDIR="${D}" \
+		CFLAGS="" \
+		LDFLAGS="" \
+		HOST_CC="$(tc-getBUILD_CC)" \
+		HOST_CFLAGS="${BUILD_CPPFLAGS} ${BUILD_CFLAGS}" \
+		HOST_LDFLAGS="${BUILD_LDFLAGS}" \
+		STATIC_CC="$(tc-getCC)" \
+		DYNAMIC_CC="$(tc-getCC) -fPIC" \
+		TARGET_LD="$(tc-getCC)" \
+		TARGET_CFLAGS="${CPPFLAGS} ${CFLAGS}" \
+		TARGET_LDFLAGS="${LDFLAGS}" \
+		TARGET_AR="$(tc-getAR) rcus" \
+		BUILDMODE="$(usex static-libs mixed dynamic)" \
+		TARGET_STRIP="true" \
+		INSTALL_LIB="${ED}/usr/$(get_libdir)" \
+		"$@"
+}
+
+src_compile() {
+	tc-export_build_env
+	_emake XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")"
+}
+
+src_install() {
+	_emake install
+	dosym luajit-"${PV}" /usr/bin/luajit
+
+	HTML_DOCS="doc/." einstalldocs
+}


             reply	other threads:[~2024-11-13  5:10 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13  5:10 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-24 14:59 [gentoo-commits] repo/gentoo:master commit in: dev-lang/luajit/ Joonas Niilola
2024-11-21  9:24 Sam James
2024-11-14  3:23 Sam James
2024-11-13  5:10 Sam James
2024-11-12 21:47 Sam James
2024-09-10  2:37 Matt Turner
2024-09-10  2:37 Matt Turner
2024-07-16 22:46 Sam James
2024-07-16 22:46 Sam James
2024-07-16 22:46 Sam James
2024-07-16 19:18 Arthur Zamarin
2024-07-16 19:18 Arthur Zamarin
2024-07-16 17:46 William Hubbs
2024-06-09  3:38 Matt Turner
2023-11-13 22:15 James Le Cuirot
2023-09-10 12:25 Sam James
2023-03-19 17:36 Arthur Zamarin
2022-12-06  9:25 Sam James
2022-06-20 17:16 William Hubbs
2022-06-20 16:56 William Hubbs
2022-06-20 16:23 William Hubbs
2022-06-18 16:55 Agostino Sarubbo
2022-06-17 11:37 Agostino Sarubbo
2022-06-17 10:29 Jakov Smolić
2022-06-17 10:29 Jakov Smolić
2022-06-17  6:56 Agostino Sarubbo
2022-04-19 23:58 Sam James
2022-02-15 23:30 William Hubbs
2022-02-15  4:22 William Hubbs
2021-06-25 12:32 Marek Szuba
2021-03-07 18:46 Sergei Trofimovich
2020-12-14  1:20 William Hubbs
2020-12-14  1:20 William Hubbs
2020-12-08 12:42 Thomas Deutschmann
2020-12-08 12:42 Thomas Deutschmann
2020-12-08 12:42 Thomas Deutschmann
2020-12-07 18:46 William Hubbs
2020-12-07 18:46 William Hubbs
2020-12-07 18:28 William Hubbs
2020-10-24 11:49 Rafael Martins
2020-07-25 15:14 Rafael Martins
2020-07-25 11:16 Sam James
2020-07-23 23:45 Sam James
2020-07-23 21:52 Sam James
2020-07-23 20:36 Sam James
2020-02-01 21:46 Rafael Martins
2019-03-22 19:42 Rafael Martins
2018-07-08 10:48 Markus Meier
2018-06-26  2:04 Aaron Bauman
2018-05-26 20:31 Aaron Bauman
2018-03-26  6:21 Michał Górny
2018-03-22 14:24 Guilherme Amadio
2018-03-14  2:07 Rafael Martins
2016-01-14 21:57 Markus Meier
2016-01-05 10:49 Agostino Sarubbo

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=1731474478.167d7633fec9eb8606255ca3e75429348c4a0320.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