equal
deleted
inserted
replaced
|
1 # Copyright 1999-2015 Gentoo Foundation |
|
2 # Distributed under the terms of the GNU General Public License v2 |
|
3 # $Header: $ |
|
4 |
|
5 EAPI=5 |
|
6 inherit eutils versionator |
|
7 |
|
8 RESTRICT="strip" |
|
9 QA_PREBUILT="opt/${P}/bin/libbreakgen.so" |
|
10 STUDIO_V=$(get_version_component_range 1-3) |
|
11 BUILD_V=$(get_version_component_range 4-5) |
|
12 if [[ $(get_version_component_count) -gt 5 ]]; then |
|
13 STUDIO_V="${STUDIO_V}$-(get_version_component_range 6-)" |
|
14 fi |
|
15 # preview |
|
16 STUDIO_V="${STUDIO_V}b2" |
|
17 |
|
18 DESCRIPTION="A new Android development environment based on IntelliJ IDEA" |
|
19 HOMEPAGE="http://developer.android.com/sdk/installing/studio.html" |
|
20 SRC_URI="http://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip" |
|
21 |
|
22 LICENSE="Apache-2.0" |
|
23 SLOT="0" |
|
24 IUSE="selinux" |
|
25 KEYWORDS="~amd64 ~x86" |
|
26 |
|
27 DEPEND="app-arch/zip" |
|
28 RDEPEND=">=virtual/jdk-1.7 |
|
29 selinux? ( sec-policy/selinux-android )" |
|
30 S=${WORKDIR}/${PN} |
|
31 |
|
32 src_install() { |
|
33 local dir="/opt/${PN}" |
|
34 |
|
35 insinto "${dir}" |
|
36 doins -r * |
|
37 fperms 755 "${dir}/bin/studio.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" |
|
38 |
|
39 newicon "bin/idea.png" "${PN}.png" |
|
40 make_wrapper ${PN} ${dir}/bin/studio.sh |
|
41 make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE" |
|
42 } |