/[gentoo-alt]/trunk/prefix/app-shells/tcsh/tcsh-6.14-r2.ebuild
Gentoo

Contents of /trunk/prefix/app-shells/tcsh/tcsh-6.14-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1166 - (show annotations) (download)
Sat Mar 25 22:08:50 2006 UTC (13 years, 2 months ago) by kito
File size: 2651 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.14-r2.ebuild,v 1.1 2005/11/20 17:06:55 grobian Exp $
4
5 EAPI="prefix"
6
7 inherit eutils
8
9 MY_P="${P}.00"
10 DESCRIPTION="Enhanced version of the Berkeley C shell (csh)"
11 HOMEPAGE="http://www.tcsh.org/"
12 SRC_URI="ftp://ftp.astron.com/pub/tcsh/${MY_P}.tar.gz
13 mirror://gentoo/${P}-conffiles.tar.bz2"
14 # note: starting from this version the various files scattered around
15 # the place in ${FILESDIR} are now stored in a versioned tarball
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
20 IUSE="perl"
21
22 DEPEND="virtual/libc
23 >=sys-libs/ncurses-5.1
24 perl? ( dev-lang/perl )"
25
26 S="${WORKDIR}/${MY_P}"
27
28
29 src_unpack() {
30 unpack ${A}
31 epatch "${FILESDIR}/${P}"-r2.patch
32 # the following patch makes tcsh prefix aware for it's config files
33 epatch "${FILESDIR}/${P}"-prefix.patch
34 sed -i -e "s:\@PREFIX\@:${EPREFIX}:g" gentoo/* \
35 || die "sed failed"
36 }
37
38 src_compile() {
39 econf \
40 $(with_bindir) \
41 --libdir=${EPREFIX}/usr/$(get_libdir) \
42 || die "econf failed"
43 emake || die "compile problem"
44 }
45
46 src_install() {
47 einstall \
48 bindir=${D}/bin \
49 libdir=${D}/usr/$(get_libdir) \
50 install.man \
51 || die "make install failed"
52
53 if use perl ; then
54 perl tcsh.man2html || die
55 dohtml tcsh.html/*.html
56 fi
57
58 insinto /etc
59 doins \
60 "${WORKDIR}"/gentoo/csh.cshrc \
61 "${WORKDIR}"/gentoo/csh.login
62
63 insinto /etc/skel
64
65 insinto /etc/profile.d
66 doins \
67 "${WORKDIR}"/gentoo/tcsh-bindkey.csh \
68 "${WORKDIR}"/gentoo/tcsh-settings.csh
69
70 dodoc FAQ Fixes NewThings Ported README WishList Y2K
71
72 docinto examples
73 dodoc \
74 "${WORKDIR}"/gentoo/tcsh-aliases \
75 "${WORKDIR}"/gentoo/tcsh-complete \
76 "${WORKDIR}"/gentoo/tcsh-gentoo_legacy \
77 "${WORKDIR}"/gentoo/tcsh.config
78 }
79
80 pkg_postinst() {
81 # add csh -> tcsh symlink only if csh is not yet there
82 [ ! -e /bin/csh ] && dosym /bin/tcsh /bin/csh
83
84 while read line; do einfo "${line}"; done <<EOF
85 The default behaviour of tcsh has significantly changed starting from
86 version 6.14-r1. In contrast to previous ebuilds, the amount of
87 customisation to the default shell's behaviour has been reduced to a
88 bare minimum (a customised prompt).
89 If you rely on the customisations provided by previous ebuilds, you will
90 have to copy over the relevant (now commented out) parts to your own
91 ~/.tcshrc. Please check all tcsh-* files in
92 /usr/share/tcsh-6.14-r2/example and include their behaviour in your own
93 configuration files.
94 The tcsh-complete file is not any longer sourced by the default system
95 scripts.
96 EOF
97 }

  ViewVC Help
Powered by ViewVC 1.1.20