From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-misc/cdargs/Manifest | 6 ++ app-misc/cdargs/cdargs-1.35-r2.ebuild | 70 +++++++++++++++ app-misc/cdargs/files/50cdargs-gentoo.el | 8 ++ .../cdargs/files/cdargs-1.35-format_security.patch | 100 +++++++++++++++++++++ app-misc/cdargs/files/cdargs-1.35-tinfo.patch | 20 +++++ app-misc/cdargs/metadata.xml | 8 ++ 6 files changed, 212 insertions(+) create mode 100644 app-misc/cdargs/Manifest create mode 100644 app-misc/cdargs/cdargs-1.35-r2.ebuild create mode 100644 app-misc/cdargs/files/50cdargs-gentoo.el create mode 100644 app-misc/cdargs/files/cdargs-1.35-format_security.patch create mode 100644 app-misc/cdargs/files/cdargs-1.35-tinfo.patch create mode 100644 app-misc/cdargs/metadata.xml (limited to 'app-misc/cdargs') diff --git a/app-misc/cdargs/Manifest b/app-misc/cdargs/Manifest new file mode 100644 index 000000000000..d4d59806bbf6 --- /dev/null +++ b/app-misc/cdargs/Manifest @@ -0,0 +1,6 @@ +AUX 50cdargs-gentoo.el 270 BLAKE2B d39eb5ffd0e910aae99706b6e802621180a090d6ee221b5fad300b37c3a337bfa6f7aa0e0673e6776b8090bad9e8ded919d242e2d47c293dd102a64b01238ba7 SHA512 ee6765ea4222102678d482a3728e2ba3aac0b0709b6148b7d7755421e00125be0b15a41bce2d8fce4340865a10863f519d5c87729aa66ec9216e9618cf059f75 +AUX cdargs-1.35-format_security.patch 4482 BLAKE2B bf7eb8cde3061bee105ca5f16fafa65fa43a0f600f80998e4d0e4244e277f4a0c557fade1a3a384642a75494a5cf1f94d4b678bb2d3322c128cf995eda495213 SHA512 379d220d9d257af5e260a4234653520d08078c2a89d30216f9d6c1b77e6aa18ff82d1c609203ceebd78ba238077acf0eda34d2a1e00fb059db6ba7a9fedfe3ff +AUX cdargs-1.35-tinfo.patch 624 BLAKE2B 82a3210fbed0fd4f5903ef621a330e8eb01a9169e29cb2c09784c135581c5d08969c26b14e48797a27a3d73390371c8931ca00e1418de8bf01ccf5215435f50f SHA512 3f332d2f76c71affa92ab30b527621dafae09655b71839598784498fb7b07e5967907d6977bb2321ea7043a9c82d6dc2273c3bb5bf0fa7a8d4b11635442640b6 +DIST cdargs-1.35.tar.gz 74103 BLAKE2B 06fa5b4ed7c00dbcceeda28c2b02dd46431748434a692f3690885dc1141764e8aacef2e09cab57cf1baab32cb66c5c39a846a09fd6381723f47cd8dc98c8584f SHA512 13df5d18de6f62309a0ecccc0dd95508d81d1955f87cfd2962360d3b7d74c5cdc2b0d2e00f7a4f1e7556bfbcbd3e2ecf4847a1a48ab47442e6d2d5a36db0cf0c +EBUILD cdargs-1.35-r2.ebuild 1519 BLAKE2B 9ed71d63a460f16fbef8b137c695ad6a1e2af472982dc3951d9c842086e43fefc5f65508e1380c2c673aa4cad3e191755310556f817bfd94fd679e7d67c5af83 SHA512 39e329484f66651c34b3f2e45e33c1b657f89d2f150b8ae5136636cc807bea8350571b82bbe45f1853cc1b99b32d4513c46a28cae724f942c5d43929a0b4cc26 +MISC metadata.xml 265 BLAKE2B 75452ad720a31a08fc0dcd02eec704c18b11bc0660686f9a320b85fc879f55a564ce9c3b6a8c710781b74c5e8eb3d0544c02a042fb35a0b62a5e1491f675296a SHA512 176f814d8c555e8726f36e012367b698e8a19a0662982621029a7f9190beecc5e6798e43c51698dc149364966cdeff7061121e54fa9d4cf2a3559a6ce4904e25 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..28fca19b1a63 --- /dev/null +++ b/app-misc/cdargs/cdargs-1.35-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 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:0= + 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 +} diff --git a/app-misc/cdargs/files/50cdargs-gentoo.el b/app-misc/cdargs/files/50cdargs-gentoo.el new file mode 100644 index 000000000000..f9203b308ce0 --- /dev/null +++ b/app-misc/cdargs/files/50cdargs-gentoo.el @@ -0,0 +1,8 @@ + +;;; app-misc/cdargs site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'cdargs "cdargs" + "Change the current working directory using a bookmarks file." t) +(defalias 'cv 'cdargs) +(autoload 'cdargs-edit "cdargs" "Simply open the bookmarks file" t) diff --git a/app-misc/cdargs/files/cdargs-1.35-format_security.patch b/app-misc/cdargs/files/cdargs-1.35-format_security.patch new file mode 100644 index 000000000000..978a8e92c088 --- /dev/null +++ b/app-misc/cdargs/files/cdargs-1.35-format_security.patch @@ -0,0 +1,100 @@ + + + +cdargs.git - cdargs + + + + + + + + + + + +
+ + + + +
+summaryrefslogtreecommitdiffstats
+ + + +
+
+
blob: 3ddc550e607e9f908b891c7e3626ee256484607e (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+
diff --git a/src/cdargs.cc b/src/cdargs.cc
+index e505e4e..1fdfeb8 100644
+--- a/src/cdargs.cc
++++ b/src/cdargs.cc
+@@ -1301,7 +1301,7 @@ void helpscreen(void) {
+ 
+ void fatal_exit(char* msg) {
+     endwin();
+-    fprintf(stderr, msg);
++    fprintf(stderr, "%s", msg);
+     exit(1);
+ }
+ 
+
+
+ +
+ + diff --git a/app-misc/cdargs/files/cdargs-1.35-tinfo.patch b/app-misc/cdargs/files/cdargs-1.35-tinfo.patch new file mode 100644 index 000000000000..d85a3b9b685c --- /dev/null +++ b/app-misc/cdargs/files/cdargs-1.35-tinfo.patch @@ -0,0 +1,20 @@ + configure.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index a21d664..263929e 100644 +--- a/configure.in ++++ b/configure.in +@@ -8,10 +8,11 @@ dnl if test "$has_curses" = "false" ; then + dnl AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.]) + dnl fi + ++PKG_CHECK_MODULES([NCURSES], [ncurses],[CURSES_LIB=${NCURSES_LIBS}],[ + MP_WITH_CURSES + if test "x$CURSES_LIB" = "x" ; then + AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.]) +-fi ++fi]) + AC_SUBST(CURSES_LIB) + + AC_OUTPUT(Makefile contrib/Makefile doc/Makefile src/Makefile m4/Makefile cdargs.spec) diff --git a/app-misc/cdargs/metadata.xml b/app-misc/cdargs/metadata.xml new file mode 100644 index 000000000000..3cf14bf74636 --- /dev/null +++ b/app-misc/cdargs/metadata.xml @@ -0,0 +1,8 @@ + + + + + shell-tools@gentoo.org + Gentoo Shell Tools Project + + -- cgit v1.2.3