public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/dosbox-x/
Date: Fri, 16 Dec 2022 16:39:28 +0000 (UTC)	[thread overview]
Message-ID: <1671038306.b8194cde46d4fb966090f5291ca21d88dcfd9a46.flow@gentoo> (raw)

commit:     b8194cde46d4fb966090f5291ca21d88dcfd9a46
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Wed Dec 14 16:27:10 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Dec 14 17:18:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8194cde

games-emulation/dosbox-x: Update for upstream's rolling release adoption

Without a clear explanation, the upstream of this package has stopped
tagging releases and willy-nilly switched to "continuously built"
"nightly builds" (a.k.a. prone-to-break-on-any-day binaries put for user
downloads at an obscure place).  To allow Gentoo users to use recent
versions of this package without having to resort to the live ebuild, we
have no choice other than to make new non-live ebuilds based on GitHub
snapshot tarballs from now on.

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>

 games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild |  2 ++
 games-emulation/dosbox-x/dosbox-x-9999.ebuild      | 26 +++++++++++++++++++---
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild b/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild
index 396f0023f..473948a53 100644
--- a/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild
@@ -1,6 +1,8 @@
 # Copyright 2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Note: This is the last release (non-pre-release) tagged by upstream
+
 EAPI=8
 
 inherit autotools flag-o-matic toolchain-funcs xdg

diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
index fba8467c0..e2738549f 100644
--- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
@@ -3,14 +3,24 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs xdg
+inherit autotools readme.gentoo-r1 toolchain-funcs xdg
 
 if [[ "${PV}" == 9999 ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/joncampbell123/dosbox-x.git"
 else
-	SRC_URI="https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-windows-v${PV}.tar.gz"
-	S="${WORKDIR}/${PN}-${PN}-windows-v${PV}"
+	# https://github.com/joncampbell123/dosbox-x/discussions/3862
+	GIT_COMMIT=""
+	DOC_CONTENTS="
+		DOSBox-X upstream has stopped making releases.  Therefore, this
+		package has installed a copy of DOSBox-X built from an upstream
+		repository snapshot at the following Git commit:\n
+		\n
+		${GIT_COMMIT}
+	"
+
+	SRC_URI="https://github.com/joncampbell123/dosbox-x/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}/${PN}-${GIT_COMMIT}"
 	KEYWORDS="~amd64"
 fi
 
@@ -126,6 +136,11 @@ src_test() {
 	"${@}" || die "Unit tests failed"
 }
 
+src_install() {
+	default
+	[[ -n "${DOC_CONTENTS}" ]] && readme.gentoo_create_doc
+}
+
 pkg_preinst() {
 	xdg_pkg_preinst
 
@@ -148,6 +163,11 @@ pkg_preinst() {
 pkg_postinst() {
 	xdg_pkg_postinst
 
+	if ! has "${PVR}" ${REPLACING_VERSIONS} && [[ -n "${DOC_CONTENTS}" ]]; then
+		FORCE_PRINT_ELOG=1
+		readme.gentoo_print_elog
+	fi
+
 	if [[ "${PRINT_NOTES_FOR_DEBUGGER}" ]]; then
 		elog
 		elog "Note on the Debugger"


             reply	other threads:[~2022-12-16 16:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16 16:39 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-03 19:42 [gentoo-commits] repo/proj/guru:master commit in: games-emulation/dosbox-x/ Julien Roy
2024-12-15 18:10 Julien Roy
2024-12-15 18:10 Julien Roy
2024-12-15 18:10 Julien Roy
2024-12-15 18:10 Julien Roy
2024-10-07  9:06 David Roman
2024-10-07  9:06 David Roman
2024-07-31 22:49 Lucio Sauer
2024-04-27 12:09 Julien Roy
2024-03-02  7:10 Arthur Zamarin
2024-02-08  9:29 David Roman
2023-11-09  3:11 Haelwenn Monnier
2023-10-08 20:58 David Roman
2023-10-08 20:58 David Roman
2023-09-03 12:27 Haelwenn Monnier
2023-08-21 12:43 Haelwenn Monnier
2023-04-01 21:30 Haelwenn Monnier
2023-04-01 21:30 Haelwenn Monnier
2023-03-16  8:41 Florian Schmaus
2022-12-27  8:05 Viorel Munteanu
2022-12-27  8:05 Viorel Munteanu
2022-12-27  8:05 Viorel Munteanu
2022-12-16 16:39 Florian Schmaus
2022-12-06  6:09 Viorel Munteanu
2022-10-07 13:13 Arthur Zamarin
2022-09-08  1:46 Ronny Gutbrod
2022-08-24 15:52 Ronny Gutbrod
2022-08-02 10:55 Haelwenn Monnier
2022-08-02 10:55 Haelwenn Monnier
2022-07-05  7:14 Florian Schmaus

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=1671038306.b8194cde46d4fb966090f5291ca21d88dcfd9a46.flow@gentoo \
    --to=flow@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