missing ebuild for sbt - a great build tool for Scala and Java. Reproducible: Always
Created attachment 314089 [details] ebuild added ebuild
Created attachment 382806 [details] sbt-bin-0.13.5.ebuild ebuild for latest version of sbt. works perfect, please add it to the tree. (source: http://github.com/whiter4bbit/overlays/tree/master/dev-java/sbt-bin)
It would be nice to have sbt in portage. The Gentoo way though is to build it from the source code: https://github.com/sbt/sbt/blob/0.13/CONTRIBUTING.md#build-from-source Which looks like the idea is to have the binary for the previous version and the source code for the current version in SRC_URI. But it might download more junk in src_compile, I'll try it and see if I can make it work.
sbt is really crazy. It downloads hundreds of files. To convince it to build without downloading more files in src_compile I tar'd them all up. It just seems to ignore anything we have installed except it wants jdk 1.6. I added a sed to sbt to set scalaVersion and scalaHome - it seems to use the installed scala-2.10 now, however it earlier downloaded multiple versions of scala along with lots of other stuff. The tests either hang or fail, so I added RESTRICT="test" I placed the ebuild here that builds sbt from the source code in case anyone would like to test it and comment about whether or not we might want to add it to portage: http://dev.gentoo.org/~gienah/test/dev-java/sbt/
Sounds like Maven. I don't know anything about it but I'm thinking along the same line as Gradle, try to its export its scripts to a pom.xml and use my (currently non-existent) code to go from there. https://github.com/sbt/sbt/blob/c879432b0fefef15b7d755f13077b1acfed8529b/main/src/main/scala/sbt/Keys.scala#L274 For now, I guess what you've proposed would have to do.
Add dev-java/sbt. Fixes ebuild request bug 419533, thanks to whiter4bbit for reporting and the dev-java/sbt-bin ebuild, Christian Strahl for testing, chewi for reviewing.
Why does this ebuild need scala-2.10 instead of scala-2.11? This pulls in the old jdk-1.6. The sbt-bin-0.13.5.ebuild works perfectly with scala 2.11, so it would be nice if dev-java/sbt would also work with scala 2.11.
Resolving repo.typesafe.com... 54.85.146.230, 54.165.44.236, 54.165.133.141 Connecting to repo.typesafe.com|54.85.146.230|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1208385 (1.2M) [application/java-archive] Saving to: ‘/usr/portage/distfiles/sbt-launch-0.13.7.jar’ /usr/portage/distfi 100%[=====================>] 1.15M 50.8KB/s in 24s 2015-04-22 10:25:01 (48.6 KB/s) - ‘/usr/portage/distfiles/sbt-launch-0.13.7.jar’ saved [1208385/1208385] !!! Fetched file: sbt-launch-0.13.7.jar VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 1208385 !!! Expected: 1208380 Refetching... File renamed to '/usr/portage/distfiles/sbt-launch-0.13.7.jar._checksum_failure_.d0ni59' Removed the file twice and tried again. Still it fails checksum
+ 22 Apr 2015; Patrice Clement <monsieurp@gentoo.org> sbt-0.13.8.ebuild: + Recalculate Manifest file due to a checksum mismatch with sbt- + launch-0.13.7.jar. + Have another go please.
Fixed....Thx