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