Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/cdargs/cdargs-1.35.ebuild,v 1.4 2007/01/28 05:02:48 genone Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/cdargs/cdargs-1.35.ebuild,v 1.4 2007/01/28 05:02:48 genone Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit elisp-common |
6 |
|
5 |
DESCRIPTION="Bookmarks and browser for the shell builtin cd command" |
7 |
DESCRIPTION="Bookmarks and browser for the shell builtin cd command" |
6 |
HOMEPAGE="http://www.skamphausen.de/software/cdargs" |
8 |
HOMEPAGE="http://www.skamphausen.de/software/cdargs" |
7 |
SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz" |
9 |
SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz" |
Lines 11-17
Link Here
|
11 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
13 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
12 |
IUSE="emacs" |
14 |
IUSE="emacs" |
13 |
|
15 |
|
14 |
DEPEND="sys-libs/ncurses" |
16 |
DEPEND="sys-libs/ncurses |
|
|
17 |
emacs? ( virtual/emacs )" |
18 |
|
19 |
SITEFILE=50${PN}-gentoo.el |
20 |
|
21 |
src_compile() { |
22 |
econf || die "econf failed" |
23 |
emake || die "emake failed" |
24 |
|
25 |
if use emacs; then |
26 |
elisp-compile contrib/cdargs.el || die "elisp-compile failed" |
27 |
fi |
28 |
} |
15 |
|
29 |
|
16 |
src_install() { |
30 |
src_install() { |
17 |
make DESTDIR="${D}" install || die "make install failed" |
31 |
make DESTDIR="${D}" install || die "make install failed" |
Lines 22-32
Link Here
|
22 |
doins cdargs-bash.sh cdargs-tcsh.csh \ |
36 |
doins cdargs-bash.sh cdargs-tcsh.csh \ |
23 |
|| die "failed to install contrib scripts" |
37 |
|| die "failed to install contrib scripts" |
24 |
if use emacs ; then |
38 |
if use emacs ; then |
25 |
doins cdargs.el || die "failed to install cdargs.el" |
39 |
elisp-install ${PN} cdargs.{el,elc} || die "elisp-install failed" |
|
|
40 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
41 |
|| die "elisp-site-file-install failed" |
26 |
fi |
42 |
fi |
27 |
} |
43 |
} |
28 |
|
44 |
|
29 |
pkg_postinst() { |
45 |
pkg_postinst() { |
|
|
46 |
use emacs && elisp-site-regen |
47 |
|
30 |
echo |
48 |
echo |
31 |
elog "Add the following line to your ~/.bashrc to enable cdargs helper" |
49 |
elog "Add the following line to your ~/.bashrc to enable cdargs helper" |
32 |
elog "functions/aliases in your environment:" |
50 |
elog "functions/aliases in your environment:" |
Lines 36-50
Link Here
|
36 |
elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced" |
54 |
elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced" |
37 |
elog "feature set. See INSTALL file in the documentation directory for" |
55 |
elog "feature set. See INSTALL file in the documentation directory for" |
38 |
elog "more information." |
56 |
elog "more information." |
39 |
|
|
|
40 |
if use emacs ; then |
41 |
elog |
42 |
elog "To get an interactive cv defun in (X)Emacs load cdargs.el:" |
43 |
elog " (setq load-path" |
44 |
elog " (append (list " |
45 |
elog " \"/usr/share/cdargs/\")" |
46 |
elog " load-path))" |
47 |
elog " (require 'cdargs)" |
48 |
fi |
49 |
echo |
57 |
echo |
50 |
} |
58 |
} |
|
|
59 |
|
60 |
pkg_postrm() { |
61 |
use emacs && elisp-site-regen |
62 |
} |