From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/hercules-sdl/
Date: Wed, 21 May 2025 20:53:05 +0000 (UTC) [thread overview]
Message-ID: <1747860658.7b9eb99ac7a2f8c5b5a8290062afa73201e30c9e.sam@gentoo> (raw)
commit: 7b9eb99ac7a2f8c5b5a8290062afa73201e30c9e
Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Fri Mar 28 05:10:41 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 20:50:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b9eb99a
app-emulation/hercules-sdl: add 4.8.0
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Part-of: https://github.com/gentoo/gentoo/pull/41335
Closes: https://github.com/gentoo/gentoo/pull/41335
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-emulation/hercules-sdl/Manifest | 1 +
.../hercules-sdl/hercules-sdl-4.8.0.ebuild | 93 ++++++++++++++++++++++
2 files changed, 94 insertions(+)
diff --git a/app-emulation/hercules-sdl/Manifest b/app-emulation/hercules-sdl/Manifest
index ef0e4456cb66..c2621a2877de 100644
--- a/app-emulation/hercules-sdl/Manifest
+++ b/app-emulation/hercules-sdl/Manifest
@@ -1 +1,2 @@
DIST hercules-sdl-4.7.tar.gz 25439384 BLAKE2B 78a8d2df947c80e23d0e956a25a4f009dd32b09f2834cc06373f685badf9f1e657bf0f4e4408c7085371c46085718998076f3a6063caf80c9161b1fa7caa91eb SHA512 9d7060c4e2687358b9547b59b47362d642cbf2bf009085fdd41e485170d0f81029ee3d04d12b905a3a266cd26a9087e92c231c3f4600c32a8535a6140656b7b0
+DIST hercules-sdl-4.8.tar.gz 29051256 BLAKE2B 70a8554a1796fab2860f137bc16c8f2d75ff9079e9d699e49552f31edfadabfcbd361b2d594bf92756f9b100c96178ee650f9a6c84507ec1472a0cbfd4389aef SHA512 3ce7fcab4ce1c003a1c42ebdd089452feb0d950851cf126d08e33a1b4201e1ae7f6e3572a2505f1a684377f9e4e8f1e1e932fe5c17498477d0946ad7cb8c4957
diff --git a/app-emulation/hercules-sdl/hercules-sdl-4.8.0.ebuild b/app-emulation/hercules-sdl/hercules-sdl-4.8.0.ebuild
new file mode 100644
index 000000000000..a5295e3834f7
--- /dev/null
+++ b/app-emulation/hercules-sdl/hercules-sdl-4.8.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools fcaps
+
+DESCRIPTION="The SoftDevLabs (SDL) version of the Hercules 4.x Hyperion Emulator"
+HOMEPAGE="https://sdl-hercules-390.github.io/html/"
+SRC_URI="https://github.com/SDL-Hercules-390/hyperion/archive/refs/tags/Release_${PV/.0/}.tar.gz -> ${P/.0/}.tar.gz"
+
+S="${WORKDIR}/hyperion-Release_${PV/.0/}"
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+# In theory USE=object-rexx and USE=regina-rexx are not mutually-exclusive.
+# In practice they functionally are as the Gentoo packages conflict, and
+# additionally Hercules only supports calling out to one of them at runtime,
+# controlled by the HREXX_PACKAGE environment variable.
+IUSE="bzip2 debug object-rexx regina-rexx test"
+RESTRICT="!test? ( test )"
+FILECAPS=(
+ -M 755 cap_sys_nice\=eip usr/bin/hercules --
+ -M 755 cap_sys_nice\=eip usr/bin/herclin --
+ -M 755 cap_net_admin+ep usr/bin/hercifc
+)
+
+COMMON_DEPEND="
+ dev-libs/libltdl
+ net-libs/libnsl:0
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ object-rexx? ( dev-lang/oorexx )
+ regina-rexx? ( dev-lang/regina-rexx )"
+RDEPEND="
+ !app-emulation/hercules
+ !app-arch/tapeutils
+ ${COMMON_DEPEND}"
+DEPEND="
+ ${COMMON_DEPEND}
+ ~app-emulation/hercules-sdl-crypto-${PV}
+ ~app-emulation/hercules-sdl-decnumber-${PV}
+ ~app-emulation/hercules-sdl-softfloat-${PV}
+ ~app-emulation/hercules-sdl-telnet-${PV}"
+# Neither package support needs to be compiled-in for tests,
+# but the "rexx" command needs to be available
+BDEPEND="test? ( || ( dev-lang/regina-rexx dev-lang/oorexx ) )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.4.1-htmldir.patch"
+)
+
+src_prepare() {
+ rm -rf crypto decNumber SoftFloat telnet || die
+ sed -i 's#}${hc_cv_pkg_lib_subdir}#}#g' configure.ac || die
+ sed -i 's#_pkgname}${hc_cv_pkg_lib_suffix}#_pkgname}#g' configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local -x ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=$(usex bzip2)
+ local confopts=(
+ $(use_enable bzip2 cckd-bzip2)
+ $(use_enable bzip2 het-bzip2)
+ $(use_enable object-rexx)
+ $(use_enable regina-rexx)
+ $(use_enable debug)
+ --enable-custom="Gentoo ${PF}.ebuild"
+ --disable-optimization
+ --disable-setuid-hercifc
+ --disable-capabilities
+ --enable-ipv6
+ --enable-enhanced-configincludes
+ --disable-fthreads
+ --enable-shared
+ --enable-automatic-operator
+ --enable-extpkgs="${SYSROOT}/usr/$(get_libdir)/${PN}"
+ )
+
+ econf "${confopts[@]}"
+}
+
+src_install() {
+ default
+ dodoc RELEASE.NOTES
+
+ insinto /usr/share/hercules
+ doins hercules.cnf
+
+ # No static archives. Have to leave .la files for modules. #720342
+ find "${ED}/usr/$(get_libdir)" -name "*.la" -delete || die
+}
next reply other threads:[~2025-05-21 20:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 20:53 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-14 20:06 [gentoo-commits] repo/gentoo:master commit in: app-emulation/hercules-sdl/ Sam James
2025-06-22 15:53 Sam James
2024-10-02 22:53 Sam James
2024-10-02 19:44 Sam James
2024-07-13 7:35 Joonas Niilola
2024-07-13 7:35 Joonas Niilola
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=1747860658.7b9eb99ac7a2f8c5b5a8290062afa73201e30c9e.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