/[gentoo-x86]/net-misc/suite3270/suite3270-3.3.9_p12.ebuild
Gentoo

Contents of /net-misc/suite3270/suite3270-3.3.9_p12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Dec 15 19:28:38 2009 UTC (9 years, 9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Fix HOMEPAGE and SRC_URI wrt #297028.
(Portage version: 2.2_rc59/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.5 2009/09/22 13:11:35 maekke 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}.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_compile() {
49 local myconf
50
51 myconf="--without-pr3287"
52 myconf="${myconf} --cache-file=${S}/config.cache"
53 myconf="${myconf} $(use_enable cjk dbcs)"
54 myconf="${myconf} $(use_enable ssl)"
55 myconf="${myconf} $(use_with X x)"
56 myconf="${myconf} $(use_with X fontdir ${MY_FONTDIR})"
57
58 suite3270_makelist
59 for p in ${MY_PLIST} ; do
60 cd "${S}/${p}-${SUB_PV}"
61 econf ${myconf} || die "econf failed on ${p}"
62 emake || die "emake faild on ${p}"
63 done
64 }
65
66 src_install () {
67 suite3270_makelist
68 use X && dodir ${MY_FONTDIR}
69 for p in ${MY_PLIST} ; do
70 cd "${S}/${p}-${SUB_PV}"
71 emake DESTDIR="${D}" install install.man \
72 || die "emake failed on ${p}"
73 use doc && docinto ${p} && dohtml html/*
74 done
75
76 use X && rm -f "${D}/${MY_FONTDIR}/fonts.dir"
77 return 0
78 }
79
80 pkg_postinst() {
81 if use X ; then
82 einfo "Running mkfontdir on ${MY_FONTDIR}"
83 mkfontdir ${MY_FONTDIR}
84 fi
85 }

  ViewVC Help
Powered by ViewVC 1.1.20