Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ctags/
Date: Tue, 03 Nov 2015 12:49:41
Message-Id: 1446330938.0560dd3f04ca33404ba33bea476ba5ef61d112a3.mgorny@gentoo
1 commit: 0560dd3f04ca33404ba33bea476ba5ef61d112a3
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Sat Oct 24 18:40:03 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 31 22:35:38 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0560dd3f
7
8 dev-util/ctags: add a snapshot ebuild
9
10 Add a snapshot ebuild based on the "sourceforge" branch of universal-ctags,
11 which is based on the original exuberant-ctags SVN repository. This fixes
12 several upstream bugs, including crashes such as
13 http://sourceforge.net/p/ctags/bugs/359/, and obsoletes one Gentoo patch.
14
15 Signed-off-by: Marc Joliet <marcec <AT> gmx.de>
16
17 dev-util/ctags/Manifest | 1 +
18 dev-util/ctags/ctags-5.8_p20140919.ebuild | 65 +++++++++++++++++++++++++++++++
19 2 files changed, 66 insertions(+)
20
21 diff --git a/dev-util/ctags/Manifest b/dev-util/ctags/Manifest
22 index 92c8948..53e165a 100644
23 --- a/dev-util/ctags/Manifest
24 +++ b/dev-util/ctags/Manifest
25 @@ -1,2 +1,3 @@
26 DIST ctags-5.8.tar.gz 479927 SHA256 0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7 SHA512 981912cd335978cde22864e977947fc75326572fb29518e559cc4a8ac1edc84b3604165218a666e36353f17da4f89f8e967acdb88696f816748eb946d79eaa15 WHIRLPOOL 04506a4495025907ee5fe41b9c4ff104dd234fc9ef39bd594158b36c550bf511b6ab5980a98736f9857dc47b99f1718a7ae2928fd4a1d1c0b57dfd3d79fce2ea
27 +DIST ctags-5.8_p20140919.tar.gz 582289 SHA256 eebc85bd0206988250d9b24a7d02918bbca751259b086d5f53f31b4b39f571ee SHA512 3b6ad6e2d1f683dffe9e79c607f9cc222c4aa3c1f5113540cd18ea66d8f862917c9d849ee81d8b33a57ddd09749fa28fde74868d48479269a6e17b6c0451342d WHIRLPOOL 0c4008e914aed33097641fbb517f33e2ccf771a968ae3d1f6288422cdb634dda054ece11dd6204d624c9c78d4a36cecc4bb9d696d07f2bba24f3099aa3758f48
28 DIST ctags-ada-mode-4.3.11.tar.bz2 14060 SHA256 d25a3fd26b356adbd068f10a0b68691d36c154c04b96304b96386e169e4b6b57 SHA512 51c71e13ef658cd6682f04c94485315c4a702080ef2c7786fc9881b03c86f1c1d43aa1a69c452e4b0b2f7a78383804b66b159542cb4eae0cd309bc1ddbe2eb6e WHIRLPOOL 7e0ded8c97d3651e1afe48ec836697a4a19264baf3b203f6e98c134b88e3ab0eee7ac660789f5b955f0f827128996988694aa6c4bc78f18adf52724c5230da5d
29
30 diff --git a/dev-util/ctags/ctags-5.8_p20140919.ebuild b/dev-util/ctags/ctags-5.8_p20140919.ebuild
31 new file mode 100644
32 index 0000000..fbb97bb
33 --- /dev/null
34 +++ b/dev-util/ctags/ctags-5.8_p20140919.ebuild
35 @@ -0,0 +1,65 @@
36 +# Copyright 1999-2015 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +EAPI="5"
41 +
42 +inherit eutils autotools vcs-snapshot
43 +
44 +DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
45 +HOMEPAGE="http://ctags.sourceforge.net"
46 +# this commit is from the sourceforge branch, which is a git-svn clone of the
47 +# original exhuberant-ctags SVN repository
48 +SRC_URI="https://github.com/universal-ctags/ctags/archive/9fce9dd0afd3dd261c681825a61d3e9ffcaa7eea.tar.gz -> ${P}.tar.gz
49 + ada? ( mirror://sourceforge/gnuada/ctags-ada-mode-4.3.11.tar.bz2 )"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
54 +IUSE="ada"
55 +
56 +RDEPEND="app-eselect/eselect-ctags"
57 +
58 +src_prepare() {
59 + epatch "${FILESDIR}/${PN}-5.6-ebuilds.patch"
60 +
61 + # Bug #273697
62 + epatch "${FILESDIR}/${PN}-5.8-f95-pointers.patch"
63 +
64 + # enabling Ada support
65 + if use ada ; then
66 + cp "${WORKDIR}/${PN}-ada-mode-4.3.11/ada.c" "${S}" || die
67 + epatch "${FILESDIR}/${PN}-5.8-ada.patch"
68 + fi
69 +
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + econf \
75 + --with-posix-regex \
76 + --without-readlib \
77 + --disable-etags \
78 + --enable-tmpdir=/tmp
79 +}
80 +
81 +src_install() {
82 + emake prefix="${D}"/usr mandir="${D}"/usr/share/man install
83 +
84 + # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
85 + # rename ctags to exuberant-ctags (Mandrake does this also).
86 + mv "${D}"/usr/bin/{ctags,exuberant-ctags} || die
87 + mv "${D}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
88 +
89 + dodoc FAQ NEWS README EXTENDING.html
90 +}
91 +
92 +pkg_postinst() {
93 + eselect ctags update
94 + elog "You can set the version to be started by /usr/bin/ctags through"
95 + elog "the ctags eselect module. \"man ctags.eselect\" for details."
96 +}
97 +
98 +pkg_postrm() {
99 + eselect ctags update
100 +}