aboutsummaryrefslogtreecommitdiff
blob: 434ec1c4ed7dd6fad28827ef04b0a80edb829b45 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

inherit eutils

DESCRIPTION="The Servo web browser"
HOMEPAGE="https://servo-builds.s3.amazonaws.com/index.html"

MY_SRC_URI="https://servo-builds.s3.amazonaws.com/nightly/linux/servo-latest.tar.gz"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE=""

DEPEND=""
RDEPEND=""

S=${WORKDIR}

pkg_pretend() {
	# Protect against people using autounmask overzealously
	use amd64 || die "binary servo only works on amd64"
}

src_unpack() {
	wget "${MY_SRC_URI}" || die
	unpack ./"servo-latest.tar.gz"
}

src_install() {
	insinto /opt
	doins -r servo
	fperms 755 /opt/servo/servo
	make_wrapper servo "/opt/servo/servo" || die
}