Gentoo Archives: gentoo-commits

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