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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9E637158020 for ; Fri, 16 Dec 2022 16:39:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 942CFE0855; Fri, 16 Dec 2022 16:39:30 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CF71E0828 for ; Fri, 16 Dec 2022 16:39:30 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90D31340DEB for ; Fri, 16 Dec 2022 16:39:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09BF1785 for ; Fri, 16 Dec 2022 16:39:28 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1671038306.b8194cde46d4fb966090f5291ca21d88dcfd9a46.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/dosbox-x/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild games-emulation/dosbox-x/dosbox-x-9999.ebuild X-VCS-Directories: games-emulation/dosbox-x/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: b8194cde46d4fb966090f5291ca21d88dcfd9a46 X-VCS-Branch: master Date: Fri, 16 Dec 2022 16:39:28 +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: a41c1e75-6f40-4b21-bb43-2dda3db695a6 X-Archives-Hash: 2f7323142db940329182b68386e5a015 commit: b8194cde46d4fb966090f5291ca21d88dcfd9a46 Author: Yuan Liao gmail com> AuthorDate: Wed Dec 14 16:27:10 2022 +0000 Commit: Florian Schmaus gentoo 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 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"