blob: 986c31c739cf643f67f74e15a2551d25c5cb5ece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.12-r3.ebuild,v 1.10 2004/09/25 06:14:58 kumba Exp $
inherit eutils
MY_P="${PN}-${PV}.00"
DESCRIPTION="Enhanced version of the Berkeley C shell (csh)"
HOMEPAGE="http://www.tcsh.org/"
SRC_URI="ftp://ftp.astron.com/pub/tcsh/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 ~ppc sparc alpha arm hppa amd64 ia64 ppc64 mips"
IUSE="cjk perl"
RDEPEND="virtual/libc
>=sys-libs/ncurses-5.1
perl? ( dev-lang/perl )"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-tc.os.h-gentoo.diff
use cjk && epatch ${FILESDIR}/tcsh_enable_kanji.diff
}
src_compile() {
econf --prefix=/ || die "econf failed"
emake || die "compile problem"
}
src_install() {
make DESTDIR=${D} install install.man || die
if use perl ; then
perl tcsh.man2html || die
dohtml tcsh.html/*.html
fi
dosym /bin/tcsh /bin/csh
dodoc FAQ Fixes NewThings Ported README WishList Y2K
insinto /etc
newins ${FILESDIR}/csh.cshrc_new csh.cshrc
newins ${FILESDIR}/csh.login_new csh.login
insinto /etc/skel
newins ${FILESDIR}/tcsh.config .tcsh.config
insinto /etc/profile.d
doins ${FILESDIR}/tcsh-settings ${FILESDIR}/tcsh-aliases ${FILESDIR}/tcsh-bindkey ${FILESDIR}/tcsh-complete
}
|