summaryrefslogtreecommitdiff
blob: e3a1a7c80dab36d5cc8940499214b343627f9b92 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=4

EGIT_REPO_URI="https://github.com/rwos/${PN}.git"
inherit git-r3

DESCRIPTION="A silly git launcher, basically. Inspired by sl"
HOMEPAGE="http://r-wos.org/hacks/gti"
SRC_URI=""

LICENSE="MIT"
SLOT="0"
[[ ${PV} == 9999 ]] || \
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE=""

DEPEND="dev-vcs/git"
RDEPEND="${DEPEND}"

src_prepare() {
	# fix the makefile
	sed -i \
		-e "s:CC=:CC?=:g" \
		-e "s:CFLAGS=:CFLAGS?=:g" \
		-e "/-strip/d" \
		-e 's:$(CC):$(CC) $(LDFLAGS):' \
		Makefile
}

src_install() {
	dobin gti
}