diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/cdargs/cdargs-1.35-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/cdargs/cdargs-1.35-r2.ebuild')
-rw-r--r-- | app-misc/cdargs/cdargs-1.35-r2.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/app-misc/cdargs/cdargs-1.35-r2.ebuild b/app-misc/cdargs/cdargs-1.35-r2.ebuild new file mode 100644 index 000000000000..c679856b7ba8 --- /dev/null +++ b/app-misc/cdargs/cdargs-1.35-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools elisp-common eutils + +DESCRIPTION="Bookmarks and browser for the shell builtin cd command" +HOMEPAGE="http://www.skamphausen.de/cgi-bin/ska/CDargs" +SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="emacs" + +DEPEND=" + sys-libs/ncurses + emacs? ( virtual/emacs )" +RDEPEND="${DEPEND}" + +SITEFILE=50${PN}-gentoo.el + +PATCHES=( + "${FILESDIR}"/${P}-format_security.patch + "${FILESDIR}"/${P}-tinfo.patch + ) + +src_prepare() { + epatch "${PATCHES[@]}" + mv configure.{in,ac} || die + eautoreconf +} + +src_compile() { + default + + use emacs && elisp-compile contrib/cdargs.el +} + +src_install() { + default + + cd "${S}/contrib" || die + insinto /usr/share/cdargs + doins cdargs-bash.sh cdargs-tcsh.csh + if use emacs ; then + elisp-install ${PN} cdargs.{el,elc} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + + echo + elog "Add the following line to your ~/.bashrc to enable cdargs helper" + elog "functions/aliases in your environment:" + elog "[ -f /usr/share/cdargs/cdargs-bash.sh ] && \\ " + elog " source /usr/share/cdargs/cdargs-bash.sh" + elog + elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced" + elog "feature set. See INSTALL file in the documentation directory for" + elog "more information." + echo +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |