Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/suite3270/
Date: Tue, 09 Jan 2018 23:03:16
Message-Id: 1515538984.6d3568a5c225166e9005527fad5fffa0ad77e7d1.vapier@gentoo
1 commit: 6d3568a5c225166e9005527fad5fffa0ad77e7d1
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 9 23:00:31 2018 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 9 23:03:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3568a5
7
8 net-misc/suite3270: version bump to 3.5_p12
9
10 net-misc/suite3270/Manifest | 1 +
11 net-misc/suite3270/suite3270-3.5_p12.ebuild | 103 ++++++++++++++++++++++++++++
12 2 files changed, 104 insertions(+)
13
14 diff --git a/net-misc/suite3270/Manifest b/net-misc/suite3270/Manifest
15 index 9a4f08d803b..1ef79d9979e 100644
16 --- a/net-misc/suite3270/Manifest
17 +++ b/net-misc/suite3270/Manifest
18 @@ -1,2 +1,3 @@
19 DIST suite3270-3.4ga10-src.tgz 3398730 BLAKE2B 4adc02b416d5fbf2facbf4e42c58a2bd3ed551ce46494ece039ef129663957632316882d5a5b28e272fa47010105a3682618b8ac2d355e745c576af74d0bb310 SHA512 d9ed4aa41c45a2e961d5c2d0c00c6b81526da64b9c1765b0c5e39cb647157026a787db2054b2feb55c57e5a458a31062141471447b1177fd46cbbeb7d71e3f28
20 DIST suite3270-3.5ga10-src.tgz 3412329 BLAKE2B c9ed308cf970da150da985d76ec377c83a03041eddfcbad9baa7211776a7b68292109cccb2ec250952edb77eeca79143137eb8a94da8b774e952c3e5790c6231 SHA512 0cce1212ca7589595cd2f775d18086f231a9e6d621716be5a41123a379358d9ac08c9668de2bd6a2e401ae54d12a4905c3c260cb7ba90482bbce6790d8e3efb8
21 +DIST suite3270-3.5ga12-src.tgz 3412286 BLAKE2B 5602f8bbe7b916a977c97848ff9a413a873f61e1c0c62b8c118dc43703adcd4a668e3cc301f9e37a139eebeeae44aca3cdedd0c10de15870ad8ead00d783e1ef SHA512 c7cb25b5c82b0d7ccac8c3ed17317a5a5ebce24fb32dcdfcaf7158157578617a7bccc265fdb67fce0557caa9c75d1afc2d8152a06b98af43ad9a9e29b5f2a267
22
23 diff --git a/net-misc/suite3270/suite3270-3.5_p12.ebuild b/net-misc/suite3270/suite3270-3.5_p12.ebuild
24 new file mode 100644
25 index 00000000000..b3723ee2447
26 --- /dev/null
27 +++ b/net-misc/suite3270/suite3270-3.5_p12.ebuild
28 @@ -0,0 +1,103 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="5"
33 +
34 +MY_PV=${PV/_p/ga}
35 +MY_P=${PN}-${MY_PV}
36 +SUB_PV=${PV:0:3}
37 +
38 +S=${WORKDIR}/${PN}-${SUB_PV}
39 +
40 +# only the x3270 package installs fonts
41 +FONT_PN="x3270"
42 +FONT_S="${S}/${FONT_PN}"
43 +
44 +inherit eutils font
45 +
46 +DESCRIPTION="Complete 3270 access package"
47 +HOMEPAGE="http://x3270.bgp.nu/"
48 +SRC_URI="mirror://sourceforge/x3270/${MY_P}-src.tgz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86"
53 +IUSE="cjk doc ncurses ssl tcl X"
54 +
55 +RDEPEND="ssl? ( dev-libs/openssl:0= )
56 + X? (
57 + x11-libs/libX11
58 + x11-libs/libXaw
59 + x11-libs/libXmu
60 + x11-libs/libXt
61 + )
62 + ncurses? (
63 + sys-libs/ncurses:=
64 + sys-libs/readline:0=
65 + )
66 + tcl? ( dev-lang/tcl:0 )"
67 +DEPEND="${RDEPEND}
68 + X? (
69 + x11-misc/xbitmaps
70 + x11-proto/xproto
71 + app-text/rman
72 + x11-apps/mkfontdir
73 + x11-apps/bdftopcf
74 + )"
75 +
76 +suite3270_makelist() {
77 + echo pr3287 s3270 \
78 + $(usex ncurses c3270 '') \
79 + $(usex tcl tcl3270 '') \
80 + $(usex X x3270 '')
81 +}
82 +
83 +src_prepare() {
84 + epatch "${FILESDIR}"/${PN}-3.5_p8-tinfo.patch
85 +
86 + # Some subdirs (like c3270/x3270/s3270) install the same set of data files
87 + # (they have the same contents). Wrap that in a retry to avoid errors.
88 + cat <<-EOF > _install
89 + #!/bin/sh
90 + for n in 1 2 3 4 5; do
91 + install "\$@" && exit
92 + echo "retrying ..."
93 + done
94 + exit 1
95 + EOF
96 + chmod a+rx _install
97 + # Can't use the $INSTALL var as top level configure also uses it.
98 + # https://sourceforge.net/p/x3270/bugs/15/
99 + export ac_cv_path_install="${S}/_install"
100 +}
101 +
102 +src_configure() {
103 + echo "${INSTALL}"
104 + econf \
105 + --cache-file="${S}"/config.cache \
106 + --enable-s3270 \
107 + --enable-pr3287 \
108 + $(use_enable ncurses c3270) \
109 + $(use_enable tcl tcl3270) \
110 + $(use_enable X x3270) \
111 + $(use_with X x) \
112 + $(use_with X fontdir "${FONTDIR}")
113 +}
114 +
115 +src_install() {
116 + use X && dodir "${FONTDIR}"
117 + emake DESTDIR="${D}" install{,.man}
118 +
119 + local p
120 + for p in $(suite3270_makelist) ; do
121 + cd "${S}/${p}"
122 + docinto ${p}
123 + dodoc README*
124 + use doc && dohtml html/*
125 + done
126 +
127 + use X && font_src_install
128 +}
129 +
130 +pkg_postinst() { use X && font_pkg_postinst ; }
131 +pkg_postrm() { use X && font_pkg_postrm ; }