# 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 }