/[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.1 - (hide annotations) (download)
Sun Jun 21 13:57:11 2015 UTC (5 years, 1 month ago) by jlec
Branch: MAIN
Import fedora patch for format-security, bug #521078; make it compile with ncurses[tinfo]

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)

1 jlec 1.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-r1.ebuild,v 1.6 2011/01/05 14:53:03 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