It's been a long time coming, would be nice to have in the tree.
I tried to build it by modifying the 2.7* one, without success. I voted for the bug since the new features of the 2.8 version are very interesting. If I can manage to get a working ebuild, I'll post it there.
Created attachment 251215 [details] Here is a modified version of the 2.7.7 ebuild. Tested on x86_64. Note that binary build is not supported.
+1 vote Tested successfully on amd64 and x86.
Created attachment 251563 [details] binary works again + added scalap Fixed binary USE flag + added scalap (Scala Decompiler, now part of Scala distrib)
Thanks for the ebuild. I have two comments about it. First, the binary tgz does include the doc/README file, which the ebuild could install. Not that it really matters. Second, is it better to install a wrapper around the binaries, as the current ebuild does, or simply use them as-is and add a note telling the user to set their SCALA_HOME variable? I'm actually not sure if SCALA_HOME is even needed, which would make the latter option even simpler.
(In reply to comment #5) > First, the binary tgz does include the doc/README file, which the ebuild could > install. You're right. I'll fix that. > Second, is it better to install a wrapper around the binaries, as the current > ebuild does, or simply use them as-is and add a note telling the user to set > their SCALA_HOME variable? I'm actually not sure if SCALA_HOME is even needed, > which would make the latter option even simpler. I'm not sure about these launcher-"wrappers" too. With the current Scala distribution come own launcher skripts (under bin/) which do a lot of other things. This is up to the gentoo-devs which way to go here. Another thing is the "binary" USE-Flag itself vs. the loooong outdated scala-bin package. But that's another story ;)
compiling scala-2.8.0 I ran into the following error: ------- BUILD SUCCESSFUL Total time: 5 minutes 51 seconds >>> Source compiled. >>> Test phase [not enabled]: dev-lang/scala-2.8.0 >>> Install scala-2.8.0 into /var/tmp/portage/dev-lang/scala-2.8.0/image/ category dev-lang !!! doman: man/man1/*.1 does not exist doman failed ------- Output of "emerge --info =dev-lang/scala-2.8.0": Portage 2.1.9.22 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r1, 2.6.36-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-gentoo-i686-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 26 Oct 2010 13:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus dri dts dv dvd dvdr emboss encode exif faac faad fam firefox flac fontconfig fortran gcj gdbm gif gnome gphoto2 gpm gtk hal iconv imagemagick ipv6 jpeg kpathsea lcms ldap libnotify logrotate mad mdnsresponder-compat mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support quicktime readline sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs system-sqlite tcpd theora threads tiff truetype unicode usb vorbis x264 x86 xcb xine xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2 hp3500" USERLAND="GNU" VIDEO_CARDS="intel i810" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #6) > I'm not sure about these launcher-"wrappers" too. With the current Scala > distribution come own launcher skripts (under bin/) which do a lot of other > things. This is up to the gentoo-devs which way to go here. It seems to me that using Scala's own scripts is better, since otherwise we'd have to change the ebuild to track their changes (e.g. if they changed some of the options they pass to Java). But I don't know much about the Gentoo wrappers either. > Another thing is the "binary" USE-Flag itself vs. the loooong outdated > scala-bin package. But that's another story ;) Yes, since your ebuild uses the official Scala binary, there's certainly no point in having both it and scala-bin.
Created attachment 252353 [details] Works now properly with and without USE=binary (In reply to comment #7) Should be fixed now! (Didnt properly re-check without USE=binary) Works now properly with and without USE=binary ;)
Great, not using binary works now.
Created attachment 254477 [details] Unchanged 2.8.1 from latest 2.8.0 2.8.1 went final a week ago. This ebuild is unchanged from 2.8.0 and works for me (amd64, x86). Feedbacks welcome.
Comment on attachment 251215 [details] Here is a modified version of the 2.7.7 ebuild. Thanks for the 2.8.1 ebuild. I will try it as soon as possible
It works on x86 with USE="-binary -doc -elibc_FreeBSD -emacs -examples -source": Thank you. $ scala -version Scala code runner version 2.8.1.r0-b20101116133328
Works on ~amd64, both with and without USE=binary. Additionally, USE="doc source" were set. :-)
(In reply to comment #11) > Created an attachment (id=254477) [details] > Unchanged 2.8.1 from latest 2.8.0 > > 2.8.1 went final a week ago. > > This ebuild is unchanged from 2.8.0 and works for me (amd64, x86). Feedbacks > welcome. > Ok so im happy with this ebuild except for the using of the upstream bin. Sadly due to how long it takes to compile it will most probably be sometime tomorrow that I will finish cleaning up a few things committing it. Thanks for your work.
In fact I started my own scala overlay (https://github.com/whiter4bbit/overlays) before this bug was submitted. Very bad, that I didn't look for this bag before:( I support just binary versions and now I added 2.9.0RC1 overlay. I think, in future I will merge with attched ebuilds to support building from sources. And I will add eselect support for scala (to allow using current 2.9.0 versions). I tried to contact scala gentoo maintainer (from scala-lang.org) but he doesn't replied to me.
Thanks guys. Finally added scala-2.8.1 to the tree. Should be hitting mirrors shortly.