mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 18:42:22 +02:00
dev-util/cscope: delete cscope
Delete deprecated ebuild that was pulled in by coreos-devel/sdk-extras.
This commit is contained in:
parent
452457a7f9
commit
3ca702e8d3
@ -1 +0,0 @@
|
|||||||
DIST cscope-15.7a.tar.bz2 361214 RMD160 8bc904f636e8e6ea4542738095183475911858f9 SHA1 f6348694e5443769add851f97fd39365e93dc474 SHA256 02638bcba790bc8b0562f28dbe789e61794415079d94a676efc287d18dc96037
|
|
@ -1,65 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/cscope/cscope-15.7a-r1.ebuild,v 1.11 2012/04/26 16:47:01 aballier Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
inherit elisp-common eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Interactively examine a C program"
|
|
||||||
HOMEPAGE="http://cscope.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/cscope/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="BSD GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE="emacs"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.2
|
|
||||||
emacs? ( virtual/emacs )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/bison
|
|
||||||
>=sys-devel/autoconf-2.60"
|
|
||||||
|
|
||||||
SITEFILE="50${PN}-gentoo.el"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${P}-ocs-sysdir.patch" #269305
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
make clean || die "make clean failed"
|
|
||||||
emake
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
cd "${S}"/contrib/xcscope || die
|
|
||||||
elisp-compile *.el || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
einstall
|
|
||||||
dodoc AUTHORS ChangeLog NEWS README* TODO
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
cd "${S}"/contrib/xcscope || die
|
|
||||||
elisp-install ${PN} *.el *.elc || die
|
|
||||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
(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)
|
|
@ -1,23 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user