summaryrefslogtreecommitdiff
path: root/dev-embedded/arduino-ctags/arduino-ctags-20161123-r2.ebuild
blob: 77e78545e38479793aba133b468dcd8aa4af64ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

MY_COMMIT_HASH="abc8fca7499f44c725122881cd380a88c37abe0e"
DESCRIPTION="Arduino private fork of dev-util/ctags"
HOMEPAGE="https://github.com/arduino/ctags"
SRC_URI="https://github.com/arduino/ctags/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/ctags-${MY_COMMIT_HASH}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"

PATCHES=(
	"${FILESDIR}"/${PN}-20161123-gcc-unused-attribute.patch
	"${FILESDIR}"/${PN}-20161123-implicit-exit.patch
	"${FILESDIR}"/${PN}-20161123-implicit-int.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		--disable-readlib \
		--disable-etags \
		--enable-tmpdir="${EPREFIX}"/tmp
}

src_install() {
	# This package compiles into a "ctags" executable, but don't want to clash into
	# actually legitimate ctags implementations.
	mv ctags arduino-ctags
	dobin arduino-ctags
}