summaryrefslogtreecommitdiff
blob: f1047913200e65d9d8332342f4aaa050a57fe2d4 (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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils

DESCRIPTION="Bazel build system"
HOMEPAGE="http://bazel.io/"
SRC_URI="https://github.com/bazelbuild/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

RESTRICT="strip"

src_prepare() {
		epatch "${FILESDIR}/${P}-java-1.7.patch"
}

src_configure() {
        :
}

src_compile() {
        ./compile.sh
}

src_install() {
		mkdir -p ${ED}/usr/bin
		cp -a --reflink=auto output/${PN} ${ED}/usr/bin/

		mkdir -p ${ED}/usr/lib/${PN}
		tar -h -c base_workspace | tar -C ${ED}/usr/lib/${PN} -x
}