equal
deleted
inserted
replaced
|
1 # Copyright 1999-2014 Gentoo Foundation |
|
2 # Distributed under the terms of the GNU General Public License v2 |
|
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/android-studio/android-studio-0.5.9.135.1195882.ebuild,v 1.1 2014/06/01 21:21:27 tomwij Exp $ |
|
4 |
|
5 EAPI=5 |
|
6 inherit eutils versionator |
|
7 |
|
8 RESTRICT="strip" |
|
9 QA_TEXTRELS="opt/${P}/bin/libbreakgen.so" |
|
10 STUDIO_V=$(get_version_component_range 1-3) |
|
11 BUILD_V=$(get_version_component_range 4-5) |
|
12 DESCRIPTION="A new Android development environment based on IntelliJ IDEA" |
|
13 HOMEPAGE="http://developer.android.com/sdk/installing/studio.html" |
|
14 SRC_URI="http://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip" |
|
15 |
|
16 LICENSE="Apache-2.0" |
|
17 SLOT="0" |
|
18 IUSE="" |
|
19 KEYWORDS="~amd64 ~x86" |
|
20 |
|
21 DEPEND="app-arch/zip" |
|
22 RDEPEND=">=virtual/jdk-1.6" |
|
23 S=${WORKDIR}/${PN} |
|
24 |
|
25 src_install() { |
|
26 local dir="/opt/${PN}" |
|
27 |
|
28 insinto "${dir}" |
|
29 doins -r * |
|
30 fperms 755 "${dir}/bin/studio.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" |
|
31 |
|
32 newicon "bin/idea.png" "${PN}.png" |
|
33 make_wrapper ${PN} ${dir}/bin/studio.sh |
|
34 make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE" |
|
35 } |