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 --- dev-util/cscope/Manifest | 7 +++ dev-util/cscope/cscope-15.8a-r1.ebuild | 64 ++++++++++++++++++++ dev-util/cscope/cscope-15.8a-r2.ebuild | 69 ++++++++++++++++++++++ dev-util/cscope/files/50cscope-gentoo.el | 34 +++++++++++ dev-util/cscope/files/cscope-15.6-darwin.patch | 11 ++++ .../cscope/files/cscope-15.7a-ocs-sysdir.patch | 23 ++++++++ dev-util/cscope/metadata.xml | 36 +++++++++++ 7 files changed, 244 insertions(+) create mode 100644 dev-util/cscope/Manifest create mode 100644 dev-util/cscope/cscope-15.8a-r1.ebuild create mode 100644 dev-util/cscope/cscope-15.8a-r2.ebuild create mode 100644 dev-util/cscope/files/50cscope-gentoo.el create mode 100644 dev-util/cscope/files/cscope-15.6-darwin.patch create mode 100644 dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch create mode 100644 dev-util/cscope/metadata.xml (limited to 'dev-util/cscope') diff --git a/dev-util/cscope/Manifest b/dev-util/cscope/Manifest new file mode 100644 index 000000000000..010d25d3de19 --- /dev/null +++ b/dev-util/cscope/Manifest @@ -0,0 +1,7 @@ +AUX 50cscope-gentoo.el 1442 BLAKE2B 73a5542b5ac18dd6ffb34169764cae590cb009c3d04816cb09361d24ea16c3e2fdb2355cca2301e932108fbb333ff433783b75bb379ecf4ec8996f8e162f422a SHA512 63bb70766d69a85f78c43204e3539bcabaf5765f19703f6f8ad1dcc2bc076c1c20623a3120eeeaff89842fac9f17d5b3f17820780eab9844716cbcd6a138d384 +AUX cscope-15.6-darwin.patch 288 BLAKE2B 3426d3f3dcdd67764b8f3ee63bbf1ea6c457231cc61099e854ded076f66034ab400c0f49db7ba5eeb43ee7cd3e1d5d9c0ba488b282f050ffe532da9910324688 SHA512 24c3a876c34786c8ff2b51256c05da5c8334cc8befb3db40faba8af8f34abbec78062f1baf8e0dc0adf9f37731b10310e61cd46c08a6e78baa767234e483e7d5 +AUX cscope-15.7a-ocs-sysdir.patch 582 BLAKE2B f9144657cb8d584f4d504481b986f68322d1a08b408e4f623db0ed3e22474895f4f8464e297a90e635a3dd3e71cb06f79b092a82ab8876d0ed308b71fa0d2812 SHA512 aa296d8839da73b6838c450dfabc9782940a2f9c9cfba2f738993c777c1d4096688d79205ccec58dbf931b2faf45a4c3850ddbd894c7b7e616d18a0014cacfdb +DIST cscope-15.8a.tar.gz 601232 BLAKE2B 8c67311059a055af775ba3d42942a557b54c0214751d8756e6a5c19a7a271824004e72c533614015ddcb0ffa4c768f99eb736d441dc8467c5be4824cebf5c15e SHA512 bedba69820eca86420f6c975d1f267de67a457b182a3fe49720a2ae5ea48759c5b5b8db06ed5ffd85173ddf4a0f12ca722e87200dea4a2da7d43c8c711b00318 +EBUILD cscope-15.8a-r1.ebuild 1388 BLAKE2B 41c1a647a086729d21b1321d64d86e8684c8cf204f632c6c8ccff268af4ab8a22d49cc59f9598d4814479f8fcd6ab30e7a997002f63ecef625c5bb80c68ed9d1 SHA512 b9d1b76bb68f5352fbd21b3668c518708e5ccc0580d9052ba556874d6bec06961d900bf06191e88870d741a408886fb4ae5efc9d3f974448ea6d26cd569ef0ca +EBUILD cscope-15.8a-r2.ebuild 1601 BLAKE2B 21d72755f774fc5bd2ca5767dbb34753c5f330c16138edc16df5e4c85f8bbdfb7f45680ae4c0450df3c84de2b384e89e79797b34acc1b4d49915c8d16c77606a SHA512 80dca153c05cfa98f2bcefd5901a977ac4492815b51a2f05ac31cebe32154b82a86d09e90c563cb96b0d63f9e3e45be4245d585412d77b53e32e4c02bc274d7a +MISC metadata.xml 1086 BLAKE2B 9fecf3d723e58a1235e3ae94b6a009c16cf91ecf0b27c32de7d8a8f96308e41908b9f2881083acfbf329685cce188b8ee0fb864333d566bc915e1ca2d572ac3f SHA512 a8ebddecfe959cb05a992749f12183baba41950b39e197bd1db0528969dd4e1814dc159555b2e24d85249373da4b60bf05a7d86aac2d7b8969d6d2bed2ab59e1 diff --git a/dev-util/cscope/cscope-15.8a-r1.ebuild b/dev-util/cscope/cscope-15.8a-r1.ebuild new file mode 100644 index 000000000000..597e787b4abc --- /dev/null +++ b/dev-util/cscope/cscope-15.8a-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools elisp-common toolchain-funcs + +DESCRIPTION="Interactively examine a C program" +HOMEPAGE="http://cscope.sourceforge.net/" +SRC_URI="mirror://sourceforge/cscope/${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="emacs" + +RDEPEND=">=sys-libs/ncurses-5.2:0= + emacs? ( virtual/emacs )" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig + virtual/yacc" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + eapply "${FILESDIR}/${PN}-15.7a-ocs-sysdir.patch" #269305 + eapply_user + mv configure.{in,ac} || die + eautoreconf # prevent maintainer mode later on +} + +src_compile() { + emake CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)" + if use emacs; then + cd "${S}"/contrib/xcscope || die + elisp-compile *.el + fi +} + +src_install() { + default + + if use emacs; then + cd "${S}"/contrib/xcscope || die + elisp-install ${PN} *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + dobin cscope-indexer + fi + + cd "${S}"/contrib/webcscope || die + docinto webcscope + dodoc INSTALL TODO cgi-lib.pl cscope hilite.c + docinto webcscope/icons + dodoc icons/*.gif +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/cscope/cscope-15.8a-r2.ebuild b/dev-util/cscope/cscope-15.8a-r2.ebuild new file mode 100644 index 000000000000..cc6a6c15981e --- /dev/null +++ b/dev-util/cscope/cscope-15.8a-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools elisp-common toolchain-funcs + +DESCRIPTION="Interactively examine a C program" +HOMEPAGE="http://cscope.sourceforge.net/" +SRC_URI="mirror://sourceforge/cscope/${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="emacs" + +RDEPEND=">=sys-libs/ncurses-5.2:0= + emacs? ( virtual/emacs )" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig + virtual/yacc" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + eapply "${FILESDIR}/${PN}-15.7a-ocs-sysdir.patch" #269305 + eapply "${FILESDIR}/${PN}-15.6-darwin.patch" + eapply_user + mv configure.{in,ac} || die + eautoreconf # prevent maintainer mode later on +} + +src_configure() { + econf --with-ncurses="${EPREFIX}"/usr +} + +src_compile() { + emake CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)" + if use emacs; then + cd "${S}"/contrib/xcscope || die + elisp-compile *.el + fi +} + +src_install() { + default + + if use emacs; then + cd "${S}"/contrib/xcscope || die + elisp-install ${PN} *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + dobin cscope-indexer + fi + + cd "${S}"/contrib/webcscope || die + docinto webcscope + dodoc INSTALL TODO cgi-lib.pl cscope hilite.c + docinto webcscope/icons + dodoc icons/*.gif +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/cscope/files/50cscope-gentoo.el b/dev-util/cscope/files/50cscope-gentoo.el new file mode 100644 index 000000000000..08fd4b449352 --- /dev/null +++ b/dev-util/cscope/files/50cscope-gentoo.el @@ -0,0 +1,34 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload 'cscope-minor-mode "xcscope") +(autoload 'cscope-display-buffer "xcscope" + "Display the *cscope* buffer." t) +(autoload 'cscope-display-buffer-toggle "xcscope" + "Toggle cscope-display-cscope-buffer, which corresponds to +\"Auto display *cscope* buffer\"." t) +(autoload 'cscope-next-symbol "xcscope" + "Move to the next symbol in the *cscope* buffer." t) +(autoload 'cscope-next-file "xcscope" + "Move to the next file in the *cscope* buffer." t) +(autoload 'cscope-prev-symbol "xcscope" + "Move to the previous symbol in the *cscope* buffer." t) +(autoload 'cscope-prev-file "xcscope" + "Move to the previous file in the *cscope* buffer." t) +(autoload 'cscope-pop-mark "xcscope" + "Pop back to where cscope was last invoked." t) +(autoload 'cscope-set-initial-directory "xcscope" + "Set the cscope-initial-directory variable." t) +(autoload 'cscope-unset-initial-directory "xcscope" + "Unset the cscope-initial-directory variable." t) +(autoload 'cscope-find-this-symbol "xcscope" + "Locate a symbol in source code." t) +(autoload 'cscope-find-global-definition "xcscope" + "Find a symbol's global definition." t) +(autoload 'cscope-find-global-definition-no-prompting "xcscope" + "Find a symbol's global definition without prompting." t) + +(defun cscope:hook () + (cscope-minor-mode)) +(add-hook 'c-mode-hook 'cscope:hook) +(add-hook 'c++-mode-hook 'cscope:hook) +(add-hook 'dired-mode-hook 'cscope:hook) diff --git a/dev-util/cscope/files/cscope-15.6-darwin.patch b/dev-util/cscope/files/cscope-15.6-darwin.patch new file mode 100644 index 000000000000..e755f3257efd --- /dev/null +++ b/dev-util/cscope/files/cscope-15.6-darwin.patch @@ -0,0 +1,11 @@ +--- a/src/constants.h ++++ b/src/constants.h +@@ -103,7 +103,7 @@ + #define INCLUDES 8 + #define FIELDS 9 + +-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ ++#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__ + # define TERMINFO 0 /* no terminfo curses */ + #else + # define TERMINFO 1 diff --git a/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch new file mode 100644 index 000000000000..6b4c17fe9145 --- /dev/null +++ b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/269305 + +--- cscope-15.7a-orig/contrib/ocs 2004-06-21 20:13:22.000000000 +0200 ++++ cscope-15.7a/contrib/ocs 2009-05-11 22:33:51.000000000 +0200 +@@ -75,17 +75,10 @@ + + #set the default value for SYSDIR + if [ -z "${SYSDIR}" ]; then +- SYSDIR=/usr/local/lib/cs ++ SYSDIR=/var/lib/cs + echo setting default sysdir + fi + +-#check that SYSDIR exists +-if [ ! -d ${SYSDIR} ]; then +- echo -n $SYSDIR does not exist. +- echo Please create the directory and set SYSDIR appropriately +- exit +-fi +- + # Check that cscope is in PATH + type cscope 1>/dev/null 2>&1 + diff --git a/dev-util/cscope/metadata.xml b/dev-util/cscope/metadata.xml new file mode 100644 index 000000000000..d474ab0ab2b1 --- /dev/null +++ b/dev-util/cscope/metadata.xml @@ -0,0 +1,36 @@ + + + + + vim@gentoo.org + Gentoo Vim Project + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + Cscope is a developer's tool for browsing source code. Cscope allows + searching code for: + + * cross referenced symbols + * global definitions + * callees and callers + * text strings and regular expression patterns + * files and files including a file + + Other features: + + * curses based (text screen) + * fast searches + * fuzzy parser supports C and is flexible enough to be useful for + C++, Java and other documents + * command line mode for inclusion in scripts or as a backend to GUIs + + Cscope is distributed with xcscope which provides tight integration + with GNU Emacs. + + + cscope + + -- cgit v1.2.3