# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Bookmarks and browser for the shell builtin cd command." HOMEPAGE="http://www.skamphausen.de/software/cdargs" SRC_URI="http://www.skamphausen.de/software/cdargs/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="emacs" DEPEND="sys-libs/ncurses" src_compile() { econf || die "failed configuring program" emake || die "failed building program" } src_install() { einstall || die "make install failed" dodoc README INSTALL THANKS TODO AUTHORS COPYING insinto /usr/share/cdargs doins contrib/cdargs-bash.sh || die "failed to install cdargs-bash.sh" doins contrib/cdargs-tcsh.csh || die "failed to install cdargs-tcsh.csh" if use emacs ; then doins contrib/cdargs.el || die "failed to install cdargs.el" fi } pkg_postinst() { echo einfo "Add the following line to your ~/.bashrc to" einfo "activate cdargs support in your bash:" einfo "[ -f /usr/share/cdargs/cdargs-bash.sh ] && . /usr/share/cdargs/cdargs-bash.sh" einfo einfo "Users of tcshell will find cdargs-tcsh.csh there with a reduced" einfo "feature set. See INSTALL file in the documentation directory for" einfo "more on this." einfo if use emacs ; then einfo "To get an interactive cv defun in (X)Emacs load cdargs.el:" einfo " (setq load-path" einfo " (append (list " einfo " \"/usr/share/cdargs/\")" einfo " load-path))" einfo " (require 'cdargs)" fi einfo }