commit: db0ce2609bd8d41ae2ed2352c1e7b3022a56509c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jan 4 04:26:58 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 4 04:27:26 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db0ce260
net-misc/suite3270: add 4.5_p5 Closes: https://bugs.gentoo.org/968014 Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/suite3270/Manifest | 1 + net-misc/suite3270/suite3270-4.5_p5.ebuild | 115 +++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/net-misc/suite3270/Manifest b/net-misc/suite3270/Manifest index 12ecec4d02e3..e297488c9603 100644 --- a/net-misc/suite3270/Manifest +++ b/net-misc/suite3270/Manifest @@ -1,2 +1,3 @@ DIST suite3270-4.3ga6-src.tgz 13188235 BLAKE2B 2ca334b82cc42818ac9d0733a8d93f3b73e598f9de94e7166972d88079cfcf98877eb08587ac24e096f9b6457c96344abd37c4bb9d7af4f7e50c3ef191f82714 SHA512 5250d382185acb7f89cb2a6ff5050aa05be809e7bd2bbe25cf74bd3177ebba8ea24d990b3f20e308a5cffa8bdbd5d1c82ba956db76a2812b5ae42ea57602d2bd DIST suite3270-4.4ga6-src.tgz 14241642 BLAKE2B e156c7e2a79b60071ab32d9a3e30e6e287789e5941247abd9f93b03eccc4f21b182a9125fe192a0500f2cad4d5648d064406ab5f02958d597d0f04731ae60415 SHA512 5709fdb97057ceeb0b8fcc67153a8eeee1943595df7a2aeed48b9db43c067a2107df3bbe8fcf6e9a12b2d1d23d6ec7cd522dcbc974eef7419d59593199782321 +DIST suite3270-4.5ga5-src.tgz 14277116 BLAKE2B 9cb9973b107e00331c678373a93d7e1cc9c03e70d742cc57c3a6c58411b26f5069f263dbf58fac0f2e0db42fb2a37803d96a6e1e816a5978678e232889e7592f SHA512 4d80f4d31b88a5d99862b6a2c0fbb6c4f45ea55d393d306cd0cb7e989a85759da7df5afcda1ba24e6608ab9a61a5385d8d63786b5e83c6ba192d1b682546d02e diff --git a/net-misc/suite3270/suite3270-4.5_p5.ebuild b/net-misc/suite3270/suite3270-4.5_p5.ebuild new file mode 100644 index 000000000000..11038c1d41cf --- /dev/null +++ b/net-misc/suite3270/suite3270-4.5_p5.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV=${PV/_p/ga} +MY_P=${PN}-${MY_PV} +SUB_PV=${PV:0:3} +S="${WORKDIR}"/${PN}-${SUB_PV} + +# Only the x3270 package installs fonts +FONT_PN="x3270" +FONT_S="${S}"/${FONT_PN} + +PYTHON_COMPAT=( python3_{11..14} ) +inherit autotools font python-any-r1 + +DESCRIPTION="Complete 3270 (S390) access package" +HOMEPAGE="https://x3270.bgp.nu/" +SRC_URI="https://downloads.sourceforge.net/x3270/${MY_P}-src.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" +IUSE="cjk doc gui ncurses ssl tcl" +# json_test fails on an obvious assert? +RESTRICT="test" + +RDEPEND=" + gui? ( + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXt + ) + ssl? ( dev-libs/openssl:= ) + ncurses? ( + sys-libs/ncurses:= + sys-libs/readline:= + ) + tcl? ( dev-lang/tcl:= ) +" +DEPEND=" + ${RDEPEND} + gui? ( x11-base/xorg-proto ) +" +BDEPEND=" + ${PYTHON_DEPS} + gui? ( + x11-apps/bdftopcf + >=x11-apps/mkfontscale-1.2.0 + x11-misc/xbitmaps + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.1-musl-wint-t-fix.patch + "${FILESDIR}"/${PN}-4.4_p6-ncurses-pkg-config.patch +) + +src_prepare() { + default + + # Some subdirs (like c3270/x3270/s3270) install the same set of data files + # (they have the same contents). Wrap that in a retry to avoid errors. + cat <<-EOF > _install || die + #!/bin/sh + for n in 1 2 3 4 5; do + install "\$@" && exit + echo "retrying ..." + done + exit 1 + EOF + chmod a+rx _install || die + # Can't use the ${INSTALL} var as top level configure also uses it. + # https://sourceforge.net/p/x3270/bugs/15/ + export ac_cv_path_install="${S}"/_install + + AT_NOEAUTOHEADER=yes eautoreconf +} + +src_configure() { + econf \ + --cache-file="${S}"/config.cache \ + --enable-s3270 \ + --enable-pr3287 \ + $(use_enable ncurses c3270) \ + $(use_enable tcl tcl3270) \ + $(use_enable gui x3270) \ + $(use_with gui x) \ + $(use_with gui fontdir "${FONTDIR}") +} + +src_test() { + # https://x3270.miraheze.org/wiki/Build/Tests + # TODO: Try switch to the generic 'test' target but tests hang + # with that. + emake lib-test +} + +src_install() { + use gui && dodir "${FONTDIR}" + + emake DESTDIR="${D}" install{,.man} + + use gui && font_src_install +} + +pkg_postinst() { + use gui && font_pkg_postinst +} + +pkg_postrm() { + use gui && font_pkg_postrm +}
