/[gentoo-x86]/net-misc/suite3270/suite3270-3.3.10_p3.ebuild
Gentoo

Contents of /net-misc/suite3270/suite3270-3.3.10_p3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 26 01:28:48 2009 UTC (9 years, 11 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Bug #286073, version bump.
(Portage version: 2.2_rc58/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.9_p12.ebuild,v 1.6 2009/12/15 19:28:38 ssuominen Exp $
4
5 inherit eutils
6
7 IUSE="cjk doc ncurses ssl tcl X"
8
9 MY_PV="${PV/_p/ga}"
10 MY_P="${PN}-${MY_PV}"
11
12 S="${WORKDIR}"
13 DESCRIPTION="Complete 3270 access package"
14 SRC_URI="mirror://sourceforge/x3270/${MY_P}-src.tgz"
15 HOMEPAGE="http://x3270.bgp.nu/"
16
17 SLOT="0"
18 LICENSE="GPL-2"
19 KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86"
20
21 RDEPEND="X? ( x11-libs/libX11
22 x11-libs/libXaw
23 x11-libs/libXmu
24 x11-libs/libXt )
25 ncurses? ( sys-libs/ncurses
26 sys-libs/readline )
27 ssl? ( dev-libs/openssl )
28 tcl? ( dev-lang/tcl )"
29
30 DEPEND="${RDEPEND}
31 X? ( x11-misc/imake
32 x11-misc/xbitmaps
33 x11-proto/xproto
34 app-text/rman
35 x11-apps/mkfontdir
36 x11-apps/bdftopcf )"
37
38 SUB_PV="3.3"
39 MY_FONTDIR="/usr/share/fonts/x3270"
40
41 suite3270_makelist() {
42 MY_PLIST="pr3287 s3270"
43 use ncurses && MY_PLIST="${MY_PLIST} c3270"
44 use tcl && MY_PLIST="${MY_PLIST} tcl3270"
45 use X && MY_PLIST="${MY_PLIST} x3270"
46 }
47
48 src_unpack() {
49 unpack ${A}
50 cd "${S}"
51 # Patches were sent upstream to maintainer
52 # as of 23 September 2009, by Jesse Farinacci <jieryn@gmail.com>
53 use X && ! use cjk && epatch "${FILESDIR}/$P-fix-x3270-dbcs.patch"
54 return 0
55 }
56
57 src_compile() {
58 local myconf
59
60 myconf="--without-pr3287"
61 myconf="${myconf} --cache-file=${S}/config.cache"
62 myconf="${myconf} $(use_enable cjk dbcs)"
63 myconf="${myconf} $(use_enable ssl)"
64 myconf="${myconf} $(use_with X x)"
65 myconf="${myconf} $(use_with X fontdir ${MY_FONTDIR})"
66
67 suite3270_makelist
68 for p in ${MY_PLIST} ; do
69 cd "${S}/${p}-${SUB_PV}"
70 econf ${myconf} || die "econf failed on ${p}"
71 emake || die "emake faild on ${p}"
72 done
73 }
74
75 src_install () {
76 suite3270_makelist
77 use X && dodir ${MY_FONTDIR}
78 for p in ${MY_PLIST} ; do
79 cd "${S}/${p}-${SUB_PV}"
80 emake DESTDIR="${D}" install install.man \
81 || die "emake failed on ${p}"
82 use doc && docinto ${p} && dohtml html/*
83 done
84
85 use X && rm -f "${D}/${MY_FONTDIR}/fonts.dir"
86 return 0
87 }
88
89 pkg_postinst() {
90 if use X ; then
91 einfo "Running mkfontdir on ${MY_FONTDIR}"
92 mkfontdir ${MY_FONTDIR}
93 fi
94 }

  ViewVC Help
Powered by ViewVC 1.1.20