scala-ide-4.3.0.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit java-pkg-opt-2
  5. # scala-ide -> scalaide
  6. S_PACK="${PN/-/}-pack"
  7. # scala-ide -> scala-SDK-${PV}
  8. S_SDK="${PN%-*}-SDK-${PV}"
  9. 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"
  10. SRC_URI_X86="http://downloads.typesafe.com/${S_PACK}/${PV}-vfinal-luna-211-20151201/${S_SDK}-vfinal-2.11-linux.gtk.x86.tar.gz"
  11. DESCRIPTION="The Scala IDE"
  12. HOMEPAGE="http://www.scala-ide.org"
  13. KEYWORDS="~amd64 ~x86"
  14. SRC_URI="
  15. amd64? ( ${SRC_URI_AMD64} )
  16. x86? ( ${SRC_URI_X86} )
  17. "
  18. SLOT="0"
  19. LICENSE="BSD"
  20. RDEPEND=">=virtual/jdk-1.6
  21. || (
  22. dev-lang/scala
  23. dev-lang/scala-bin
  24. )
  25. "
  26. MY_D="/opt"
  27. src_unpack() {
  28. default
  29. unpack ${A}
  30. mv "${WORKDIR}"/eclipse "${WORKDIR}"/"${P}"
  31. }
  32. src_prepare() {
  33. mv "${WORKDIR}"/"${P}"/eclipse "${WORKDIR}"/"${P}"/"${PN}"
  34. }
  35. src_install() {
  36. cd "${D}" || die
  37. dodir "${MY_D}" || die
  38. insinto "${MY_D}"
  39. doins -r "${WORKDIR}"/"${P}" || die
  40. insopts -m 0755
  41. insinto "${MY_D}"/"${P}"
  42. doins "${WORKDIR}"/"${P}"/"${PN}" || die
  43. dosym ${MY_D}/${P}/${PN} /usr/bin/${PN} || die
  44. }