/[gentoo-x86]/net-misc/suite3270/suite3270-3.3.5_p8.ebuild
Gentoo

Contents of /net-misc/suite3270/suite3270-3.3.5_p8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Oct 28 11:09:07 2010 UTC (9 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +4 -4 lines
quoting

(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20