dev-lang/scala-bin: minor cleanup.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 19 Dec 2016 14:50:18 +0000 (15:50 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 19 Dec 2016 14:50:18 +0000 (15:50 +0100)
Package-Manager: portage-2.3.0

dev-lang/scala-bin/scala-bin-2.11.8.ebuild

index e89885f475b1e1ea56f5fd21290e922a38fc1cd2..6c3ec37b22b76e13a922761f3083082676ea3f8d 100644 (file)
@@ -1,26 +1,29 @@
 # Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
-
 EAPI=6
 
 JAVA_PKG_IUSE="doc"
 
 inherit java-pkg-2
 
+MY_PN="${PN%-*}"
+MY_P="${MY_PN}-${PV}"
+
 DESCRIPTION="The Scala Programming Language"
 HOMEPAGE="http://scala.epfl.ch/"
-SRC_URI="http://downloads.typesafe.com/scala/${PV}/scala-${PV}.tgz"
+SRC_URI="http://downloads.lightbend.com/${MY_PN}/${PV}/${MY_P}.tgz"
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="doc"
 
-RDEPEND=">=virtual/jre-1.6
+RDEPEND="
+       >=virtual/jre-1.6
        !dev-lang/scala"
 
-S="${WORKDIR}/scala-${PV}"
+S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        default