Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419533 - dev-java/sbt (instead of dev-java/sbt-bin) (new package) a build tool for Scala
Summary: dev-java/sbt (instead of dev-java/sbt-bin) (new package) a build tool for Scala
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mark Wright
URL: http://github.com/harrah/xsbt/wiki
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-06-03 20:14 UTC by whiter4bbit
Modified: 2015-04-26 20:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (sbt-bin-0.11.3.ebuild,850 bytes, text/plain)
2012-06-03 20:15 UTC, whiter4bbit
Details
sbt-bin-0.13.5.ebuild (sbt-bin-0.13.5.ebuild,805 bytes, text/plain)
2014-08-13 07:54 UTC, Christian Strahl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description whiter4bbit 2012-06-03 20:14:06 UTC
missing ebuild for sbt - a great build tool for Scala and Java.

Reproducible: Always
Comment 1 whiter4bbit 2012-06-03 20:15:18 UTC
Created attachment 314089 [details]
ebuild

added ebuild
Comment 2 Christian Strahl 2014-08-13 07:54:59 UTC
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)
Comment 3 Mark Wright gentoo-dev 2015-04-18 00:50:47 UTC
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.
Comment 4 Mark Wright gentoo-dev 2015-04-18 13:12:10 UTC
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/
Comment 5 James Le Cuirot gentoo-dev 2015-04-18 15:07:31 UTC
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.
Comment 6 Mark Wright gentoo-dev 2015-04-19 05:57:34 UTC
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.
Comment 7 Christian Strahl 2015-04-20 11:02:10 UTC
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.
Comment 8 James Horton 2015-04-22 14:34:23 UTC
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
Comment 9 Patrice Clement gentoo-dev 2015-04-22 16:47:40 UTC
+  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.
Comment 10 James Horton 2015-04-26 20:13:26 UTC
Fixed....Thx