summaryrefslogtreecommitdiff
path: root/net-misc/suite3270
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/suite3270
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/suite3270')
-rw-r--r--net-misc/suite3270/Manifest17
-rw-r--r--net-misc/suite3270/files/Makefile.in10
-rw-r--r--net-misc/suite3270/files/suite3270-3.5_p8-tinfo.patch87
-rw-r--r--net-misc/suite3270/metadata.xml25
-rw-r--r--net-misc/suite3270/suite3270-3.3.15_p9.ebuild117
-rw-r--r--net-misc/suite3270/suite3270-3.4_p10.ebuild101
-rw-r--r--net-misc/suite3270/suite3270-3.4_p9.ebuild101
-rw-r--r--net-misc/suite3270/suite3270-3.5_p10.ebuild103
-rw-r--r--net-misc/suite3270/suite3270-3.5_p8.ebuild103
-rw-r--r--net-misc/suite3270/suite3270-3.5_p9.ebuild103
10 files changed, 767 insertions, 0 deletions
diff --git a/net-misc/suite3270/Manifest b/net-misc/suite3270/Manifest
new file mode 100644
index 000000000000..b4855f974a43
--- /dev/null
+++ b/net-misc/suite3270/Manifest
@@ -0,0 +1,17 @@
+AUX Makefile.in 288 SHA256 c562d7dd6d1396a7fc1232f4d780d4eec4b95640e55a329f32918d20be789482 SHA512 e85cf2775af99af4d004a18f3580748866786544b69ca7191c0a2bee0ebb2a652aaf3024f9baaa029e9c730f1765b37ee07d6f8430649f79607369feca862d2d WHIRLPOOL d42368f46f433721c4ad6c24b4aff659c308d497ffb5f450578fb6d6a19a6fc8fe18481fb323c59ff0021a7669af69cbe988fc3ca3dfcdc03c33373a39e4b156
+AUX suite3270-3.5_p8-tinfo.patch 2793 SHA256 0a12c15ece65c336147bfbdf3a48593438d6b1287a27e57975fbe67592a5e393 SHA512 67a7fe63228dad755f73582eda7d1bc7efda18f454b99258f6bbfb45aa081a14c583797a6c940b80604eacfc719d4ba1be83ba2425c99de3afa4d1e027b3402b WHIRLPOOL 9988ff0c8dafadda5f349b3192039243fa710fe5668d7cb539e82c8210d1641a04d752ac2e203b7d77fbd9256b85c218dd72575298011b337c4372b6b0cfe67d
+DIST suite3270-3.3.15ga9-src.tgz 6960911 SHA256 e22f40360170acf70b6de521173c633072582315b4879aef276fb8c97102e848 SHA512 dd6ad0b42f935a9a25170d3ef765e8d31746b7c6a7d9c6f31630da77cc4fd2bde9f4861c86fb237211dd17e60423c4e1627871c8a710467076b99166e7774ccb WHIRLPOOL 79b5691995dd98e6821130df3df8fed2af04abb7ebce642a12d82fa67045c3a1e491d32b8dd43b574b35e80cf0c734f8ab007ece18130e7c373175fa672a8e46
+DIST suite3270-3.4ga10-src.tgz 3398730 SHA256 e9c1b46a61e4e727538fa942657c7eea7eef42de916a78c72a086b57330e2417 SHA512 d9ed4aa41c45a2e961d5c2d0c00c6b81526da64b9c1765b0c5e39cb647157026a787db2054b2feb55c57e5a458a31062141471447b1177fd46cbbeb7d71e3f28 WHIRLPOOL 0af05ca2bedf00595fb8f525f51be3d6595d320d8f199d677d684ed797c7d1a29e1e1bb93187136c4fd8679c00e0255e5178d5ea3a2357a6545124ce510ecc92
+DIST suite3270-3.4ga9-src.tgz 3400841 SHA256 49dfd73f930196c05bbc80709c2ac89b5c4f43745d6ce7a271c78a4624d93c1e SHA512 02c834d8a23bf3cde33dec017d5d8dcc6473ca43bb066d3d0315898de9a2685ad75986ec14e2c6234269b310121bb5f8c4a04df3694e02fcc6c0947cfc661f69 WHIRLPOOL bb3974b7b690fe6ca41830dc1cb89f2d8e08be7b85423d771af8b97ef49191ae96ce84d7c7de2f03c058d2aa9738ab8949ae99c7de32f9605b3064daba9ebe17
+DIST suite3270-3.5ga10-src.tgz 3412329 SHA256 e316638cfa317aec8c542b8c64b9a0adfa41889193aafb814371b633cbb94c03 SHA512 0cce1212ca7589595cd2f775d18086f231a9e6d621716be5a41123a379358d9ac08c9668de2bd6a2e401ae54d12a4905c3c260cb7ba90482bbce6790d8e3efb8 WHIRLPOOL b753f830dbda560018851e6b32e44adae5d80dbb001ecf6bc7b5e55d7d4381959c47934f3d7529a7be39b7d9d3a3d7dd54129a0e14acdb5a84216bdd57ed9222
+DIST suite3270-3.5ga8-src.tgz 3404504 SHA256 04d98c2644d8acc3b0089f85558074623500bc194c41609298b344b6e5d905d2 SHA512 f912afccaec7a489fcfb4e6d61729154c09a68df9478747d7b074d970fbe4b7ac8c809fb496b1cd329d6119a2dc45b2d67ef94f39679218858afc75a4a3dc072 WHIRLPOOL 9ed4b2f6f8fe028f40ff4d75bcde70c140e5afd00b82f861951385850873d114df594ceb3623716005c282d570c30f1407a50c353d142c542e3562ae29afe462
+DIST suite3270-3.5ga9-src.tgz 3409168 SHA256 654756cc1204fd69a861d416d350a0ab3c9cea317173a80b06aca0402a517d3e SHA512 b206f0f9a698922ca207d93cbd9d302c2fc9fd7f492de78f63fadaaee96dfeeebe3e06a51ca181f5785287832db7e1a3b6666db2cab1a23a138caab7e1eed634 WHIRLPOOL e20f6bd73888b945e9f9d4c99dda9d84ceee5ea776fc69593735b3fb07733703e656d102187206082e24b5995481386a88bd2a46b9618776ec80a0310dcb601f
+EBUILD suite3270-3.3.15_p9.ebuild 2480 SHA256 78c3f8529d29f12df1bd95b56fe65cb46093179d36df791c9b7d8c5ed1adf259 SHA512 099674bbc3cf77e6c4b829d0a14f9ad5ec88173b66df3f62b96143cc07f59100cd7a5653ee8e6af0fcb92efded9c92c18c07a042aa42ca89da91d85e9a0d116a WHIRLPOOL 2416932993a7a5581aecab80bf57a704a070f73ab08f396234531e94a1c5d2f36ea0b199975ad574f9b9f8d318e2cd470e22f4b3d234664b355e08977478f982
+EBUILD suite3270-3.4_p10.ebuild 2057 SHA256 901bcc9cc310b81ec2c1d3e049cb2f8d0e6e11e073f4f6107aa02534377812e4 SHA512 91e3015a1ac9460c037464b93d69339e4ec454cf72ee1bf37181d940fc6519086d7571d930c85db9878eb9b5bd01edd8d982a2526191bb48c1fc4096c0bf2759 WHIRLPOOL 189dc7dc2cda3e9f6a3f408d930120c921d32f492296f35feb15129ba8691d8aceb68b1bc3b8f5a8fca4ee96b9f61e63f752b6f900ff080ea1e6c835d1cbe787
+EBUILD suite3270-3.4_p9.ebuild 2057 SHA256 901bcc9cc310b81ec2c1d3e049cb2f8d0e6e11e073f4f6107aa02534377812e4 SHA512 91e3015a1ac9460c037464b93d69339e4ec454cf72ee1bf37181d940fc6519086d7571d930c85db9878eb9b5bd01edd8d982a2526191bb48c1fc4096c0bf2759 WHIRLPOOL 189dc7dc2cda3e9f6a3f408d930120c921d32f492296f35feb15129ba8691d8aceb68b1bc3b8f5a8fca4ee96b9f61e63f752b6f900ff080ea1e6c835d1cbe787
+EBUILD suite3270-3.5_p10.ebuild 2106 SHA256 26632e513b940384548ffdc4b6bb2d3982b4a171b6482a3b7659f89a26ea6b72 SHA512 30c12b4ad8cc2b57e633bcbe1b018828b743999ce7ba41dea369a703a520c2e1d8d2a42da0e4b2465b53136d06c8311ccdb70585e02851730ed0fdfab0865daf WHIRLPOOL d1d89321de205065c67585d376b5ea4df86cc77f6af431144c091327c4de08207182d7c2ecb067142a8d2f1a929832ebd8fc7511ce622bfdb9dadd1db7f9418a
+EBUILD suite3270-3.5_p8.ebuild 2106 SHA256 575b12fb6f22a3c712986fc5ad3d4dfb7e499a9efd76449107383e52d629a283 SHA512 9d9af1da4a812979256a3780191e1ff90020647e66e6c254bab3ca830aa311eaa8debb83457f2c4d26ac85af3bea785c4703fc3b96015681817fd7d8c2ab27e6 WHIRLPOOL 095c527ae98495f45c110859aa463f1bf44dc4bcf81628454dd7dac6348cd12702c7a29d7abb5aefbc83d7b5ceb549f6638567f8079ef789b6fabc996d34a829
+EBUILD suite3270-3.5_p9.ebuild 2106 SHA256 575b12fb6f22a3c712986fc5ad3d4dfb7e499a9efd76449107383e52d629a283 SHA512 9d9af1da4a812979256a3780191e1ff90020647e66e6c254bab3ca830aa311eaa8debb83457f2c4d26ac85af3bea785c4703fc3b96015681817fd7d8c2ab27e6 WHIRLPOOL 095c527ae98495f45c110859aa463f1bf44dc4bcf81628454dd7dac6348cd12702c7a29d7abb5aefbc83d7b5ceb549f6638567f8079ef789b6fabc996d34a829
+MISC ChangeLog 5833 SHA256 42a61bae7646d21093189451c5845b303db9b56642ef326f14221b7f074d8619 SHA512 ed7b98f634fabc452d7881a9212956be39a2404bca4221eda315968e71b2af6fcfc349e1e1977d1b6513b4d00525bb55393f790b9de1c112d3cdd82e3b8cc6eb WHIRLPOOL 1343b3eebb009ba7e5bba8524531d501e0dd83fc40d5a0b9d666e93b61521149d3a1dce44b4be3d8dd2fcd92ca4d5aca19dffc602b9dae5c79edd77b13716ba1
+MISC ChangeLog-2015 9504 SHA256 deb1bf789241e67dc896244da4fe0dc32386bbcdb124a2624f1e7d70614af33e SHA512 c10092541d813a39d33f814e91ac0339e1b4b05bdfe21af3d6a7b93d13e69365784c835ec7a02ba558a64b6c649f5a64c347640aaa577395d5a45bdb75bf371a WHIRLPOOL 24af3ac10b0bc2801a36f041c045f882b910569fb4fe518dcaab492d4416949d155e03e641344028b077087860b1c15adfb64eff13ffdb8929352ce72793e639
+MISC metadata.xml 817 SHA256 f5e976c898edaefdcb969c36454bd12e5ada1d5fde247a17604f0f318a43467f SHA512 35ae680ef866fb426e11f0a8cd1684cad37d73d1cb9b14d1af28c6dc5643074ef8c879075a39448e7b42cfab956245e7acfc66cbd87842965137fe603d26957f WHIRLPOOL 4bf273ab573da73ca3a8ade70bb36c1d4ad3dcb37ee2b05a684d4e756d231b4ef57917bf97ca54ab98262815bec57ebb3cc1ff3449716f2a78f3781843436321
diff --git a/net-misc/suite3270/files/Makefile.in b/net-misc/suite3270/files/Makefile.in
new file mode 100644
index 000000000000..154b470de801
--- /dev/null
+++ b/net-misc/suite3270/files/Makefile.in
@@ -0,0 +1,10 @@
+# DO NOT STARE AT THE SUN
+VER = @VER@
+_SUBDIRS = @SUBDIRS@
+SUBDIRS = $(_SUBDIRS:=-$(VER))
+all:
+%:; $(MAKE) `printf '%s_$@_ ' $(SUBDIRS)`
+_words = $(subst _, ,$1)
+_dir = $(firstword $(call _words,$@))
+_targ = $(lastword $(call _words,$@))
+%_:; $(MAKE) -C $(_dir) $(_targ) $(EXTRA_TARGETS)
diff --git a/net-misc/suite3270/files/suite3270-3.5_p8-tinfo.patch b/net-misc/suite3270/files/suite3270-3.5_p8-tinfo.patch
new file mode 100644
index 000000000000..9235809f02ef
--- /dev/null
+++ b/net-misc/suite3270/files/suite3270-3.5_p8-tinfo.patch
@@ -0,0 +1,87 @@
+From a28f70d7fa11907898887706df35c3c3831d901a Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 10 May 2016 01:12:30 -0400
+Subject: [PATCH] c3270: autolink libtinfo when it exists
+
+The ncurses libs might split out core funcs into libtinfo. Make sure we
+detect & link this when available otherwise the linker might complain the
+symbols are missing:
+ld: screen.o: undefined reference to symbol 'meta'
+/usr/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
+collect2: error: ld returned 1 exit status
+---
+ x3270/c3270/configure.in | 1 +
+ x3270/c3270/configure | 45 +++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 46 insertions(+)
+
+diff --git a/x3270/c3270/configure.in b/x3270/c3270/configure.in
+index d9f19e6..8c6d852 100644
+--- a/x3270/c3270/configure.in
++++ b/x3270/c3270/configure.in
+@@ -129,6 +129,7 @@ dnl first, so that objects in them can be used by subsequent libraries.
+ AC_SEARCH_LIBS(forkpty, util)
+ AC_CHECK_FUNCS(forkpty)
+ AC_CHECK_LIB(ncursesw, newterm, , [AC_CHECK_LIB(ncurses, newterm, , [AC_CHECK_LIB(curses, newterm, , [AC_MSG_ERROR(Can't find libncurses or new-enough libcurses)])])])
++AC_CHECK_LIB(tinfo, meta)
+ if test "$with_readline" != no; then
+ AC_CHECK_LIB(readline, rl_initialize)
+ fi
+diff --git a/x3270/c3270/configure b/x3270/c3270/configure
+index bef2dff..9946e83 100755
+--- a/x3270/c3270/configure
++++ b/x3270/c3270/configure
+@@ -4020,6 +4020,51 @@ fi
+
+ fi
+
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for meta in -ltinfo" >&5
++$as_echo_n "checking for meta in -ltinfo... " >&6; }
++if ${ac_cv_lib_tinfo_meta+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-ltinfo $LIBS"
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++
++/* Override any GCC internal prototype to avoid an error.
++ Use char because int might match the return type of a GCC
++ builtin and then its argument prototype would still apply. */
++#ifdef __cplusplus
++extern "C"
++#endif
++char meta ();
++int
++main ()
++{
++return meta ();
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++ ac_cv_lib_tinfo_meta=yes
++else
++ ac_cv_lib_tinfo_meta=no
++fi
++rm -f core conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_meta" >&5
++$as_echo "$ac_cv_lib_tinfo_meta" >&6; }
++if test "x$ac_cv_lib_tinfo_meta" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBTINFO 1
++_ACEOF
++
++ LIBS="-ltinfo $LIBS"
++
++fi
++
+ if test "$with_readline" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
+ $as_echo_n "checking for rl_initialize in -lreadline... " >&6; }
+--
+2.7.4
+
diff --git a/net-misc/suite3270/metadata.xml b/net-misc/suite3270/metadata.xml
new file mode 100644
index 000000000000..bd77896aafc4
--- /dev/null
+++ b/net-misc/suite3270/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ <description>Maintainer</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>jieryn@gmail.com</email>
+ <name>Jesse Farinacci</name>
+ <description>Maintainer by proxy, please CC on all bugs.</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>s390@gentoo.org</email>
+ <name>Gentoo Linux s390 Development</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">x3270</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/suite3270/suite3270-3.3.15_p9.ebuild b/net-misc/suite3270/suite3270-3.3.15_p9.ebuild
new file mode 100644
index 000000000000..c9907aa45180
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.3.15_p9.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+MY_PV=${PV/_p/ga}
+MY_P=${PN}-${MY_PV}
+SUB_PV=${PV:0:3}
+
+S=${WORKDIR}
+
+# only the x3270 package installs fonts
+FONT_PN="x3270"
+FONT_S=${WORKDIR}/${FONT_PN}-${SUB_PV}
+
+inherit eutils font multiprocessing
+
+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 )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXt
+ )
+ ncurses? ( sys-libs/ncurses sys-libs/readline )
+ tcl? ( dev-lang/tcl:0 )"
+DEPEND="${RDEPEND}
+ X? (
+ x11-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ # 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..5}; do
+ install "\$@" && exit
+ echo "retrying ..."
+ done
+ EOF
+ chmod a+rx _install
+ sed -i \
+ -e "s:@INSTALL@:${S}/_install:" \
+ */Makefile.in
+
+ sed -i \
+ -e 's:CPPFunction:rl_completion_func_t:' \
+ c3270-*/c3270.c || die #503364
+}
+
+src_configure() {
+ local p myconf
+ # Run configures in parallel!
+ multijob_init
+ for p in $(suite3270_makelist) ; do
+ cd "${S}/${p}-${SUB_PV}"
+ if [[ ${p} == "x3270" ]] ; then
+ myconf=(
+ --without-xmkmf
+ $(use_with X x)
+ $(use_with X fontdir "${FONTDIR}")
+ )
+ else
+ myconf=()
+ fi
+ multijob_child_init econf \
+ --cache-file="${S}"/config.cache \
+ $(use_enable cjk dbcs) \
+ $(use_enable ssl) \
+ "${myconf[@]}"
+ done
+ sed \
+ -e "s:@SUBDIRS@:$(suite3270_makelist):" \
+ -e "s:@VER@:${SUB_PV}:" \
+ "${FILESDIR}"/Makefile.in > "${S}"/Makefile || die
+ multijob_finish
+}
+
+src_install() {
+ use X && dodir "${FONTDIR}"
+ EXTRA_TARGETS='install.man' default
+ local p
+ for p in $(suite3270_makelist) ; do
+ cd "${S}/${p}-${SUB_PV}"
+ docinto ${p}
+ local d=$(echo README*)
+ [[ -n ${d} ]] && dodoc ${d}
+ use doc && dohtml html/*
+ done
+ find "${ED}"/usr/share/man/ -type f -perm /1 -exec chmod a-x {} +
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }
diff --git a/net-misc/suite3270/suite3270-3.4_p10.ebuild b/net-misc/suite3270/suite3270-3.4_p10.ebuild
new file mode 100644
index 000000000000..d3e53d33da3d
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.4_p10.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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=${WORKDIR}/${FONT_PN}
+
+inherit eutils 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-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ # 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() {
+ echo "${INSTALL}"
+ 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 && dohtml html/*
+ done
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }
diff --git a/net-misc/suite3270/suite3270-3.4_p9.ebuild b/net-misc/suite3270/suite3270-3.4_p9.ebuild
new file mode 100644
index 000000000000..d3e53d33da3d
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.4_p9.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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=${WORKDIR}/${FONT_PN}
+
+inherit eutils 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-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ # 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() {
+ echo "${INSTALL}"
+ 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 && dohtml html/*
+ done
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }
diff --git a/net-misc/suite3270/suite3270-3.5_p10.ebuild b/net-misc/suite3270/suite3270-3.5_p10.ebuild
new file mode 100644
index 000000000000..f1c8a5a44734
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.5_p10.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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 eutils 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-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.5_p8-tinfo.patch
+
+ # 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() {
+ echo "${INSTALL}"
+ 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 && dohtml html/*
+ done
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }
diff --git a/net-misc/suite3270/suite3270-3.5_p8.ebuild b/net-misc/suite3270/suite3270-3.5_p8.ebuild
new file mode 100644
index 000000000000..896e6de13dd9
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.5_p8.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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 eutils 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-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.5_p8-tinfo.patch
+
+ # 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() {
+ echo "${INSTALL}"
+ 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 && dohtml html/*
+ done
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }
diff --git a/net-misc/suite3270/suite3270-3.5_p9.ebuild b/net-misc/suite3270/suite3270-3.5_p9.ebuild
new file mode 100644
index 000000000000..896e6de13dd9
--- /dev/null
+++ b/net-misc/suite3270/suite3270-3.5_p9.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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 eutils 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-misc/xbitmaps
+ x11-proto/xproto
+ app-text/rman
+ x11-apps/mkfontdir
+ x11-apps/bdftopcf
+ )"
+
+suite3270_makelist() {
+ echo pr3287 s3270 \
+ $(usex ncurses c3270 '') \
+ $(usex tcl tcl3270 '') \
+ $(usex X x3270 '')
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.5_p8-tinfo.patch
+
+ # 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() {
+ echo "${INSTALL}"
+ 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 && dohtml html/*
+ done
+
+ use X && font_src_install
+}
+
+pkg_postinst() { use X && font_pkg_postinst ; }
+pkg_postrm() { use X && font_pkg_postrm ; }