/[gentoo-x86]/net-misc/suite3270/suite3270-3.3.13_p7.ebuild
Gentoo

Contents of /net-misc/suite3270/suite3270-3.3.13_p7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Mar 25 16:53:23 2015 UTC (4 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Fix tcl/tk slotting; bump to EAPI=5

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/suite3270/suite3270-3.3.13_p7.ebuild,v 1.1 2014/01/16 03:04:39 vapier Exp $
4
5 EAPI="4"
6
7 MY_PV=${PV/_p/ga}
8 MY_P=${PN}-${MY_PV}
9 SUB_PV=${PV:0:3}
10
11 S=${WORKDIR}
12
13 # only the x3270 package installs fonts
14 FONT_PN="x3270"
15 FONT_S=${WORKDIR}/${FONT_PN}-${SUB_PV}
16
17 inherit eutils font multiprocessing
18
19 DESCRIPTION="Complete 3270 access package"
20 HOMEPAGE="http://x3270.bgp.nu/"
21 SRC_URI="mirror://sourceforge/x3270/${MY_P}-src.tgz"
22
23 LICENSE="GPL-2"
24 SLOT="0"
25 KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86"
26 IUSE="cjk doc ncurses ssl tcl X"
27
28 RDEPEND="ssl? ( dev-libs/openssl )
29 X? (
30 x11-libs/libX11
31 x11-libs/libXaw
32 x11-libs/libXmu
33 x11-libs/libXt
34 )
35 ncurses? ( sys-libs/ncurses sys-libs/readline )
36 tcl? ( dev-lang/tcl:0 )"
37 DEPEND="${RDEPEND}
38 X? (
39 x11-misc/xbitmaps
40 x11-proto/xproto
41 app-text/rman
42 x11-apps/mkfontdir
43 x11-apps/bdftopcf
44 )"
45
46 suite3270_makelist() {
47 echo pr3287 s3270 \
48 $(usex ncurses c3270 '') \
49 $(usex tcl tcl3270 '') \
50 $(usex X x3270 '')
51 }
52
53 src_prepare() {
54 # Some subdirs (like c3270/x3270/s3270) install the same set of data files
55 # (they have the same contents). Wrap that in a retry to avoid errors.
56 cat <<-EOF > _install
57 #!/bin/sh
58 for n in {1..5}; do
59 install "\$@" && exit
60 echo "retrying ..."
61 done
62 EOF
63 chmod a+rx _install
64 sed -i \
65 -e "s:@INSTALL@:${S}/_install:" \
66 */Makefile.in
67 }
68
69 src_configure() {
70 local p myconf
71 # Run configures in parallel!
72 multijob_init
73 for p in $(suite3270_makelist) ; do
74 cd "${S}/${p}-${SUB_PV}"
75 if [[ ${p} == "x3270" ]] ; then
76 myconf=(
77 --without-xmkmf
78 $(use_with X x)
79 $(use_with X fontdir "${FONTDIR}")
80 )
81 else
82 myconf=()
83 fi
84 multijob_child_init econf \
85 --cache-file="${S}"/config.cache \
86 $(use_enable cjk dbcs) \
87 $(use_enable ssl) \
88 "${myconf[@]}"
89 done
90 sed \
91 -e "s:@SUBDIRS@:$(suite3270_makelist):" \
92 -e "s:@VER@:${SUB_PV}:" \
93 "${FILESDIR}"/Makefile.in > "${S}"/Makefile || die
94 multijob_finish
95 }
96
97 src_install() {
98 use X && dodir "${FONTDIR}"
99 EXTRA_TARGETS='install.man' default
100 local p
101 for p in $(suite3270_makelist) ; do
102 cd "${S}/${p}-${SUB_PV}"
103 docinto ${p}
104 local d=$(echo README*)
105 [[ -n ${d} ]] && dodoc ${d}
106 use doc && dohtml html/*
107 done
108 find "${ED}"/usr/share/man/ -type f -exec chmod a-x {} +
109
110 use X && font_src_install
111 }
112
113 pkg_postinst() { use X && font_pkg_postinst ; }
114 pkg_postrm() { use X && font_pkg_postrm ; }

  ViewVC Help
Powered by ViewVC 1.1.20