Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cscope/files/, dev-util/cscope/
Date: Tue, 31 Jan 2017 11:56:27
Message-Id: 1485863776.3f5fdced2aeeb6d90c7a95b1bc7e0014dbaba268.grobian@gentoo
1 commit: 3f5fdced2aeeb6d90c7a95b1bc7e0014dbaba268
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 11:55:34 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 11:56:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f5fdced
7
8 dev-util/cscope: addp Prefix changes and keywords, bug #607712
9
10 Package-Manager: portage-2.3.3
11
12 dev-util/cscope/cscope-15.8a-r2.ebuild | 70 ++++++++++++++++++++++++++
13 dev-util/cscope/files/cscope-15.6-darwin.patch | 11 ++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/dev-util/cscope/cscope-15.8a-r2.ebuild b/dev-util/cscope/cscope-15.8a-r2.ebuild
17 new file mode 100644
18 index 00000000..a62cc63
19 --- /dev/null
20 +++ b/dev-util/cscope/cscope-15.8a-r2.ebuild
21 @@ -0,0 +1,70 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=6
27 +
28 +inherit autotools elisp-common toolchain-funcs
29 +
30 +DESCRIPTION="Interactively examine a C program"
31 +HOMEPAGE="http://cscope.sourceforge.net/"
32 +SRC_URI="mirror://sourceforge/cscope/${P}.tar.gz"
33 +
34 +LICENSE="BSD GPL-2+"
35 +SLOT="0"
36 +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"
37 +IUSE="emacs"
38 +
39 +RDEPEND=">=sys-libs/ncurses-5.2:0=
40 + emacs? ( virtual/emacs )"
41 +DEPEND="${RDEPEND}
42 + sys-devel/flex
43 + virtual/pkgconfig
44 + virtual/yacc"
45 +
46 +SITEFILE="50${PN}-gentoo.el"
47 +
48 +src_prepare() {
49 + eapply "${FILESDIR}/${PN}-15.7a-ocs-sysdir.patch" #269305
50 + eapply "${FILESDIR}/${PN}-15.6-darwin.patch"
51 + eapply_user
52 + mv configure.{in,ac} || die
53 + eautoreconf # prevent maintainer mode later on
54 +}
55 +
56 +src_configure() {
57 + econf --with-ncurses="${EPREFIX}"/usr
58 +}
59 +
60 +src_compile() {
61 + emake CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
62 + if use emacs; then
63 + cd "${S}"/contrib/xcscope || die
64 + elisp-compile *.el
65 + fi
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + if use emacs; then
72 + cd "${S}"/contrib/xcscope || die
73 + elisp-install ${PN} *.el *.elc
74 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
75 + dobin cscope-indexer
76 + fi
77 +
78 + cd "${S}"/contrib/webcscope || die
79 + docinto webcscope
80 + dodoc INSTALL TODO cgi-lib.pl cscope hilite.c
81 + docinto webcscope/icons
82 + dodoc icons/*.gif
83 +}
84 +
85 +pkg_postinst() {
86 + use emacs && elisp-site-regen
87 +}
88 +
89 +pkg_postrm() {
90 + use emacs && elisp-site-regen
91 +}
92
93 diff --git a/dev-util/cscope/files/cscope-15.6-darwin.patch b/dev-util/cscope/files/cscope-15.6-darwin.patch
94 new file mode 100644
95 index 00000000..e755f32
96 --- /dev/null
97 +++ b/dev-util/cscope/files/cscope-15.6-darwin.patch
98 @@ -0,0 +1,11 @@
99 +--- a/src/constants.h
100 ++++ b/src/constants.h
101 +@@ -103,7 +103,7 @@
102 + #define INCLUDES 8
103 + #define FIELDS 9
104 +
105 +-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
106 ++#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__
107 + # define TERMINFO 0 /* no terminfo curses */
108 + #else
109 + # define TERMINFO 1