summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-12-31 16:38:34 +0000
committerFabian Groffen <grobian@gentoo.org>2011-12-31 16:38:34 +0000
commit0535b939e9e9422952f74036380d02965ee8859e (patch)
tree85f9dcb3befd2a8987a9486b54778dfe3de29076 /app-shells/tcsh
parentRevbump. Don't use the deprecated $opts variable, bug 381895. (diff)
downloadhistorical-0535b939e9e9422952f74036380d02965ee8859e.tar.gz
historical-0535b939e9e9422952f74036380d02965ee8859e.tar.bz2
historical-0535b939e9e9422952f74036380d02965ee8859e.zip
Cleanup old, version bump to beta version with ebuild cleanup.
Package-Manager: portage-2.2.01.20043-prefix/cvs/Darwin i386
Diffstat (limited to 'app-shells/tcsh')
-rw-r--r--app-shells/tcsh/ChangeLog9
-rw-r--r--app-shells/tcsh/Manifest21
-rw-r--r--app-shells/tcsh/files/tcsh-6.14-r2.patch59
-rw-r--r--app-shells/tcsh/files/tcsh-6.14-r4.patch35
-rw-r--r--app-shells/tcsh/tcsh-6.14-r5.ebuild74
-rw-r--r--app-shells/tcsh/tcsh-6.15-r2.ebuild75
-rw-r--r--app-shells/tcsh/tcsh-6.17.06.ebuild90
7 files changed, 106 insertions, 257 deletions
diff --git a/app-shells/tcsh/ChangeLog b/app-shells/tcsh/ChangeLog
index f633691f93f5..131a45264466 100644
--- a/app-shells/tcsh/ChangeLog
+++ b/app-shells/tcsh/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-shells/tcsh
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v 1.107 2011/11/26 19:01:27 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v 1.108 2011/12/31 16:38:34 grobian Exp $
+
+*tcsh-6.17.06 (31 Dec 2011)
+
+ 31 Dec 2011; Fabian Groffen <grobian@gentoo.org> +tcsh-6.17.06.ebuild,
+ -files/tcsh-6.14-r2.patch, -files/tcsh-6.14-r4.patch, -tcsh-6.14-r5.ebuild,
+ -tcsh-6.15-r2.ebuild:
+ Cleanup old, version bump to beta version with ebuild cleanup.
26 Nov 2011; Raúl Porcel <armin76@gentoo.org> tcsh-6.17-r1.ebuild:
alpha/ia64/m68k/s390/sh/sparc stable wrt #389013
diff --git a/app-shells/tcsh/Manifest b/app-shells/tcsh/Manifest
index 66cac8ffe902..39a4df12bfa3 100644
--- a/app-shells/tcsh/Manifest
+++ b/app-shells/tcsh/Manifest
@@ -2,28 +2,23 @@
Hash: SHA1
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-6.16.00.tar.gz 886468 RMD160 ed23351273bb737c184658235f33869488e64696 SHA1 3d3536bbb9201abdf39b8b364b95e0a218970a5c SHA256 7603b8d67553e0a83159f0f463b642e3679a878a70743285bb7b288b314517d4
DIST tcsh-6.17.00.tar.gz 890084 RMD160 2cc41a895799ade6d62640f877bb626f136dac35 SHA1 9bf67d5ce1b406178e9ba535ecd34553fe0d4d36 SHA256 575266122bc2bc351c84a7f858020c0e6b6f95a64ad4de3ce95e340f57e4a9a9
-DIST tcsh-config-1.6.tar.bz2 2352 RMD160 28bc4d50211ee247f7202a4b49267d745142ef6e SHA1 5056d00da21cfad4550028821ebde49574244d87 SHA256 af86d79921c446b1ad4f8d665168ff6fd3fb24a875abde81e336ba91644c5160
+DIST tcsh-6.17.06.tar.gz 919999 RMD160 34e92c7f2af089313c9c416b305e164b684b0f76 SHA1 f3754b0ac8bbccc655b5e4d247fff2c853cc7cc2 SHA256 c9eff6aa782ecec5c6719954b529fadac97c32f3ba4c56fa07c40d425c2d91df
DIST tcsh-gentoo-patches-r1.8.tar.bz2 2484 RMD160 d2ac41730bbbdfb8db77a67a0104edc08bb4570e SHA1 9059e209f433a023f264907d84d55824ec6854f0 SHA256 77fa4ae60090ad5a6ec50185eec9070757eedb798b1c29327d27fc582cb59f37
-EBUILD tcsh-6.14-r5.ebuild 1871 RMD160 6665ba481944e7f3f8dd8ca9142f6c04f667c55f SHA1 3b07f6f86dace5700d7206134ade426ce2c03b13 SHA256 1932e60386b6c5a09b15c682cbe32a661c495c10db507d86286bb75531ee47e2
-EBUILD tcsh-6.15-r2.ebuild 2100 RMD160 9f1c1e4e751b6100280b148b33dab18c9bc7dd5e SHA1 8d56947fff644a6ab0f7c06bfaf202d62af74c90 SHA256 05b9a965321a0cbf92762ca44b0d9a575387bd920039ca0395465c8d1a814da5
+DIST tcsh-gentoo-patches-r1.9.tar.bz2 2488 RMD160 60abc2583e2ee0706558d4171756a07da31df6c9 SHA1 fcb945bb77afbd49687545da8b62239739583a08 SHA256 6375f48d78b64fd97fc2cb07e8117e41459521a8de3919d174eec321a98af483
EBUILD tcsh-6.16.ebuild 2606 RMD160 510ed6f0b2e0d7d4c0de6726ae0e238f31c20234 SHA1 35692fd2bf23a451272ebe9cd8010038122b474f SHA256 bebfd92ea8bdd8fe4fa1f91cdeec4620562bbc2849273247e4df48375fe1ca97
EBUILD tcsh-6.17-r1.ebuild 2674 RMD160 42ab78375071a58c7bee0afe1fcd0c56e9766d50 SHA1 05d01d5412715a240fab68bf07c6dfb0e739eb9f SHA256 589fa4d5433e1502d6298554809879b624f1937a4786a3825c072a844949afb4
-MISC ChangeLog 15780 RMD160 8f4e5da557ef27ce7915d43f3f794a80151d3d01 SHA1 11dbdc2d34c4337f216e61363bb692c95f15cbda SHA256 04ae1a6654033c90065b16f85d7084e26aa0f0325da3f551ce6ab0658d657df5
+EBUILD tcsh-6.17.06.ebuild 2625 RMD160 7b29088320938d4bf870eba06552c217721440dd SHA1 274297f581382bbf784e60e5dfb39ae5ca7661c7 SHA256 e15163a06c72b6f6376d6fa5e4d439adccb4b7df690931cb093bc30c152327cb
+MISC ChangeLog 16050 RMD160 388478b00431d70ea7874a20709e11c1d662ee19 SHA1 325ca3d08cacf20d26dd71782a1b8cedad787c18 SHA256 ae9b173debfff2fc5dea97884d8eef17504f918a517fb628fe7a3f65ee0f0ee4
MISC metadata.xml 706 RMD160 cd6d706bee1e966787f5de57fdb791cf92863b3d SHA1 a14ef481c73cbf514f117331625a499f84c26965 SHA256 318990e6f93f738cc70e956b6b00831079b273215eb994da7ec80f03aaa0db59
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (Darwin)
-iEYEARECAAYFAk7RN5AACgkQuQc30/atMkDuygCdGGuP6vNB4Nwk4lKBrPOIBW49
-gaQAniWSXpGm3zRcB3AQnhpSgkZcRp4P
-=B+G2
+iEYEARECAAYFAk7/Oo8ACgkQX3X2B8XHTomI8wCffdmcC2wtiwDS3RO0aM9LFg8w
+fuEAnjoN0up1piNyxrsrQSHjYO9hAcU0
+=zGDA
-----END PGP SIGNATURE-----
diff --git a/app-shells/tcsh/files/tcsh-6.14-r2.patch b/app-shells/tcsh/files/tcsh-6.14-r2.patch
deleted file mode 100644
index c1dc772dac15..000000000000
--- a/app-shells/tcsh/files/tcsh-6.14-r2.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- gentoo/csh.cshrc
-+++ gentoo/csh.cshrc
-@@ -1,6 +1,9 @@
- ## Gentoo csh.cshrc
- ##
--## 2005-09-29 -- Fabian Groffen (grobian@gentoo.org)
-+## 2005-11-10 -- Fabian Groffen (grobian@gentoo.org)
-+## * Disabled sourcing environment defaults and additional settings
-+## when having a non-interactive shell. Bug #104763
-+## 2005-09-29 -- Fabian Groffen
- ## * Initial version of a complete redo of this file to fix many bugs
- ## and resolve many annoyances experienced by numerous users
- ##
-@@ -8,7 +11,7 @@
- ##
- ## Load the environment defaults.
- ##
--if ( -r /etc/csh.env ) then
-+if ( $?prompt && -r /etc/csh.env ) then
- source /etc/csh.env
- endif
-
-@@ -55,7 +58,7 @@
- ##
- ## Source extensions
- ##
--if ( -d /etc/profile.d ) then
-+if ( $?prompt && -d /etc/profile.d ) then
- set nonomatch
- foreach i ( /etc/profile.d/*.csh )
- if ( -r $i ) then
---- gentoo/tcsh-complete
-+++ gentoo/tcsh-complete
-@@ -3,8 +3,11 @@
- ## Based on the TCSH complete.tcsh script, with changed from the TCSHRC
- ## package (http://tcshrc.sourceforge.net)
- ##
--## Please do not change this file! Place your personal customizations in
--## ~/.tcshrc and system-wide customizations in /etc/profiles.d/local.csh
-+## Please note that the tcsh-complete file is a large set of examples
-+## that is not meant to be used in its exact form, as it defines an
-+## excessive -- sometimes conflicting -- amount of completion scripts.
-+## It is highly encouraged to copy over the desired auto completion
-+## scripts to the personal ~/.tcshrc file.
- ##
- ## 2005-09-27 -- Fabian Groffen (grobian@gentoo.org)
- ## fixed some bugs reported by users and cleaned it a bit
---- gentoo/tcsh-gentoo_legacy
-+++ gentoo/tcsh-gentoo_legacy
-@@ -4,6 +4,9 @@
- ## by gentoo ebuilds prior to 6.14-r1. If you wonder what it does, you
- ## probably don't want this at all, so stay away from it.
- ##
-+## Remember that you have to copy over these files into their
-+## appropriate places, such as /etc/profile.d and /etc/skel.
-+##
-
- ##
- ## Start by unsetting all our variables. This is needed to prevent
diff --git a/app-shells/tcsh/files/tcsh-6.14-r4.patch b/app-shells/tcsh/files/tcsh-6.14-r4.patch
deleted file mode 100644
index a9628b78df0c..000000000000
--- a/app-shells/tcsh/files/tcsh-6.14-r4.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- gentoo/csh.login
-+++ gentoo/csh.login
-@@ -1,6 +1,9 @@
- ## Gentoo csh.login
- ##
--## 2005-09-27 -- Fabian Groffen (grobian@gentoo.org)
-+## 2006-12-02 -- Fabian Groffen (grobian@gentoo.org)
-+## Don't set SHELL variable, should be done by login (bug #91725)
-+## Properly call tset, such that it actually does something (bug #156422)
-+## 2005-09-27 -- Fabian Groffen
- ## Resolved reported bug on MOTD (disabled it)
- ## 2003-01-13 -- Alain Penders (alain@gentoo.org)
- ## Initial version. Inspired by the Suse version.
-@@ -14,9 +17,7 @@
- # Console
- if ( ! ${?TERM} ) setenv TERM linux
- if ( "$TERM" == "unknown" ) setenv TERM linux
-- # No tset available on SlackWare
- if ( -x "`which stty`" ) stty sane cr0 pass8 dec
-- if ( -x "`which tset`" ) tset -I -Q
- unsetenv TERMCAP
- settc km yes
- endif
-@@ -27,11 +30,6 @@
- umask 022
-
- ##
--## Set our SHELL variable.
--##
--setenv SHELL /bin/tcsh
--
--##
- ## Setup a default MAIL variable
- ##
- if ( -f /var/spool/mail/$USER ) then
diff --git a/app-shells/tcsh/tcsh-6.14-r5.ebuild b/app-shells/tcsh/tcsh-6.14-r5.ebuild
deleted file mode 100644
index 9a2881fcbbbf..000000000000
--- a/app-shells/tcsh/tcsh-6.14-r5.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2010 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.6 2010/10/06 07:45:27 grobian 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/old/${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"
-
-RDEPEND=">=sys-libs/ncurses-5.1"
-DEPEND="${RDEPEND}
- 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
-}
diff --git a/app-shells/tcsh/tcsh-6.15-r2.ebuild b/app-shells/tcsh/tcsh-6.15-r2.ebuild
deleted file mode 100644
index a59eb70c5978..000000000000
--- a/app-shells/tcsh/tcsh-6.15-r2.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2011 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.15 2011/02/06 22:03:07 leio 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/old/${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"
-
-RDEPEND=">=sys-libs/ncurses-5.1"
-DEPEND="${RDEPEND}
- 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."
-}
diff --git a/app-shells/tcsh/tcsh-6.17.06.ebuild b/app-shells/tcsh/tcsh-6.17.06.ebuild
new file mode 100644
index 000000000000..12968ce252b9
--- /dev/null
+++ b/app-shells/tcsh/tcsh-6.17.06.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.17.06.ebuild,v 1.1 2011/12/31 16:38:34 grobian Exp $
+
+EAPI="3"
+
+inherit eutils flag-o-matic autotools prefix
+
+CONFVER="1.9"
+
+DESCRIPTION="Enhanced version of the Berkeley C shell (csh)"
+HOMEPAGE="http://www.tcsh.org/"
+SRC_URI="ftp://ftp.astron.com/pub/tcsh/beta/${P}.tar.gz
+ http://www.gentoo.org/~grobian/distfiles/tcsh-gentoo-patches-r${CONFVER}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls doc"
+RESTRICT="test"
+
+# we need gettext because we run autoconf (AM_ICONV)
+RDEPEND=">=sys-libs/ncurses-5.1
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ doc? ( dev-lang/perl )"
+
+CONFDIR=${WORKDIR}/tcsh-gentoo-patches-r${CONFVER}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-6.14.00-debian-dircolors.patch # bug #120792
+ epatch "${FILESDIR}"/${PN}-6.14-makefile.patch # bug #151951
+ epatch "${FILESDIR}"/${PN}-6.14-use-ncurses.patch
+ eautoreconf
+
+ # fix gencat usage
+ sed -i -e 's/cat \$\^ \$> | \$(GENCAT) \$@/rm -f $@; $(GENCAT) $@ $> $^/' \
+ nls/Makefile.in || die
+
+ # unify ECHO behaviour
+ echo "#undef ECHO_STYLE" >> config_f.h
+ echo "#define ECHO_STYLE BOTH_ECHO" >> config_f.h
+
+ eprefixify "${CONFDIR}"/*
+ # activate the right default PATH
+ if [[ -z ${EPREFIX} ]] ; then
+ sed -i \
+ -e 's/^#MAIN//' -e '/^#PREFIX/d' \
+ "${CONFDIR}"/csh.login || die
+ else
+ sed -i \
+ -e 's/^#PREFIX//' -e '/^#MAIN/d' \
+ "${CONFDIR}"/csh.login || die
+ fi
+}
+
+src_configure() {
+ # make tcsh look and live along the lines of the prefix
+ append-flags -D_PATH_DOTCSHRC="'"'"${EPREFIX}/etc/csh.cshrc"'"'"
+ append-flags -D_PATH_DOTLOGIN="'"'"${EPREFIX}/etc/csh.login"'"'"
+ append-flags -D_PATH_DOTLOGOUT="'"'"${EPREFIX}/etc/csh.logout"'"'"
+ append-flags -D_PATH_USRBIN="'"'"${EPREFIX}/usr/bin"'"'"
+ append-flags -D_PATH_BIN="'"'"${EPREFIX}/bin"'"'"
+
+ econf \
+ --prefix="${EPREFIX:-/}" \
+ --datarootdir='${prefix}/usr/share' \
+ $(use_enable nls) \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man || die
+
+ if use doc ; then
+ perl tcsh.man2html tcsh.man || die
+ dohtml tcsh.html/*.html
+ fi
+
+ insinto /etc
+ doins \
+ "${CONFDIR}"/csh.cshrc \
+ "${CONFDIR}"/csh.login
+
+ dodoc FAQ Fixes NewThings Ported README WishList Y2K
+
+ # bug #119703: add csh -> tcsh symlink
+ dosym /bin/tcsh /bin/csh
+}