/[gentoo-x86]/app-misc/cdargs/cdargs-1.35-r2.ebuild
Gentoo

Contents of /app-misc/cdargs/cdargs-1.35-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 22 11:41:52 2015 UTC (5 years, 1 month ago) by zlogene
Branch: MAIN
Changes since 1.1: +2 -2 lines
x86 stable wrt bug #552752

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/cdargs/cdargs-1.35-r2.ebuild,v 1.1 2015/06/21 13:57:11 jlec Exp $
4
5 EAPI=5
6
7 inherit autotools elisp-common eutils
8
9 DESCRIPTION="Bookmarks and browser for the shell builtin cd command"
10 HOMEPAGE="http://www.skamphausen.de/cgi-bin/ska/CDargs"
11 SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~sparc x86"
16 IUSE="emacs"
17
18 DEPEND="
19 sys-libs/ncurses
20 emacs? ( virtual/emacs )"
21 RDEPEND="${DEPEND}"
22
23 SITEFILE=50${PN}-gentoo.el
24
25 PATCHES=(
26 "${FILESDIR}"/${P}-format_security.patch
27 "${FILESDIR}"/${P}-tinfo.patch
28 )
29
30 src_prepare() {
31 epatch "${PATCHES[@]}"
32 mv configure.{in,ac} || die
33 eautoreconf
34 }
35
36 src_compile() {
37 default
38
39 use emacs && elisp-compile contrib/cdargs.el
40 }
41
42 src_install() {
43 default
44
45 cd "${S}/contrib" || die
46 insinto /usr/share/cdargs
47 doins cdargs-bash.sh cdargs-tcsh.csh
48 if use emacs ; then
49 elisp-install ${PN} cdargs.{el,elc}
50 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
51 fi
52 }
53
54 pkg_postinst() {
55 use emacs && elisp-site-regen
56
57 echo
58 elog "Add the following line to your ~/.bashrc to enable cdargs helper"
59 elog "functions/aliases in your environment:"
60 elog "[ -f /usr/share/cdargs/cdargs-bash.sh ] && \\ "
61 elog " source /usr/share/cdargs/cdargs-bash.sh"
62 elog
63 elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced"
64 elog "feature set. See INSTALL file in the documentation directory for"
65 elog "more information."
66 echo
67 }
68
69 pkg_postrm() {
70 use emacs && elisp-site-regen
71 }

  ViewVC Help
Powered by ViewVC 1.1.20