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

EAPI="4"

MY_PN='processing'
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Visual context programming language"
HOMEPAGE="https://www.processing.org/"
SRC_URI="amd64? ( http://download.processing.org/${MY_P}-linux64.tgz )"

LICENSE="all-rights-reserved"  # actually not, TODO
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}/${MY_P}"
RESTRICT="strip"

src_install() {
	local dest=/opt/${MY_P}

	dodir ${dest}
	insinto ${dest}
	doins -r .

	dodir /usr/bin
	for command in processing processing-java ; do
		dosym ${dest}/${command} /usr/bin/${command} || die
	done

	# Cannot use fperms with wildcards, it seems
	chmod a+x "${D}"/${dest}/java/bin/* || die
	chmod a+x "${D}"/${dest}/processing* || die
}