/[gentoo-x86]/net-misc/suite3270/suite3270-3.3.7_p5.ebuild
Gentoo

Contents of /net-misc/suite3270/suite3270-3.3.7_p5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Oct 12 14:12:02 2008 UTC (11 years, 3 months ago) by nixnut
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable on ppc wrt bug 240972
(Portage version: 2.1.4.5)

1 robbat2 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nixnut 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/suite3270/suite3270-3.3.7_p5.ebuild,v 1.2 2008/10/10 08:14:28 robbat2 Exp $
4 robbat2 1.1
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="http://x3270.bgp.nu/download/${PN}-${PV/_/}.tgz"
12     HOMEPAGE="http://www.geocities.com/SiliconValley/Peaks/7814/"
13    
14     SLOT="0"
15     LICENSE="GPL-2"
16 nixnut 1.3 KEYWORDS="~amd64 ppc ~s390 ~sparc ~x86"
17 robbat2 1.1
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 robbat2 1.2 x11-misc/xbitmaps
31 robbat2 1.1 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_compile() {
47     local myconf
48    
49     myconf="--without-pr3287"
50     myconf="${myconf} --cache-file=${S}/config.cache"
51     myconf="${myconf} $(use_enable cjk dbcs)"
52     myconf="${myconf} $(use_enable ssl)"
53     myconf="${myconf} $(use_with X x)"
54     myconf="${myconf} $(use_with X fontdir ${MY_FONTDIR})"
55    
56     suite3270_makelist
57     for p in ${MY_PLIST} ; do
58     cd "${S}/${p}-${SUB_PV}"
59     econf ${myconf} || die "econf failed on ${p}"
60     emake || die "emake faild on ${p}"
61     done
62     }
63    
64     src_install () {
65     suite3270_makelist
66     use X && dodir ${MY_FONTDIR}
67     for p in ${MY_PLIST} ; do
68     cd "${S}/${p}-${SUB_PV}"
69     emake DESTDIR="${D}" install install.man \
70     || die "emake failed on ${p}"
71     use doc && docinto ${p} && dohtml html/*
72     done
73    
74     use X && rm -f "${D}/${MY_FONTDIR}/fonts.dir"
75     return 0
76     }
77    
78     pkg_postinst() {
79     if use X ; then
80     einfo "Running mkfontdir on ${MY_FONTDIR}"
81     mkfontdir ${MY_FONTDIR}
82     fi
83     }

  ViewVC Help
Powered by ViewVC 1.1.20