diff options
author | Mark Wright <gienah@gentoo.org> | 2016-02-06 20:29:38 +1100 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2016-02-06 20:29:38 +1100 |
commit | 105968862cba170d0770bce8f3eb4a3d1a158ca2 (patch) | |
tree | ff3b0d8d000b937370d67b43d0dbfbcb3b5c31a0 /dev-java/sbt | |
parent | app-arch/arj: Bump PATCH_LEVEL to 14 (diff) | |
download | gentoo-105968862cba170d0770bce8f3eb4a3d1a158ca2.tar.gz gentoo-105968862cba170d0770bce8f3eb4a3d1a158ca2.tar.bz2 gentoo-105968862cba170d0770bce8f3eb4a3d1a158ca2.zip |
dev-java/sbt: Bump to 0.13.10_rc2
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-java/sbt')
-rw-r--r-- | dev-java/sbt/Manifest | 6 | ||||
-rw-r--r-- | dev-java/sbt/sbt-0.13.10_rc2.ebuild | 154 |
2 files changed, 160 insertions, 0 deletions
diff --git a/dev-java/sbt/Manifest b/dev-java/sbt/Manifest index 9436c22ed4f7..71dcd3fba684 100644 --- a/dev-java/sbt/Manifest +++ b/dev-java/sbt/Manifest @@ -1,6 +1,12 @@ +DIST sbt-0.13.10_rc2-gentoo-binary.tar.bz2 66131831 SHA256 863cf71b32439e452e1d5400a8ec1ac06a9c29852c7eafb79ce9ce2b1288a321 SHA512 1b25c47fa01462bdbd1a88d5b441226ba8261f83a4ef6ce2832c5e752cd90e8eacf6f0272505f2e5330f1e9b3bedb71e4d83da81952e08d8144a52e22dc26008 WHIRLPOOL b300931a4b516f7aa4f5984ea17e9d2d022e52dd4d4468b777b8b88c949d22c2eb9702c3883ef0a9eff6fd52542668c2ba041d4f12ab56603c6fcfe444d9c9bb +DIST sbt-0.13.10_rc2-ivy2-deps.tar.bz2 139970194 SHA256 b3ef28fbc330d8b8218712a4ff6ad11a3ed67c618b99df1845edb17d67e5ca3a SHA512 e7023798a303e37b282fe08590516031f7952d4df6d2aa4792c727e9d50000e1e1c4f9e97d656abc32f84f8b0df9b2de7e15e29bb2c7ed648efcad8ae432cff4 WHIRLPOOL 48860777b2ffabbdf33800a3897727b91e7487430138177b39174276506bcef2b4c810c1858bfa158ee83953d4de8e61085022037518fbb733339b5e7c0a4801 +DIST sbt-0.13.10_rc2-sbt-deps.tar.bz2 38778951 SHA256 f2be26d49010fa521b4a0e9a112c465107838f5250883de4bc132926ccd685fa SHA512 c929562d18e2e5032d502556a960b25fa707c2893172425c2c3b5365a86ccd63729ce8795f12fd1aced5b39267f6db4b8e9d0c1eaf00ba20b071fac9044157f8 WHIRLPOOL b75096e0b2429a104b548e601e06fc5b3e452bda39d4fc434d8f98137275899a5c40ac2bb528324dd621eef4aa17e952648c9698cc4eeedd6e8aeb391509db16 +DIST sbt-0.13.10_rc2-src.tar.bz2 35017169 SHA256 c34051649a8c998a98d5ff401e622d6c3e54fc15b6e1aeac7e223c5ff8ce54aa SHA512 7e734fdecc631cc0307c09e6706b761dd55d1cb6a03aa29a0cd5826d86bfa44dde29ebc05bca7f947351a6b6510caef51d0c3df2b07d60895b41f074c319d1b8 WHIRLPOOL de34b47a87af7f77a2ee00230901cf21015312359f29cff8689692b7c9d2f148a8233224a3b5b488c63a55cde695b0928000938e6608c1437e4be2287ddc026d +DIST sbt-0.13.10_rc2-test-deps.tar.bz2 266656 SHA256 62d0ed5b43898a42696f8b148e933d70871c2f75bf3f6b20ac39cea00b327f17 SHA512 7e30459f010eb9c8ffba8e8e4da90bcb7d03cdd4347e63d0207a9bf9b9ddeb38b68d2798c98452ea81bcddc9973e287066603ce06ebadf56c006f25e76fdb57d WHIRLPOOL e4c06db36cc2b0e4417a81c961bc470caa169e358734ab7f7b71103547286704e6cfd104fe342afd7df0270300073a695ee35342944e25a65e96bd036bb5a953 DIST sbt-0.13.8-gentoo-binary.tar.bz2 1048674 SHA256 4a2b22c9d9fbe922d5a5336d88ca21f18b2545850fec16485c824aee43df53e1 SHA512 9a5707601387d604b746ea21145a3c7735dd4b6d36541111b47519b66e5abc929ecc96ff52e144ed39a3db947204a1956e19394a1848e3fd8904f9a98ec24816 WHIRLPOOL 4fb1bde15ab57260a25b0a4a1634122af2e2b9d6cd35d3a9c693d9bba6c398bee489f05bf29a763a60d7a04f54823bdd9fc54ec5a2809900b28f890930649fc7 DIST sbt-0.13.8-ivy2-deps.tar.bz2 124672043 SHA256 565ba7434316a3ab2f61f58b4bc57317e5c2ae7c9ee95061c39cfddd5767a355 SHA512 47b2f235b7d5883086f8246265e9081a50dcdaede43550a1c0de1c85a9ebf24b47e1331b662aa5c0faebaf22a37849ffb2c1f25a7592c461e62f582984ad4b70 WHIRLPOOL f92b2cd087d51f0ae31d5ac93d1dca7214ace6df8c06b050287007f05697e81ac14758368730e6df45043ba80167b9581e636b0364d5ba3a5c7352fafd7e5007 DIST sbt-0.13.8-sbt-deps.tar.bz2 88352931 SHA256 d0eab3858f389e201277d1ead68352172830b17dd8343f09e0e63e4880a5e20e SHA512 a6e886f5f18821c26df28a2e8cf2773b4841854fc1bd4dfa43924089966020da5affd635da96a8e13efc7c06be6a5bf53697ca91f5fbf41efcdf8dda00e8428d WHIRLPOOL 54744676b33b11ffb350b5a543986efd5cd629594ce4bac5154a78df233619a92a2a4842659acf9c15533e764d24333183372f136b3b1f7463bbe55347c41b8f DIST sbt-0.13.8-src.tar.bz2 32766054 SHA256 5225864c54e5718dc68cfcd554a7215bd028947d61ed9522e2ad9d0a19cbdd83 SHA512 f6c834c6294c957e8d5b89a3a616f23a980cca1f882695d09a6e0080d1013227ba3bac86942b39c13e49fb6ac9fb72c3478df24ec8549b8b9812ea352932fff8 WHIRLPOOL 5054578505fe35b6c5f269c72b921920cf232a1efed18da5cd1833457d46f4e4342988be46539001b4dcfcfc6c807785915f4d0791af939dc83018ffcc03effe DIST sbt-0.13.8-test-deps.tar.bz2 40704285 SHA256 7cb252d69b5868905e0592df7ef9a83ce09f75cb10a72bc9dcd649286bb524a3 SHA512 a79ea9c81abc436168f04f674ffef4fee6f7c7a5dede5a3060e2e2bd9a9863dd5f1c7b31c02f3823fb5a67b2bb43c44d306efb59468f625e4db277cface47cd0 WHIRLPOOL 268ea150c5ca2fe1988317e0616262de814e2aa7213f64b99baf389c3e67e2093a04765ac27f08bd585fe33c77d9dd8c7a0ba8d3bd77d937d9a7260dab72c23a DIST sbt-launch-0.13.7.jar 1208385 SHA256 6570bb03df6138ffaa7ac0bbe35eb4ea79062d1146b6929c75cf238d14dd9158 SHA512 ddc62dd85b552a7157ae0c19d0161d77a929adeb4ea81042a3a38c3d979e32674b9174aef47d458e9a7c8ea7942c08f1a7177b9bc739f7cd9e0484aef9915204 WHIRLPOOL 63841a401739aa3eab24632fcec41dc5c186502f4b80fe782106a0c6448b1da2321bf2a7a0b0f83473f7c073cce2ac8f5f85440d955acc191a73bd95200cb2cf +DIST sbt-launch-0.13.9.jar 1210236 SHA256 06ca058181d73f4eceb193b97b02bc9fb02df0fb0fa3acb142cc425ffefb2fb3 SHA512 5d404cdb81ad5f64d3ca75695246f452bccb2200ce28333f0e37eed3476feeb7e9a693f468ab13ed507036b02172b1ae8218506c9e117ee4e3d4cedd8bcd3c9d WHIRLPOOL 5c2404c4156c83585fcc35eded27baa3f785acd752d9ec1d436eb329f9b12d318aab4913c14fdbd229950d052a142267e806eeb29846977da9980264c487b2fe diff --git a/dev-java/sbt/sbt-0.13.10_rc2.ebuild b/dev-java/sbt/sbt-0.13.10_rc2.ebuild new file mode 100644 index 000000000000..86defae2e3ce --- /dev/null +++ b/dev-java/sbt/sbt-0.13.10_rc2.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +# repoman gives LIVEVCS.unmasked even with EGIT_COMMIT, so create snapshot +inherit eutils java-pkg-2 # git-r3 + +MY_PV="0.13.10-RC2" + +L_PN="sbt-launch" +L_P="${L_PN}-${MY_PV}" + +B_PV="0.13.9" +BL_P="${L_PN}-${B_PV}" +B_P="${PN}-${B_PV}" + +SV="2.10" + +DESCRIPTION="sbt is a build tool for Scala and Java projects that aims to do the basics well" +HOMEPAGE="http://www.scala-sbt.org/" +EGIT_COMMIT="v${PV}" +EGIT_REPO_URI="https://github.com/sbt/sbt.git" +SRC_URI="!binary? +( + https://dev.gentoo.org/~gienah/snapshots/${P}-src.tar.bz2 + https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.bz2 + https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.bz2 + https://dev.gentoo.org/~gienah/snapshots/${P}-test-deps.tar.bz2 + http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/${L_PN}/${MY_PV}/${L_PN}.jar -> ${BL_P}.jar +) +binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 ) +" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="binary" + +DEPEND="virtual/jdk:1.7 + >=dev-lang/scala-2.10.6:${SV}" +RDEPEND="|| ( virtual/jre:1.7 virtual/jre:1.8 ) + dev-lang/scala:*" + +# test hangs or fails +RESTRICT="test" + +# Note: to bump sbt, some things to try are: +# 1. Create the sbt src snapshot: +# git clone https://github.com/sbt/sbt.git sbt-0.13.10_rc2 +# cd sbt-0.13.10_rc2 +# git checkout v0.13.10-RC2 +# cd .. +# tar --owner=portage --group=portage -cjf /usr/portage/distfiles/sbt-0.13.10_rc2-src.tar.bz2 \ +# sbt-0.13.10_rc2 +# 2. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.bz2 +# https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.bz2 and +# https://dev.gentoo.org/~gienah/snapshots/${P}-test-deps.tar.bz2 +# binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 ) +# from SRC_URI +# 3. Comment the sbt publishLocal line in src_compile. +# 4. try: +# FEATURES='noclean -test' emerge -v -1 dev-java/sbt +# It should fail in src_install since the sbt publishLocal is not done. +# Check if it downloads more stuff in +# src_compile to ${WORKDIR}/.ivy2 and ${WORKDIR}/.sbt. +# 5. If some of the downloads fail, it might be necessary to run the sbt compile +# again manually to obtain all the dependencies, if so (with jdk 1.6): +# cd to ${S} +# export EROOT=/ +# export WORKDIR='/var/tmp/portage/dev-java/sbt-0.13.10_rc2/work' +# export SV="2.10" +# export B_P=sbt-0.13.10_rc2 +# export PATH="/usr/share/scala-${SV}/bin:${WORKDIR}/${B_P}:${PATH}" +# sbt compile +# cd ${WORKDIR} +# find .ivy2 .sbt -uid 0 -exec chown portage:portage {} \; +# 6. cd ${WORKDIR} +# tar -cjf /usr/portage/distfiles/sbt-0.13.10_rc2-ivy2-deps.tar.bz2 .ivy2 +# tar -cjf /usr/portage/distfiles/sbt-0.13.10_rc2-sbt-deps.tar.bz2 .sbt +# Uncomment the sbt publishLocal line in src_compile. +# 7. It downloads more dependencies for src_test, however the presence of some of these may cause +# the src_compile to fail. So download them seperately as root so we can identify the +# additional files. Note: src_test creates some files in ${WORKDIR}/.m2 which are can +# hopefully be ignored. As root: +# cd ${S} +# ${S}/sbt-0.13.10_rc2 test +# cd ${WORKDIR} +# tar --owner=portage --group=portage -cjf /usr/portage/distfiles/sbt-0.13.10_rc2-test-deps.tar.bz2 \ +# $(find .ivy2 .sbt -uid 0 -type f -print) +# 8. Create the binary +# cd $WORDKIR +# tar --owner=portage --group=portage -cjf /usr/portage/distfiles/sbt-0.13.10_rc2-gentoo-binary.tar.bz2 \ +# sbt-0.13.10_rc2 .ivy2/local +# 9. Undo the earlier temporary edits to the ebuild. + +src_unpack() { + # if ! use binary; then + # git-r3_src_unpack + # fi + # Unpack tar files only. + for f in ${A} ; do + [[ ${f} == *".tar."* ]] && unpack ${f} + done +} + +java_prepare() { + if ! use binary; then + mkdir "${WORKDIR}/${B_P}" || die + cp -p "${DISTDIR}/${BL_P}.jar" "${WORKDIR}/${B_P}/${L_PN}.jar" || die + cat <<- EOF > "${WORKDIR}/${B_P}/sbt" + #!/bin/sh + SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M" + java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${WORKDIR}/${B_P}/sbt-launch.jar" "\$@" + EOF + cat <<- EOF > "${S}/${P}" + #!/bin/sh + SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M" + java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${S}/launch/target/sbt-launch.jar" "\$@" + EOF + chmod u+x "${WORKDIR}/${B_P}/sbt" "${S}/${P}" || die + local SCALA_PVR="$(java-config --query=PVR --package=scala-${SV})" + local SFV="${SCALA_PVR/-*}" + sed -e "s@scalaVersion := \"2.10.4\",@scalaVersion := \"${SFV}\",\n scalaHome := Some(file(\"/usr/share/scala-${SV}\")),@" \ + -i "${S}/build.sbt" || die + fi +} + +src_compile() { + if ! use binary; then + export PATH="${EROOT}usr/share/scala-${SV}/bin:${WORKDIR}/${B_P}:${PATH}" + einfo "=== sbt compile ..." + "${WORKDIR}/${B_P}/sbt" -Dsbt.log.noformat=true compile || die + einfo "=== sbt publishLocal ..." + cat <<- EOF | "${WORKDIR}/${B_P}/sbt" -Dsbt.log.noformat=true || die + set every javaVersionPrefix in javaVersionCheck := Some("1.7") + publishLocal + EOF + fi +} + +src_test() { + if ! use binary; then + export PATH="${EROOT}usr/share/scala-${SV}/bin:${S}:${PATH}" + "${S}/${P}" -Dsbt.log.noformat=true test || die + fi +} + +src_install() { + # Place sbt-launch.jar at the end of the CLASSPATH + java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print | grep -v sbt-launch.jar) \ + $(find "${WORKDIR}"/.ivy2/local -name sbt-launch.jar -print) + java-pkg_dolauncher sbt --jar sbt-launch.jar --java_args "-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M" +} |