dev-util/android-studio/android-studio-1.4.0.10.141.2288178.ebuild
author Da Risk <da_risk@geekorum.com>
Thu, 01 Oct 2015 10:49:57 +0200
changeset 183 4d249eea54fc
permissions -rw-r--r--
dev-util/android-studio: add stable release of 1.4.0 Remove old versions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
183
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     1
# Copyright 1999-2015 Gentoo Foundation
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     2
# Distributed under the terms of the GNU General Public License v2
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     3
# $Id$
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     4
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     5
EAPI=5
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     6
inherit eutils versionator
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     7
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     8
RESTRICT="strip"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     9
QA_PREBUILT="opt/${PN}/bin/libbreakgen.so"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    10
if [[ $(get_version_component_count) -eq 6 ]]; then
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    11
	STUDIO_V=$(get_version_component_range 1-4)
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    12
	BUILD_V=$(get_version_component_range 5-6)
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    13
else
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    14
	STUDIO_V=$(get_version_component_range 1-3)
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    15
	BUILD_V=$(get_version_component_range 4-5)
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    16
fi
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    17
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    18
DESCRIPTION="A new Android development environment based on IntelliJ IDEA"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    19
HOMEPAGE="http://developer.android.com/sdk/installing/studio.html"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    20
SRC_URI="https://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    21
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    22
LICENSE="Apache-2.0"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    23
SLOT="0"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    24
IUSE="selinux"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    25
KEYWORDS="~amd64 ~x86"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    26
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    27
DEPEND="app-arch/zip"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    28
RDEPEND=">=virtual/jdk-1.7
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    29
	selinux? ( sec-policy/selinux-android )
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    30
	>=app-arch/bzip2-1.0.6-r4[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    31
	>=dev-libs/expat-2.1.0-r3[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    32
	>=dev-libs/libffi-3.0.13-r1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    33
	>=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    34
	>=media-libs/freetype-2.5.5[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    35
	>=media-libs/libpng-1.2.51[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    36
	>=media-libs/mesa-10.2.8[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    37
	>=sys-libs/ncurses-5.9-r3[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    38
	>=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    39
	>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    40
	>=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    41
	>=x11-libs/libXdamage-1.1.4-r1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    42
	>=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    43
	>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    44
	>=x11-libs/libXfixes-5.0.1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    45
	>=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    46
	>=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    47
	>=x11-libs/libdrm-2.4.46[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    48
	>=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    49
	>=x11-libs/libxshmfence-1.1[abi_x86_32(-)]"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    50
S=${WORKDIR}/${PN}
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    51
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    52
src_install() {
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    53
	local dir="/opt/${PN}"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    54
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    55
	insinto "${dir}"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    56
	doins -r *
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    57
	fperms 755 "${dir}/bin/studio.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    58
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    59
	newicon "bin/studio.png" "${PN}.png"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    60
	make_wrapper ${PN} ${dir}/bin/studio.sh
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    61
	make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE"
4d249eea54fc dev-util/android-studio: add stable release of 1.4.0
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    62
}