commit:     5951c87591a1bec149e28c981176a5bf05850ac2
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 20:48:13 2017 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 20:48:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5951c875

net-misc/suite3270: version bump to 3.5_p10

 net-misc/suite3270/Manifest                 |   1 +
 net-misc/suite3270/suite3270-3.5_p10.ebuild | 103 ++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/net-misc/suite3270/Manifest b/net-misc/suite3270/Manifest
index 84f3005..08ee8fa 100644
--- a/net-misc/suite3270/Manifest
+++ b/net-misc/suite3270/Manifest
@@ -1,5 +1,6 @@
 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

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 00000000..f1c8a5a
--- /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 ; }

Reply via email to