summaryrefslogtreecommitdiff
path: root/dev-util/cscope
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/cscope
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/cscope')
-rw-r--r--dev-util/cscope/Manifest9
-rw-r--r--dev-util/cscope/cscope-15.8a-r1.ebuild64
-rw-r--r--dev-util/cscope/cscope-15.8a-r2.ebuild69
-rw-r--r--dev-util/cscope/files/50cscope-gentoo.el34
-rw-r--r--dev-util/cscope/files/cscope-15.6-darwin.patch11
-rw-r--r--dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch23
-rw-r--r--dev-util/cscope/metadata.xml36
7 files changed, 246 insertions, 0 deletions
diff --git a/dev-util/cscope/Manifest b/dev-util/cscope/Manifest
new file mode 100644
index 000000000000..7b6a0e8d6616
--- /dev/null
+++ b/dev-util/cscope/Manifest
@@ -0,0 +1,9 @@
+AUX 50cscope-gentoo.el 1442 SHA256 b3b1932cfa88a2ee44c45a2504c7ff25d684b0cb9bdd2fb5b2825a9cece97127 SHA512 63bb70766d69a85f78c43204e3539bcabaf5765f19703f6f8ad1dcc2bc076c1c20623a3120eeeaff89842fac9f17d5b3f17820780eab9844716cbcd6a138d384 WHIRLPOOL dbf489f70b0b7e0467d744b0c58199cf3d360a39725c7941e0a4a910fb428dd6c096b1eca59a25b514261180910bb576ff0463e1eb30bbede9de70743a6afc03
+AUX cscope-15.6-darwin.patch 288 SHA256 454af6b7b2d95c4ce269a9c91cab7e07a9a4b962baaa25b4ef0bd6a5a0f10a51 SHA512 24c3a876c34786c8ff2b51256c05da5c8334cc8befb3db40faba8af8f34abbec78062f1baf8e0dc0adf9f37731b10310e61cd46c08a6e78baa767234e483e7d5 WHIRLPOOL e17078beba3b3146f9ab4893ed42884d4b5ac32779ed523803ce3da321ab22f55764b09696c1898099163b9ea4cd7497fee716da161ebbd06d9a24f16b941998
+AUX cscope-15.7a-ocs-sysdir.patch 582 SHA256 844a82d4a491fd9a8da6b6efc5c40b67380dd30d392e68f64b9fa5d630efeb80 SHA512 aa296d8839da73b6838c450dfabc9782940a2f9c9cfba2f738993c777c1d4096688d79205ccec58dbf931b2faf45a4c3850ddbd894c7b7e616d18a0014cacfdb WHIRLPOOL 088ac3a29a38882178500415c738f6e3dbee47bf977ec166fc5d81f08dc4907fcfb6cae4215979237886eaf1cd173835b506d75241cc2998b1916756d070a554
+DIST cscope-15.8a.tar.gz 601232 SHA256 eb736ac40d5abebe8fa46820c7a8eccc8a17966a9a5f70375367b77177874d1e SHA512 bedba69820eca86420f6c975d1f267de67a457b182a3fe49720a2ae5ea48759c5b5b8db06ed5ffd85173ddf4a0f12ca722e87200dea4a2da7d43c8c711b00318 WHIRLPOOL e71554c813dc7d33de2ed20350f454485c9ca5bd69de45ca05f19a9376d03dffb59503b0e6229927985a0f61312d968d64675ea3dd2a988f8582e0d404c46c02
+EBUILD cscope-15.8a-r1.ebuild 1389 SHA256 a2d3d5312c6e1cd7cc38dbbb05385e515fa007db582351e3790111d94955e8d9 SHA512 d224219445dd71b6503ed432d8fab68f5ed0a6077ae2261d3792908a73ba6084ed3f0098a4883240989d2ee70c9e0a070407d4c8482742f4d06a8f15cdc06c06 WHIRLPOOL 5b4a3ab03631aa6377aa8e161a729b1e8c6b9e4bea073e816a350d9b2fec3841974ce0abaed894d576ebaee374f641683e86c394ea5410ff9435cc7357965130
+EBUILD cscope-15.8a-r2.ebuild 1601 SHA256 301b7d538e250b668daddaf535bb7ac8d2088e7ee0045c6a2fe095d2c4bb8027 SHA512 80dca153c05cfa98f2bcefd5901a977ac4492815b51a2f05ac31cebe32154b82a86d09e90c563cb96b0d63f9e3e45be4245d585412d77b53e32e4c02bc274d7a WHIRLPOOL 3be6a8c3c79ba7259b936b855c6c76e1c7d00731a08071b8aa0a318e968e8e24d40520a2de28a22a9f8682e8aea1cca7a9d2e59643eea508de7145846721b9ca
+MISC ChangeLog 3168 SHA256 2971e946e42678e16364d6a8eec341cfc6c3231439d3a49d203fc3a0653e4c26 SHA512 c8a0b32516826e9df2a655f8a4e54cd8416ec7e0dfede0fc4a2baa170d0beeae9f7b2297bcaede595ef6675fb02b060b4e50f01ea5dcce0fe24e8fdb1b6c7bdd WHIRLPOOL 1c219d071bad62c9366d9eb3c4aa99d29af3c80a8afb6297336eca63e391c77222ed1654b464580fcb5686eedb1543d14bc125b7daccea725798259989681106
+MISC ChangeLog-2015 18549 SHA256 990fde24127277c4002b51e0fe6f1b8f0c9cbe9efee68603dd682e692122d609 SHA512 df4e583e3c28b6c0c2a971f80812f39b32a1b0ecb68204e8ea1cbc7f1eb6af0c9a64c337a2c0457549e29989ebfd22ecf5f3075bfe3c2bf78142999e45a30aac WHIRLPOOL 37321ce4c76619290f0033166f3c653175528a355168acd16dcb8d5e5ea950a1e13a5bfc483b20a650ec5ce545559e0dc6a4699890632df89c7aa753a0c304c4
+MISC metadata.xml 1086 SHA256 252da1fbf009397b3b4701c048d8e461c88deee1e3ad4874726d9495a32f8bf0 SHA512 a8ebddecfe959cb05a992749f12183baba41950b39e197bd1db0528969dd4e1814dc159555b2e24d85249373da4b60bf05a7d86aac2d7b8969d6d2bed2ab59e1 WHIRLPOOL f1940da2c2f390f406ab5c997bc23234ab0374d288df8ba9762f4fd3ab1a4b2468d8f2eb4da439a16108f605e43ce96a89df14b7f95516dafefbf640b138fce2
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..96ee8532b7b7
--- /dev/null
+++ b/dev-util/cscope/cscope-15.8a-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<longdescription>
+ 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.
+</longdescription>
+<upstream>
+ <remote-id type="sourceforge">cscope</remote-id>
+</upstream>
+</pkgmetadata>