diff options
author | Mark Wright <gienah@gentoo.org> | 2014-10-06 05:51:40 +0000 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2014-10-06 05:51:40 +0000 |
commit | add776a516f8e24c859b2f86e4d55a6ca21c5134 (patch) | |
tree | d4bec5cdc3b059247a53318325f3fe45bb26974e /dev-lang/scala | |
parent | version bump (bug #524464) (diff) | |
download | gentoo-2-add776a516f8e24c859b2f86e4d55a6ca21c5134.tar.gz gentoo-2-add776a516f8e24c859b2f86e4d55a6ca21c5134.tar.bz2 gentoo-2-add776a516f8e24c859b2f86e4d55a6ca21c5134.zip |
Bug 517166 - dev-lang/scala-2.11.1 - Unable to resolve artifact: Missing: biz.aQute:bnd:jar:1.50.0. Thanks to Christian Strahl for reporting, mkaama for helping. sed the build.xml to add in a localRepository pointing to $WORKDIR/.m2/repository, and sed all of the artifact:dependencies to configure them to use this localRepository. The localRepository is provided with the ${P}-maven-deps.tar.gz file.
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'dev-lang/scala')
-rw-r--r-- | dev-lang/scala/ChangeLog | 11 | ||||
-rw-r--r-- | dev-lang/scala/scala-2.11.1.ebuild | 21 | ||||
-rw-r--r-- | dev-lang/scala/scala-2.11.2.ebuild | 23 |
3 files changed, 37 insertions, 18 deletions
diff --git a/dev-lang/scala/ChangeLog b/dev-lang/scala/ChangeLog index 3345bb69184a..8ab0d30dc664 100644 --- a/dev-lang/scala/ChangeLog +++ b/dev-lang/scala/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-lang/scala # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.39 2014/10/06 03:26:42 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.40 2014/10/06 05:51:40 gienah Exp $ + + 06 Oct 2014; Mark Wright <gienah@gentoo.org> scala-2.11.1.ebuild, + scala-2.11.2.ebuild: + Bug 517166 - dev-lang/scala-2.11.1 - Unable to resolve artifact: Missing: + biz.aQute:bnd:jar:1.50.0. Thanks to Christian Strahl for reporting, mkaama for + helping. sed the build.xml to add in a localRepository pointing to + $WORKDIR/.m2/repository, and sed all of the artifact:dependencies to configure + them to use this localRepository. The localRepository is provided with the ${P + }-maven-deps.tar.gz file. 06 Oct 2014; Mark Wright <gienah@gentoo.org> -files/scala-2.10.3-maven-deps.patch, scala-2.10.3.ebuild, diff --git a/dev-lang/scala/scala-2.11.1.ebuild b/dev-lang/scala/scala-2.11.1.ebuild index abc7a284b310..cfc607b0e2db 100644 --- a/dev-lang/scala/scala-2.11.1.ebuild +++ b/dev-lang/scala/scala-2.11.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.11.1.ebuild,v 1.1 2014/07/08 15:17:10 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.11.1.ebuild,v 1.2 2014/10/06 05:51:40 gienah Exp $ EAPI="5" @@ -56,6 +56,7 @@ HOMEPAGE="http://www.scala-lang.org/" SRC_URI="!binary? ( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz ${JURI[@]} + http://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz ) binary? ( http://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )" @@ -66,9 +67,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos" IUSE="binary emacs" COMMON_DEP="dev-java/ant-core:0 - dev-java/bndlib:0 - dev-java/hawtjni-runtime:0 - dev-java/junit:4" + dev-java/hawtjni-runtime:0" DEPEND="${COMMON_DEP} java-virtuals/jdk-with-com-sun:0 @@ -118,7 +117,7 @@ src_unpack() { } java_prepare() { - java-pkg_getjars ant-core,bndlib,hawtjni-runtime,junit-4 + java-pkg_getjars ant-core,hawtjni-runtime if ! use binary; then local a @@ -135,9 +134,15 @@ java_prepare() { epatch "${FILESDIR}/${P}-no-git.patch" # Note: to bump scala, some things to try are: # 1. update all the sha1s in JURI - # 2. try emerge scala. Check if it downloads more stuff in src_compile to ${WORDIR}/.m2 - # 3. If it does download more stuff to ${WORDIR}/.m2, then there was some stuff to handle that in - # the scala-2.10.3 ebuild. + # 2. remove the http://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz from SRC_URI + # 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORDIR}/.m2 + # or /var/tmp/portage/.m2 or /root/.m2 + # 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI. + sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \ + -e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \ + -e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \ + -i "${S}/build.xml" \ + || die "Could not change location of .m2 maven download directory in ${S}/build.xml" fi } diff --git a/dev-lang/scala/scala-2.11.2.ebuild b/dev-lang/scala/scala-2.11.2.ebuild index 0b565b1494c2..e86ac14d6a31 100644 --- a/dev-lang/scala/scala-2.11.2.ebuild +++ b/dev-lang/scala/scala-2.11.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.11.2.ebuild,v 1.1 2014/10/04 12:14:50 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.11.2.ebuild,v 1.2 2014/10/06 05:51:40 gienah Exp $ EAPI="5" @@ -13,7 +13,7 @@ inherit eutils check-reqs java-pkg-2 java-ant-2 versionator MY_P="${PN}-sources-${PV}" # creating the binary: -# JAVA_PKG_FORCE_VM="$available-1.8" USE="doc source" ebuild scala-*.ebuild compile +# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile # cd $WORDKIR # tar -cjf scala-2.11.2-gentoo-binary.tar.bz2 scala-2.11.2/build/pack/bin \ # scala-2.11.2/build/pack/lib/ scala-2.11.2/build/pack/man \ @@ -56,6 +56,7 @@ HOMEPAGE="http://www.scala-lang.org/" SRC_URI="!binary? ( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz ${JURI[@]} + http://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz ) binary? ( http://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )" @@ -66,9 +67,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos" IUSE="binary emacs" COMMON_DEP="dev-java/ant-core:0 - dev-java/bndlib:0 - dev-java/hawtjni-runtime:0 - dev-java/junit:4" + dev-java/hawtjni-runtime:0" DEPEND="${COMMON_DEP} java-virtuals/jdk-with-com-sun:0 @@ -118,7 +117,7 @@ src_unpack() { } java_prepare() { - java-pkg_getjars ant-core,bndlib,hawtjni-runtime,junit-4 + java-pkg_getjars ant-core,hawtjni-runtime if ! use binary; then local a @@ -135,9 +134,15 @@ java_prepare() { epatch "${FILESDIR}/${P}-no-git.patch" # Note: to bump scala, some things to try are: # 1. update all the sha1s in JURI - # 2. try emerge scala. Check if it downloads more stuff in src_compile to ${WORDIR}/.m2 - # 3. If it does download more stuff to ${WORDIR}/.m2, then there was some stuff to handle that in - # the scala-2.10.3 ebuild. + # 2. remove the http://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz from SRC_URI + # 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORDIR}/.m2 + # or /var/tmp/portage/.m2 or /root/.m2 + # 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI. + sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \ + -e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \ + -e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \ + -i "${S}/build.xml" \ + || die "Could not change location of .m2 maven download directory in ${S}/build.xml" fi } |