# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.14-r1.ebuild,v 1.4 2005/11/02 22:15:37 grobian Exp $ 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" # note: starting from this version the various files scattered around # the place in ${FILESDIR} are now stored in a versioned tarball LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~hppa ~amd64 ~ia64 ~ppc64 ~mips" IUSE="perl" DEPEND="virtual/libc >=sys-libs/ncurses-5.1 perl? ( dev-lang/perl )" S="${WORKDIR}/${MY_P}" 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 dodoc FAQ Fixes NewThings Ported README WishList Y2K insinto /etc doins \ "${WORKDIR}"/gentoo/csh.cshrc \ "${WORKDIR}"/gentoo/csh.login insinto /etc/skel newins "${WORKDIR}"/gentoo/tcsh.config .tcsh.config insinto /etc/profile.d doins \ "${WORKDIR}"/gentoo/tcsh-bindkey.csh \ "${WORKDIR}"/gentoo/tcsh-settings.csh \ "${WORKDIR}"/gentoo/tcsh-aliases \ "${WORKDIR}"/gentoo/tcsh-complete \ "${WORKDIR}"/gentoo/tcsh-gentoo_legacy } pkg_postinst() { # add csh -> tcsh symlink only if csh is not yet there [ ! -e /bin/csh ] && dosym /bin/tcsh /bin/csh while read line; do einfo "${line}"; done <