1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools vcs-snapshot
9 DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
10 HOMEPAGE="http://ctags.sourceforge.net"
11 # this commit is from the sourceforge branch, which is a git-svn clone of the
12 # original exhuberant-ctags SVN repository
13 SRC_URI="https://github.com/universal-ctags/ctags/archive/9fce9dd0afd3dd261c681825a61d3e9ffcaa7eea.tar.gz -> ${P}.tar.gz
14 ada? ( mirror://sourceforge/gnuada/ctags-ada-mode-4.3.11.tar.bz2 )"
18 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
21 RDEPEND="app-eselect/eselect-ctags"
24 epatch "${FILESDIR}/${PN}-5.6-ebuilds.patch"
27 epatch "${FILESDIR}/${PN}-5.8-f95-pointers.patch"
29 # enabling Ada support
31 cp "${WORKDIR}/${PN}-ada-mode-4.3.11/ada.c" "${S}" || die
32 epatch "${FILESDIR}/${PN}-5.8-ada.patch"
47 emake prefix="${D}"/usr mandir="${D}"/usr/share/man install
49 # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
50 # rename ctags to exuberant-ctags (Mandrake does this also).
51 mv "${D}"/usr/bin/{ctags,exuberant-ctags} || die
52 mv "${D}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
54 dodoc FAQ NEWS README EXTENDING.html
59 elog "You can set the version to be started by /usr/bin/ctags through"
60 elog "the ctags eselect module. \"man ctags.eselect\" for details."