| 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/tn5250/tn5250-0.17.4.ebuild,v 1.3 2009/05/06 10:20:25 fauli Exp $
|
| 4 |
|
| 5 |
inherit eutils python
|
| 6 |
|
| 7 |
DESCRIPTION="Telnet client for the IBM AS/400 that emulates 5250 terminals and printers."
|
| 8 |
HOMEPAGE="http://tn5250.sourceforge.net/"
|
| 9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="LGPL-2.1"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ppc ~sparc x86"
|
| 14 |
IUSE="X ssl"
|
| 15 |
|
| 16 |
RDEPEND="sys-libs/ncurses
|
| 17 |
ssl? ( dev-libs/openssl )"
|
| 18 |
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
X? ( x11-libs/libXt )"
|
| 21 |
|
| 22 |
src_unpack() {
|
| 23 |
unpack ${A}
|
| 24 |
|
| 25 |
# Next, the Makefile for the terminfo settings tries to remove
|
| 26 |
# some files it doesn't have access to. We can just remove those
|
| 27 |
# lines.
|
| 28 |
cd "${S}/linux"
|
| 29 |
sed -i \
|
| 30 |
-e "/rm -f \/usr\/.*\/terminfo.*5250/d" Makefile.in \
|
| 31 |
|| die "sed Makefile.in failed"
|
| 32 |
cd "${S}"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_compile() {
|
| 36 |
econf \
|
| 37 |
$(use_with X x) \
|
| 38 |
$(use_with ssl) || die
|
| 39 |
emake || die "emake failed"
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
# The TERMINFO variable needs to be defined for the install
|
| 44 |
# to work, because the install calls "tic." man tic for
|
| 45 |
# details.
|
| 46 |
dodir /usr/share/terminfo
|
| 47 |
make DESTDIR="${D}" \
|
| 48 |
TERMINFO="${D}/usr/share/terminfo" install \
|
| 49 |
|| die "make install failed"
|
| 50 |
|
| 51 |
dodoc AUTHORS NEWS README README.ssl TODO ChangeLog
|
| 52 |
}
|