blob: 07804692a3a21a1682232e9f7db1162304288793 (
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
42
43
44
45
46
47
48
49
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils
DESCRIPTION=""
HOMEPAGE=""
SRC_URI="amd64? ( https://gsdview.appspot.com/dart-editor-archive-integration/${PV}/dart-editor-linux.gtk.x86_64.zip )
x86? ( https://gsdview.appspot.com/dart-editor-archive-integration/${PV}/dart-editor-linux.gtk.x86.zip )"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}"/dart
pkg_setup() {
enewgroup dart
}
src_install() {
insinto /opt/dart-editor
doins -r about_files configuration dart-sdk features plugins samples .eclipseproduct DartEditor.ini about.html icon.xpm
insopts -m 755
doins DartEditor
insinto /opt/dart-editor/dart-sdk/bin
doins dart-sdk/bin/*
insinto /opt/dart-editor/dart-sdk/chromium
doins dart-sdk/chromium/{DumpRenderTree,chrome-wrapper,chrome_sandbox,nacl_helper_bootstrap,nacl_irt_x86_32.nexe,xdg-mime,xdg-settings}
fowners root:dart /opt/dart-editor/samples || die
fperms 0775 /opt/dart-editor/samples || die
echo "PATH=\"/opt/dart-editor\"" > "${T}/80${PN}" || die
doenvd "${T}/80${PN}" || die
make_desktop_entry "/opt/dart-editor/DartEditor" "Dart Editor" "/opt/dart-editor/icon.xpm" || die
}
|