diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-02 14:59:21 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-02 14:59:41 -0500 |
commit | e72691ba7e1b2706fc1a3e687c82710f3b845d06 (patch) | |
tree | 78a46045b7e559ada778a65f62b49a04fabcd991 /net-misc/suite3270 | |
parent | www-apps/trickster: 1.1.5 bump (diff) | |
download | gentoo-e72691ba7e1b2706fc1a3e687c82710f3b845d06.tar.gz gentoo-e72691ba7e1b2706fc1a3e687c82710f3b845d06.tar.bz2 gentoo-e72691ba7e1b2706fc1a3e687c82710f3b845d06.zip |
net-misc/suite3270: version bump to 4.0_p14
Closes: https://bugs.gentoo.org/725154
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'net-misc/suite3270')
-rw-r--r-- | net-misc/suite3270/Manifest | 1 | ||||
-rw-r--r-- | net-misc/suite3270/suite3270-4.0_p14.ebuild | 102 |
2 files changed, 103 insertions, 0 deletions
diff --git a/net-misc/suite3270/Manifest b/net-misc/suite3270/Manifest index 5f9a9141c1a7..3da3049c5e20 100644 --- a/net-misc/suite3270/Manifest +++ b/net-misc/suite3270/Manifest @@ -1 +1,2 @@ DIST suite3270-4.0ga13-src.tgz 3317494 BLAKE2B 898f279143006e1fc1f470bda3917afe85957de745676dc915f9c94292824ba0e10fc2ccf0a47e307c41e48741a3da7c066c45f63c917295e0522122226b79dd SHA512 bdf9c5d129419c87b45907186e5f158d8623009151357e4d8a3d08ffff2f3729449cead84d005227bfb32968ae363d1a29350692cabe9bf8b71f760eda3f496b +DIST suite3270-4.0ga14-src.tgz 3318277 BLAKE2B 218d2332e3a5a3af1aa2f4f234d71ad5415ff74eefe485d1e9db2f4606caea56ce05142eec3b051f01eac3a0f0b7796221c98f16e7d7c625af291917148c5e37 SHA512 0c76946420bbc2a483ab321658350a5b3e1c03e66b65e99f1a8cb4d350e07eedd44f9f24671244f3c374f512e5d211304785b8e44ae125265ce8f71f0a9dcc65 diff --git a/net-misc/suite3270/suite3270-4.0_p14.ebuild b/net-misc/suite3270/suite3270-4.0_p14.ebuild new file mode 100644 index 000000000000..a4f2fe5f2b6e --- /dev/null +++ b/net-misc/suite3270/suite3270-4.0_p14.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +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}" + +inherit font + +DESCRIPTION="Complete 3270 access package" +HOMEPAGE="http://x3270.bgp.nu/" +SRC_URI="mirror://sourceforge/x3270/${MY_P}-src.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" +IUSE="cjk doc ncurses ssl tcl X" + +RDEPEND="ssl? ( dev-libs/openssl:0= ) + X? ( + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXt + ) + ncurses? ( + sys-libs/ncurses:= + sys-libs/readline:0= + ) + tcl? ( dev-lang/tcl:0 )" +DEPEND="${RDEPEND} + X? ( + x11-base/xorg-proto + x11-misc/xbitmaps + app-text/rman + >=x11-apps/mkfontscale-1.2.0 + x11-apps/bdftopcf + )" + +suite3270_makelist() { + echo pr3287 s3270 \ + $(usex ncurses c3270 '') \ + $(usex tcl tcl3270 '') \ + $(usex X x3270 '') +} + +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 + #!/bin/sh + for n in 1 2 3 4 5; do + install "\$@" && exit + echo "retrying ..." + done + exit 1 + EOF + chmod a+rx _install + # 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" +} + +src_configure() { + econf \ + --cache-file="${S}"/config.cache \ + --enable-s3270 \ + --enable-pr3287 \ + $(use_enable ncurses c3270) \ + $(use_enable tcl tcl3270) \ + $(use_enable X x3270) \ + $(use_with X x) \ + $(use_with X fontdir "${FONTDIR}") +} + +src_install() { + use X && dodir "${FONTDIR}" + emake DESTDIR="${D}" install{,.man} + + local p + for p in $(suite3270_makelist) ; do + cd "${S}/${p}" + docinto ${p} + dodoc README* + use doc && dodoc -r html + done + + use X && font_src_install +} + +pkg_postinst() { use X && font_pkg_postinst ; } +pkg_postrm() { use X && font_pkg_postrm ; } |