You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
EAPI=5
|
||
|
|
||
|
inherit java-pkg-opt-2
|
||
|
|
||
|
# scala-ide -> scalaide
|
||
|
S_PACK="${PN/-/}-pack"
|
||
|
|
||
|
# scala-ide -> scala-SDK-${PV}
|
||
|
S_SDK="${PN%-*}-SDK-${PV}"
|
||
|
|
||
9 years ago
|
SRC_URI_AMD64="http://downloads.typesafe.com/${S_PACK}/${PV}-vfinal-luna-211-20151201/${S_SDK}-vfinal-2.11-linux.gtk.x86_64.tar.gz"
|
||
|
SRC_URI_X86="http://downloads.typesafe.com/${S_PACK}/${PV}-vfinal-luna-211-20151201/${S_SDK}-vfinal-2.11-linux.gtk.x86.tar.gz"
|
||
9 years ago
|
|
||
|
DESCRIPTION="The Scala IDE"
|
||
|
HOMEPAGE="http://www.scala-ide.org"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
SRC_URI="
|
||
|
amd64? ( ${SRC_URI_AMD64} )
|
||
|
x86? ( ${SRC_URI_X86} )
|
||
|
"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="BSD"
|
||
|
|
||
|
RDEPEND=">=virtual/jdk-1.6
|
||
|
|| (
|
||
|
dev-lang/scala
|
||
|
dev-lang/scala-bin
|
||
|
)
|
||
|
"
|
||
|
|
||
|
MY_D="/opt"
|
||
|
|
||
|
src_unpack() {
|
||
|
default
|
||
|
unpack ${A}
|
||
|
mv "${WORKDIR}"/eclipse "${WORKDIR}"/"${P}"
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
mv "${WORKDIR}"/"${P}"/eclipse "${WORKDIR}"/"${P}"/"${PN}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cd "${D}" || die
|
||
|
dodir "${MY_D}" || die
|
||
|
insinto "${MY_D}"
|
||
|
doins -r "${WORKDIR}"/"${P}" || die
|
||
|
insopts -m 0755
|
||
|
insinto "${MY_D}"/"${P}"
|
||
|
doins "${WORKDIR}"/"${P}"/"${PN}" || die
|
||
|
dosym ${MY_D}/${P}/${PN} /usr/bin/${PN} || die
|
||
|
}
|