mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 10:31:37 +02:00
Upgraded the cscope Portage package
Upgraded dev-util/cscope to version 15.7a-r1 on amd64 BUG=none TEST="sudo emerge cscope" works on the host Change-Id: Ib8d34c2cb2cd4101e00571893a7f544915677299 Reviewed-on: https://gerrit.chromium.org/gerrit/26811 Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Sonny Rao <sonnyrao@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
parent
060f3b7d9e
commit
dedc2a19a8
1
sdk_container/src/third_party/portage-stable/dev-util/cscope/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/dev-util/cscope/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST cscope-15.7a.tar.bz2 361214 RMD160 8bc904f636e8e6ea4542738095183475911858f9 SHA1 f6348694e5443769add851f97fd39365e93dc474 SHA256 02638bcba790bc8b0562f28dbe789e61794415079d94a676efc287d18dc96037
|
65
sdk_container/src/third_party/portage-stable/dev-util/cscope/cscope-15.7a-r1.ebuild
vendored
Normal file
65
sdk_container/src/third_party/portage-stable/dev-util/cscope/cscope-15.7a-r1.ebuild
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# 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
|
||||||
|
}
|
34
sdk_container/src/third_party/portage-stable/dev-util/cscope/files/50cscope-gentoo.el
vendored
Normal file
34
sdk_container/src/third_party/portage-stable/dev-util/cscope/files/50cscope-gentoo.el
vendored
Normal file
@ -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)
|
23
sdk_container/src/third_party/portage-stable/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch
vendored
Normal file
@ -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
|
||||||
|
|
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/cscope-15.7a-r1
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/cscope-15.7a-r1
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile install postinst postrm prepare
|
||||||
|
DEPEND=>=sys-libs/ncurses-5.2 emacs? ( virtual/emacs ) sys-devel/flex sys-devel/bison >=sys-devel/autoconf-2.60
|
||||||
|
DESCRIPTION=Interactively examine a C program
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://cscope.sourceforge.net/
|
||||||
|
IUSE=emacs
|
||||||
|
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||||
|
LICENSE=BSD GPL-2
|
||||||
|
RDEPEND=>=sys-libs/ncurses-5.2 emacs? ( virtual/emacs )
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://sourceforge/cscope/cscope-15.7a.tar.bz2
|
||||||
|
_eclasses_=elisp-common 3322f14f031ddc95feccd9089c9adc59 eutils 33ef77a15337022e05342d2c772a7a5a multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29
|
||||||
|
_md5_=85f8ee6426f36f2946ecda24b25f77a8
|
Loading…
x
Reference in New Issue
Block a user