ChangeLog

# ChangeLog for app-shells/tcsh
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v 1.83 2007/09/09 14:54:49 josejx Exp $

09 Sep 2007; Joseph Jezak tcsh-6.15-r2.ebuild:
Marked ppc64 stable for bug #190949.

02 Sep 2007; Joshua Kinard tcsh-6.15-r2.ebuild:
Stable on mips, per #190949.

01 Sep 2007; Raúl Porcel tcsh-6.15-r2.ebuild:
alpha/ia64/x86 stable wrt #190949

01 Sep 2007; Jeroen Roovers tcsh-6.15-r2.ebuild:
Stable for HPPA (bug #190949).

01 Sep 2007; nixnut tcsh-6.15-r2.ebuild:
Stable on ppc wrt bug 190949

01 Sep 2007; Jose Luis Rivero tcsh-6.15-r2.ebuild:
Stable on sparc wrt bug #190949

01 Sep 2007; Christoph Mende tcsh-6.15-r2.ebuild:
Stable on amd64 wrt bug #190949

08 Aug 2007; Fabian Groffen
+files/tcsh-6.14-use-ncurses.patch, tcsh-6.15-r2.ebuild:
Bump patchver to add back in ls --color=auto alias, as it was restored for
bash too. Backported patch from prefix to only check for ncurses, as our
dependencies only say so (otherwise libtermcap is taken if available)

*tcsh-6.15-r2 (24 Jul 2007)

24 Jul 2007; Fabian Groffen -tcsh-6.14-r33.ebuild,
-tcsh-6.15-r1.ebuild, +tcsh-6.15-r2.ebuild:
Config file bump to hopefully fix the tail of bug #167948.

*tcsh-6.15-r1 (03 Jul 2007)

03 Jul 2007; Fabian Groffen
+files/tcsh-6.15.00-normalize-command-fix.patch, -tcsh-6.15.ebuild,
+tcsh-6.15-r1.ebuild:
Applied patch to fix normalize-command bug, as upstream applied this fix as
well. Bug #183754, thanks to Yuri Karaban

30 Jun 2007; Joe Peterson tcsh-6.15.ebuild:
Add ~x86-fbsd keyword

*tcsh-6.15 (23 Jun 2007)

23 Jun 2007; Fabian Groffen +tcsh-6.15.ebuild:
Version bump to 6.15.00, fixes bug #182466

10 Apr 2007; Fabian Groffen tcsh-6.14-r3.ebuild,
tcsh-6.14-r5.ebuild, tcsh-6.14-r33.ebuild:
Make installing html docs not require some sort of input via STDIN.
Thanks to Mathieu Seigneurin in bug #173773.

*tcsh-6.14-r33 (22 Mar 2007)

22 Mar 2007; Fabian Groffen -tcsh-6.14-r32.ebuild,
+tcsh-6.14-r33.ebuild:
New revision that fixes a cosmetic issue of dircolors not being used, so no
LS_COLORS env variable set.

*tcsh-6.14-r32 (15 Mar 2007)

15 Mar 2007; Fabian Groffen -tcsh-6.14-r31.ebuild,
+tcsh-6.14-r32.ebuild:
Fix TERM not set message for shells like scp

*tcsh-6.14-r31 (14 Mar 2007)

14 Mar 2007; Fabian Groffen -tcsh-6.14-r30.ebuild,
+tcsh-6.14-r31.ebuild:
Do the prompt setting in csh.cshrc such that non-login shells, also get a
nice prompt

*tcsh-6.14-r30 (01 Mar 2007)

01 Mar 2007; Fabian Groffen +tcsh-6.14-r30.ebuild:
New revision which uses an entirely revamped config files system. Should fix
issues for KDE users. Please test.

24 Jan 2007; Marius Mauch tcsh-6.14-r3.ebuild:
Replacing einfo with elog

*tcsh-6.14-r5 (05 Dec 2006)

05 Dec 2006; Fabian Groffen files/tcsh-6.14-r4.patch,
-tcsh-6.14-r4.ebuild, +tcsh-6.14-r5.ebuild:
Fix issue that was mentioned post-fix in bug #156422: don't use tset as it
is an interactive tool, which is evil.

*tcsh-6.14-r4 (02 Dec 2006)

02 Dec 2006; Fabian Groffen
+files/tcsh-6.14-r4.patch, tcsh-6.14-r3.ebuild, +tcsh-6.14-r4.ebuild:
New revision to fix bug #156422 and the additional comments on bug #91725.
Thanks to Matus UHLAR - fantomas.

19 Oct 2006; Fabian Groffen
+files/tcsh-6.14-makefile.patch, tcsh-6.14-r3.ebuild:
Added patch for bug #151951, thanks dev-zero for pointing out

11 Apr 2006; Fabian Groffen tcsh-6.14-r3.ebuild:
Adding USE-flag catalogs for NLS catalogs support. Thanks to Kouya Sakamoto
(bug #128439)

19 Feb 2006; Joshua Kinard tcsh-6.14-r3.ebuild:
Marked stable on mips.

07 Feb 2006; Aron Griffis tcsh-6.14-r3.ebuild:
Mark 6.14-r3 stable on alpha

06 Feb 2006; Jeroen Roovers tcsh-6.14-r3.ebuild:
Stable on hppa (bug #121343).

06 Feb 2006; Markus Rothe tcsh-6.14-r3.ebuild:
Stable on ppc64: bug #121343

03 Feb 2006; tcsh-6.14-r3.ebuild:
Added ppc keyword. bug 121343

03 Feb 2006; Gustavo Zacarias tcsh-6.14-r3.ebuild:
Stable on sparc wrt #121343

03 Feb 2006; Joshua Jackson tcsh-6.14-r3.ebuild:
Stable on x86; bug #121343

02 Feb 2006; Patrick McLean tcsh-6.14-r3.ebuild:
Stable on amd64 (bug #121343).

*tcsh-6.14-r3 (29 Jan 2006)

29 Jan 2006; Fabian Groffen
+files/tcsh-6.14.00-debian-dircolors.patch, +tcsh-6.14-r3.ebuild:
Making fixes for bug #119703: providing a csh -> tcsh symlink, and bug #120792
to stop tcsh complaining on newest coreutils' LS_COLORS var.

02 Jan 2006; Michael Hanselmann tcsh-6.14-r2.ebuild:
Stable on ppc.

31 Dec 2005; Simon Stelling tcsh-6.14-r2.ebuild:
stable on amd64

31 Dec 2005; Fernando J. Pereda tcsh-6.14-r2.ebuild:
Stable on alpha wrt bug #117118

30 Dec 2005; Joshua Kinard tcsh-6.14-r2.ebuild:
Marked stable on mips.

30 Dec 2005; Yuta SATOH tcsh-6.14-r2.ebuild:
Stable on ppc64, bug #117118

30 Dec 2005; Gustavo Zacarias tcsh-6.14-r2.ebuild:
Stable on sparc wrt #117118

29 Dec 2005; Jeroen Roovers tcsh-6.14-r2.ebuild:
Stable on hppa (bug #117118).

29 Dec 2005; Krzysiek Pawlik tcsh-6.14-r2.ebuild:
Stable on x86, bug #117118.

*tcsh-6.14-r2 (20 Nov 2005)

20 Nov 2005; Fabian Groffen
+files/tcsh-6.14-r2.patch, +tcsh-6.14-r2.ebuild:
Fix for bug #104763: now scripts from /etc/profile.d are not being sourced
for non-interactive shells. Moved unused legacy scripts to example dir
instead of installing them and polluting the filesystem.

02 Nov 2005; Fabian Groffen tcsh-6.14-r1.ebuild:
Only add csh symlink if csh is not yet there for bug #26196
Cleanup/correctness action suggested by Mr_Bones_:
- check for/add symlink to csh in pkg_postinst
- make RDEPEND DEPEND as the dependencies are required during compilation
- feed doins a set of files instead of one at a time

*tcsh-6.14-r1 (30 Sep 2005)

30 Sep 2005; Fabian Groffen metadata.xml,
+tcsh-6.14-r1.ebuild:
Adding new revision of 6.14 which incorporates a whole new configuration
system, that resolves (hopefully) many bugs. The new config is much more
closer to the bare defaults and does not activate all kind of customisations
by default.
Made myself maintainer and updated metadata.xml.
Resolves bugs #17660 #17852 #18340 #18852 #26122 #26159 #27877 #47059 #49851
#89295 #93968 #105246

14 Jun 2005; Fernando J. Pereda tcsh-6.13-r1.ebuild:
Stable on alpha

18 May 2005; Markus Rothe tcsh-6.13-r1.ebuild:
Stable on ppc64

10 May 2005; Rene Nussbaumer tcsh-6.13-r1.ebuild:
stable on hppa

07 May 2005; Aron Griffis tcsh-6.13-r1.ebuild:
stable on ia64

01 May 2005; Joshua Kinard tcsh-6.13-r1.ebuild:
Marked stable on mips.

01 May 2005; Tom Martin tcsh-6.13-r1.ebuild:
Stable on amd64.

21 Apr 2005; Gustavo Zacarias tcsh-6.13-r1.ebuild:
Stable on sparc

21 Apr 2005; Michael Hanselmann tcsh-6.13-r1.ebuild:
Stable on ppc.

*tcsh-6.14 (20 Apr 2005)

20 Apr 2005; Daniel Black tcsh-6.13-r1.ebuild,
+tcsh-6.14.ebuild:
6.13-r1 x86 stable. added version 6.14 that fixes Russian locale stuff as
per bug #83732. Thanks to Yuri Karaban

*tcsh-6.13-r1 (02 Mar 2005)

02 Mar 2005; Daniel Black
+files/tcsh-6.11.00-termcap.patch, +files/tcsh-6.12.00-setpgrp.patch,
+files/tcsh-6.13.00-arch.patch, +files/tcsh-6.13.00-charset.patch,
+files/tcsh-6.13.00-closem.patch, +files/tcsh-6.13.00-codeset.patch,
+files/tcsh-6.13.00-cstr.patch, +files/tcsh-6.13.00-dspmbyte.patch,
+files/tcsh-6.13.00-fcntl.patch, +files/tcsh-6.13.00-glob.patch,
+files/tcsh-6.13.00-iconv.patch, +files/tcsh-6.13.00-utmp.patch,
+files/tcsh-6.13.00-winchg.patch, +tcsh-6.13-r1.ebuild:
russian characters problems as per bug #83732. Thanks to Yuri Karaban
for the bug and finding and testing all the patches

02 Jan 2005; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

22 Nov 2004; Sven Wegener :
Fixed digests.

*tcsh-6.13 (22 Nov 2004)

22 Nov 2004; Daniel Black +metadata.xml,
-files/csh.cshrc, -files/csh.login, -files/tcsh-6.10-tc.os.h-gentoo.diff,
-files/tcsh-6.11-tc.os.h-gentoo.diff, -files/tcsh-complete,
-tcsh-6.11.ebuild, -tcsh-6.12-r2.ebuild, tcsh-6.12-r3.ebuild,
+tcsh-6.13.ebuild:
6.12 no longer on SRC_URI. version bumped to 6.13. Verfied patches are
included. Bug #71968 by Michael Labhard refers. Old
file cleanout too.

25 Sep 2004; Joshua Kinard tcsh-6.12-r3.ebuild:
Marked stable on mips.

22 Aug 2004; Joshua Kinard tcsh-6.12-r3.ebuild:
Added ~mips to KEYWORDS.

02 Jun 2004; Aron Griffis tcsh-6.12-r2.ebuild:
Fix use invocation

12 May 2004; Bryan Østergaard tcsh-6.12-r3.ebuild:
Stable on alpha.

10 May 2004; Tom Gall tcsh-6.12-r3:
marking stable for ppc64 (bug #50281)

26 Apr 2004; Aron Griffis tcsh-6.12-r2.ebuild,
tcsh-6.12-r3.ebuild:
Add die following econf for bug 48950

09 Jan 2004; Aron Griffis tcsh-6.12-r2.ebuild:
stable on alpha

*tcsh-6.12-r3 (22 Dec 2003)

22 Dec 2003; Guy Martin tcsh-6.12-r3.ebuild,
files/tcsh-complete :
Revision bump to fix bug #33155. Marked stable on hppa.

13 Dec 2003; Brad House tcsh-6.12-r2.ebuild:
mark stable on amd64

26 Oct 2003; Brad House tcsh-6.12-r2.ebuild:
add ~amd64 flag

17 Oct 2003; Nick Hadaway files/tcsh-complete:
Addressing bug #21853. Changing mount autocomplete to BSD4.3
compatible commands instead of SVR4.

22 May 2003; Tavis Ormandy tcsh-6.12-r2.ebuild:
Marking ~alpha, fixes #21125

*tcsh-6.12-r2 (7 Mar 2003)

7 Mar 2003; Alain Penders : Added minor patch to enable
kanji support when cjk flag is set.

*tcsh-6.12-r1 (25 Jan 2003)

02 Feb 2003; Jack Morgan tcsh-6.12-r1.ebuild :
Changed ~sparc to sparc

25 Jan 2003; Alain Penders : Totally new default tcsh
scripts.

*tcsh-6.12 (21 Oct 2002)

21 Oct 2002; Maik Schreiber : New version, closes bug
#6406.

*tcsh-6.11 (09 Jul 2002)

19 Sept 2002; Mike Frysinger : Added more hosts to
SRC_URI and added HOMEPAGE variable

15 Jul 2002; Owen Stampflee : Changed KEYWORDS="*" to
KEYWORDS="x86 ppc"

09 Jul 2002; Seemant Kulleen tcsh-6.11.ebuild,
files/digest-tcsh-6.11 :

Version bump. Thanks to: gentoo@subgroove.net in bug #4740

*tcsh-6.10-r3 (21 Mar 2002)

19 Sept 2002; Mike Frysinger : Added more hosts to
SRC_URI and added HOMEPAGE variable

21 Mar 2002; Seemant Kulleen tcsh-6.10-r3.ebuild:
HTML documentation will not get gzipped any longer. Thanks to
stefan@mdy.univie.ac.at for pointing this out.

*tcsh-6.10-r2 (01 Feb 2002)

01 Feb 2002; G.Bevin ChangeLog :

Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

AUX tcsh-6.14-makefile.patch 482 RMD160 ef0aa8ec9a43218532588bc1b755e2c2f69c9ea8 SHA1 b26685966259b02d5a1f0f8994c0741e50841a31 SHA256 7036e1d68ce181405800d78b33f9884da6e36f590f5287190911ddec65a540ce
AUX tcsh-6.14-r2.patch 2057 RMD160 8fba8a743944e04e8f03525ee0f8763576d251ec SHA1 361e3187c00f401183ea20247fb99fd1a33b3047 SHA256 cdc6f499a9eef1876604a0072562aad4b594e12c6073a98ea7a2f33d88aa21c5
AUX tcsh-6.14-r4.patch 1030 RMD160 58af5c8fafcaa7ef8bb96bb2687422b93a4b61ea SHA1 c3db204db1d075ff83134428b0cfd62f99792b56 SHA256 909df93052f8af0a3d2d83125894db774509d3c22cc495fe266484529eb1f6d9
AUX tcsh-6.14-use-ncurses.patch 365 RMD160 aa7be416f14a16481130666a8b477a756282baf7 SHA1 3644fdf121c7d23cbf16fa7602d7abf789fa6145 SHA256 8c335f04db220b01235a7a2c8158231d3295ec6572c1bcecfc78c61743facd58
AUX tcsh-6.14.00-debian-dircolors.patch 444 RMD160 8ab4e49fbfd979aed6cfdd5bd45c5e37fa810394 SHA1 a7ccadc40cb4d6e9dcfc9672c5bf7f547ed0bd83 SHA256 a9568a2a474ef662a665c87c52983fea7999e5cf2bc4920d45baa2558c9dc32a
AUX tcsh-6.15.00-normalize-command-fix.patch 399 RMD160 5b99c58b08402b5e0b65b9f2ad7c39cf2faa8012 SHA1 f49464f1622cdf72639e48a45e8ac7ee27c2fb80 SHA256 e22acf90d146927b261c00bbeb6f7f9ca86ff8c77d017027308ca2a54aeb1b04
DIST tcsh-6.14-conffiles.tar.bz2 20200 RMD160 96e5e43985fe1b6e53b4a2a53f1b7bed3c2ae103 SHA1 3ec8841c88b2c99c6b5978b907d9f3daa22faa7c SHA256 1bae5000c84593187974580c48b0edcec88e2f6363e3c1ec1e43da45c9a63049
DIST tcsh-6.14.00.tar.gz 859780 RMD160 fa7635225ceb0225aedcfad5dd9d8e17d8d70849 SHA1 55a08b31a57cfd8631edd1fb7e42f18578d8198a SHA256 fd738ac0c003d283a214d15d46c1bc3fb80afad697110994dccb8d101f0d6f0e
DIST tcsh-6.15.00.tar.gz 870886 RMD160 8065279e93bd3fddb2a95a3f74a680858d36508c SHA1 d24f7bf27e80222a6293b6629c14db547f0b7387 SHA256 dca83e59025f18a9811895cd7cf2a760ab1750240ea7c8c86ea21e24f783acdc
DIST tcsh-config-1.6.tar.bz2 2352 RMD160 28bc4d50211ee247f7202a4b49267d745142ef6e SHA1 5056d00da21cfad4550028821ebde49574244d87 SHA256 af86d79921c446b1ad4f8d665168ff6fd3fb24a875abde81e336ba91644c5160
EBUILD tcsh-6.14-r3.ebuild 2469 RMD160 8e2a942e31581503b53ab97a7bf9506d64c35d16 SHA1 2794f459edfa98c645dca0e5623c93ca4acb9feb SHA256 d6b43fac55e94a2d0bb71e43595c12802f91766bf802e0fbacac99192ee81d77
EBUILD tcsh-6.14-r5.ebuild 1846 RMD160 aea7db3864ebb67634d875d5658e78990d451d5d SHA1 e08249a41e0f273c19138c0c9ef2e522be4508a3 SHA256 6b308ff6800689a5cd3ca04790fe18cd6657aa4b52b51f23d80b7f6d138fb69a
EBUILD tcsh-6.15-r2.ebuild 2076 RMD160 a68014e42e5370860b5eb5589d4c594e71a334d6 SHA1 a4c059de6baf4462c0c016b54b50aef168f782b9 SHA256 379edccfce7be9ab473a7222cfc7c8d31abfe2bb16a2c08f661dcdea06e356a2
MISC ChangeLog 12579 RMD160 197a86496c281250e32714f8103a383f4c088b7c SHA1 230d9853f7cedd406474b2f5bd027c70e288844a SHA256 880b659964349b2442ac29d300bdcb3f3a53dfc319f4a36f6abbd71fe6adfe50
MISC metadata.xml 655 RMD160 10cac0d0a38ab114ec6f34be1fed837f38a77f40 SHA1 8e04b7ca425f5469ce8515c2ab8fce6cf166b3ca SHA256 bde0b24fe9a295482f3394de9b3d658bbcc2e58504136785fd4a6210b1d2e28b

files

metadata.xml




no-herd

grobian@gentoo.org
Fabian Groffen


Tcsh is an enhanced, but completely compatible version of the
Berkeley UNIX C shell (csh). It is a command language
interpreter usable both as an interactive login shell and a
shell script command processor. It includes a command-line
editor, programmable word completion, spelling correction, a
history mechanism, job control and a C-like syntax.

tcsh-6.14-r3.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.14-r3.ebuild,v 1.19 2007/07/15 05:23:38 mr_bones_ Exp $

inherit eutils

MY_P="${P}.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
mirror://gentoo/${P}-conffiles.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE="perl catalogs"

DEPEND=">=sys-libs/ncurses-5.1
perl? ( dev-lang/perl )
!app-shells/csh" # bug #119703

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${MY_P}"-debian-dircolors.patch # bug #120792
epatch "${FILESDIR}/${P}"-r2.patch
epatch "${FILESDIR}/${P}"-makefile.patch # bug #151951

if use catalogs ; then
einfo "enabling NLS catalogs support..."
sed -i -e "s/#undef NLS_CATALOGS/#define NLS_CATALOGS/" \
${WORKDIR}/${MY_P}/config_f.h || die
eend $?
fi
}

src_compile() {
econf --prefix=/ || die "econf failed"
emake || die "compile problem"
}

src_install() {
emake DESTDIR="${D}" install install.man || die

if use perl ; then
perl tcsh.man2html tcsh.man || die
dohtml tcsh.html/*.html
fi

insinto /etc
doins \
"${WORKDIR}"/gentoo/csh.cshrc \
"${WORKDIR}"/gentoo/csh.login

insinto /etc/profile.d
doins \
"${WORKDIR}"/gentoo/tcsh-bindkey.csh \
"${WORKDIR}"/gentoo/tcsh-settings.csh

dodoc FAQ Fixes NewThings Ported README WishList Y2K

docinto examples
dodoc \
"${WORKDIR}"/gentoo/tcsh-aliases \
"${WORKDIR}"/gentoo/tcsh-complete \
"${WORKDIR}"/gentoo/tcsh-gentoo_legacy \
"${WORKDIR}"/gentoo/tcsh.config

# bug #119703: add csh -> tcsh symlink
dosym /bin/tcsh /bin/csh
}

pkg_postinst() {

while read line; do elog "${line}"; done < The default behaviour of tcsh has significantly changed starting from
version 6.14-r1. In contrast to previous ebuilds, the amount of
customisation to the default shell's behaviour has been reduced to a
bare minimum (a customised prompt).
If you rely on the customisations provided by previous ebuilds, you will
have to copy over the relevant (now commented out) parts to your own
~/.tcshrc. Please check all tcsh-* files in
/usr/share/doc/${P}/examples/ and include their behaviour in your own
configuration files.
The tcsh-complete file is not any longer sourced by the default system
scripts.
EOF
}

tcsh-6.14-r5.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.14-r5.ebuild,v 1.3 2007/07/15 05:23:38 mr_bones_ Exp $

inherit eutils

MY_P="${P}.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
mirror://gentoo/${P}-conffiles.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="perl catalogs"

DEPEND=">=sys-libs/ncurses-5.1
perl? ( dev-lang/perl )
!app-shells/csh" # bug #119703

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${MY_P}"-debian-dircolors.patch # bug #120792
epatch "${FILESDIR}/${P}"-r2.patch
epatch "${FILESDIR}/${P}"-makefile.patch # bug #151951
epatch "${FILESDIR}/${P}"-r4.patch

if use catalogs ; then
einfo "enabling NLS catalogs support..."
sed -i -e "s/#undef NLS_CATALOGS/#define NLS_CATALOGS/" \
${WORKDIR}/${MY_P}/config_f.h || die
eend $?
fi
}

src_compile() {
econf --prefix=/ || die "econf failed"
emake || die "compile problem"
}

src_install() {
emake DESTDIR="${D}" install install.man || die

if use perl ; then
perl tcsh.man2html tcsh.man || die
dohtml tcsh.html/*.html
fi

insinto /etc
doins \
"${WORKDIR}"/gentoo/csh.cshrc \
"${WORKDIR}"/gentoo/csh.login

insinto /etc/profile.d
doins \
"${WORKDIR}"/gentoo/tcsh-bindkey.csh \
"${WORKDIR}"/gentoo/tcsh-settings.csh

dodoc FAQ Fixes NewThings Ported README WishList Y2K

docinto examples
dodoc \
"${WORKDIR}"/gentoo/tcsh-aliases \
"${WORKDIR}"/gentoo/tcsh-complete \
"${WORKDIR}"/gentoo/tcsh-gentoo_legacy \
"${WORKDIR}"/gentoo/tcsh.config

# bug #119703: add csh -> tcsh symlink
dosym /bin/tcsh /bin/csh
}

tcsh-6.15-r2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.15-r2.ebuild,v 1.11 2007/12/11 09:25:29 vapier Exp $

inherit eutils

CONFVER="1.6"

MY_P="${P}.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
mirror://gentoo/tcsh-config-${CONFVER}.tar.bz2
http://www.gentoo.org/~grobian/distfiles/tcsh-config-${CONFVER}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="perl catalogs"
RESTRICT="test"

DEPEND=">=sys-libs/ncurses-5.1
perl? ( dev-lang/perl )
!app-shells/csh" # bug #119703

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${MY_P/15/14}"-debian-dircolors.patch # bug #120792
epatch "${FILESDIR}"/${PN}-6.14-makefile.patch # bug #151951
epatch "${FILESDIR}"/${MY_P}-normalize-command-fix.patch # bug #183754

if use catalogs ; then
einfo "enabling NLS catalogs support..."
sed -i -e "s/#undef NLS_CATALOGS/#define NLS_CATALOGS/" \
config_f.h || die
eend $?
fi
}

src_compile() {
econf --prefix=/ || die "econf failed"
emake || die "compile problem"
}

src_install() {
emake DESTDIR="${D}" install install.man || die

if use perl ; then
perl tcsh.man2html tcsh.man || die
dohtml tcsh.html/*.html
fi

insinto /etc
doins \
"${WORKDIR}"/tcsh-config/csh.cshrc \
"${WORKDIR}"/tcsh-config/csh.login

dodoc FAQ Fixes NewThings Ported README WishList Y2K

# bug #119703: add csh -> tcsh symlink
dosym /bin/tcsh /bin/csh
}

pkg_postinst() {
elog "This revision of tcsh does use a completely revamped configuration"
elog "files system, which is based on the bash equivalents. It should"
elog "fix issues for KDE users, and miscelaneous issues of environment"
elog "variables not set that should have, like EDITOR. If you rely"
elog "on the /etc/csh.* files heavily, you may find your setup will be"
elog "broken now."
}