Gentoo Archives: gentoo-commits

From: Naohiro Aota <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/global/
Date: Tue, 31 Dec 2019 02:40:41
Message-Id: 1577758701.1dfb69d80745eb29ff5a506702eac5d8f9885d28.naota@gentoo
1 commit: 1dfb69d80745eb29ff5a506702eac5d8f9885d28
2 Author: Naohiro Aota <naota <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 02:12:09 2019 +0000
4 Commit: Naohiro Aota <naota <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 02:18:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dfb69d8
7
8 dev-util/global: version bump
9
10 Closes: https://bugs.gentoo.org/701376
11 Signed-off-by: Naohiro Aota <naota <AT> gentoo.org>
12
13 dev-util/global/Manifest | 1 +
14 dev-util/global/global-6.6.4.ebuild | 96 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 97 insertions(+)
16
17 diff --git a/dev-util/global/Manifest b/dev-util/global/Manifest
18 index dca545d4d39..902af58d5dc 100644
19 --- a/dev-util/global/Manifest
20 +++ b/dev-util/global/Manifest
21 @@ -1,2 +1,3 @@
22 DIST global-6.3.1.tar.gz 1369634 BLAKE2B 8d93222ccbb4a45c0b9f114cd84b342b3f6ab99f7e0bbc18bfe00912ecd53f606be9d32fce1570e027009fd1fbe4752f03dd19c183dfda438d67a329808a6b45 SHA512 83becd6cda06f8da17ea0c701bb135523ff48cec73b233d24566387d11a35c0b42f410b62753838e2b364a5a485cac033b4aef1159cc6f4cdeca4a7b6c5bb4d6
23 DIST global-6.5.7.tar.gz 2940567 BLAKE2B e0c692e09f9f7ea64ecbe47e18691efd3c641f28826e19751fb812690cd9d64a53af03055de9ec8199637da46dbd6084fec16380d7f295c83ed77553a8e301fd SHA512 0d33f718839e5e00bdd6d042b415a69c5e1f232d843610870505f8f20635b445810149b1b84ea8b77881f5f64814783ebe3cdcab2f84b8a085223b64293a9045
24 +DIST global-6.6.4.tar.gz 2988969 BLAKE2B 784087537094d27c10d1f2bc992e799c35ab6ce3b86e041c31279e6954b203e80676b3158ba95e7957456b75a213d70998aae9047836cd4d388212236f05a081 SHA512 cb4ed451d3aaf47c4c59cdc3f74c97d3171108177d4846b5dac843589710e66d87c9d7bbe080c3770329e8e40105ac52dcafb4609257347593cca4d94711f483
25
26 diff --git a/dev-util/global/global-6.6.4.ebuild b/dev-util/global/global-6.6.4.ebuild
27 new file mode 100644
28 index 00000000000..e45daf3d4f7
29 --- /dev/null
30 +++ b/dev-util/global/global-6.6.4.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools elisp-common
38 +
39 +DESCRIPTION="tag system to find an object location in various sources"
40 +HOMEPAGE="https://www.gnu.org/software/global/global.html"
41 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +IUSE="doc emacs vim"
47 +
48 +RDEPEND="
49 + sys-libs/ncurses
50 + emacs? ( >=app-editors/emacs-23.1:* )
51 + vim? ( || (
52 + app-editors/vim
53 + app-editors/gvim
54 + )
55 + )
56 + || (
57 + dev-libs/libltdl:0
58 + sys-devel/libtool:2
59 + )"
60 +
61 +DEPEND="${DEPEND}
62 + doc? (
63 + app-text/texi2html
64 + sys-apps/texinfo
65 + )"
66 +
67 +SITEFILE="50gtags-gentoo.el"
68 +
69 +PATCHES=( "${FILESDIR}/${PN}-6.2.9-tinfo.patch" )
70 +
71 +DOCS=( AUTHORS FAQ NEWS README THANKS )
72 +
73 +src_prepare() {
74 + default
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + econf \
80 + "$(use_with emacs lispdir "${SITELISP}/${PN}")"
81 +}
82 +
83 +src_compile() {
84 + if use doc; then
85 + texi2pdf -q -o doc/global.pdf doc/global.texi
86 + texi2html -o doc/global.html doc/global.texi
87 + fi
88 +
89 + if use emacs; then
90 + elisp-compile *.el
91 + fi
92 +
93 + emake
94 +}
95 +
96 +src_install() {
97 + default
98 +
99 + insinto /etc
100 + doins gtags.conf
101 +
102 + if use vim; then
103 + insinto /usr/share/vim/vimfiles/plugin
104 + doins gtags.vim
105 + fi
106 +
107 + if use emacs; then
108 + elisp-install ${PN} *.{el,elc}
109 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
110 + fi
111 +
112 + if use doc; then
113 + # doc/global.pdf is generated if tex executable (e.g. /usr/bin/tex) is available.
114 + [[ -f doc/global.pdf ]] && DOCS+=( doc/global.pdf )
115 + fi
116 +
117 + einstalldocs
118 + find "${ED}" -name '*.la' -type f -delete || die
119 +}
120 +
121 +pkg_postinst() {
122 + use emacs && elisp-site-regen
123 +}
124 +
125 +pkg_postrm() {
126 + use emacs && elisp-site-regen
127 +}