Install this version:
emerge -a =app-emulation/hercules-3.13
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit autotools flag-o-matic
DESCRIPTION="Hercules System/370, ESA/390 and zArchitecture Mainframe Emulator"
HOMEPAGE="http://www.hercules-390.eu/"
SRC_URI="http://downloads.hercules-390.eu/${P}.tar.gz"
LICENSE="QPL-1.0"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x64-macos"
IUSE="bzip2 custom-cflags +suid"
RDEPEND="
dev-libs/libltdl:=
net-libs/libnsl:0=
virtual/zlib:=
bzip2? ( app-arch/bzip2:= )"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-3.13-htmldir.patch
"${FILESDIR}"/${PN}-3.13-posix-test.patch
"${FILESDIR}"/${PN}-3.13-unbundle-libltdl.patch
"${FILESDIR}"/${PN}-3.13-user-install.patch
"${FILESDIR}"/${PN}-3.13-autoconf.patch
)
src_prepare() {
default
# delete bundled libltdl, #252716
rm ltdl.{c,h} || die
eautoreconf
# The local modules need local libs, so when doing a parallel install
# of the modules and libs breaks during relinking. Force the libs to
# install first, and then the modules that use those libs. #488126
echo "install-modexecLTLIBRARIES: install-libLTLIBRARIES" >> Makefile.in || die
}
src_configure() {
use custom-cflags || strip-flags
append-cflags -std=gnu17 # workaround for gcc15
local -x ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=$(usex bzip2)
econf \
$(use_enable bzip2 cckd-bzip2) \
$(use_enable bzip2 het-bzip2) \
$(use_enable suid setuid-hercifc) \
--enable-custom="Gentoo ${PF}.ebuild" \
--disable-optimization
}
src_install() {
default
dodoc RELEASE.NOTES
use suid && fperms 4711 /usr/bin/hercifc
insinto /usr/share/hercules
doins hercules.cnf
# No static archives. Have to leave .la files for modules. #720342
rm "${ED}/usr/$(get_libdir)/"*.la || die
}
Manage flags for this package:
euse -i <flag> -p app-emulation/hercules |
euse -E <flag> -p app-emulation/hercules |
euse -D <flag> -p app-emulation/hercules
dev-libs/libltdl:= net-libs/libnsl:0= virtual/zlib:= bzip2? ( app-arch/bzip2:= )
dev-libs/libltdl:= net-libs/libnsl:0= virtual/zlib:= bzip2? ( app-arch/bzip2:= )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | hercules-3.13.tar.gz | 2640742 bytes | http://downloads.hercules-390.eu/hercules-3.13.tar.gz |