This is an ebuild for the Google Web Toolkit. This first version is named "dev-java/google-web-toolkit-bin" and it installs the pre-compiled x86 version which is available on the site. As soon as possible, I would like to make a "dev-java/google-web-toolkit" that compiles everything from source. But I lack time, so if you can, please submit something here ! Reproducible: Always
Created attachment 113570 [details] google-web-toolkit-bin-1.3.3.ebuild
Yeah, we need from-source version if you want to see this in the official tree.
Created attachment 114494 [details] A small script that will access google's svn, checkout the code, and create gwt-1.3.3.tar.bz2 and gwt-tools.tar.bz2 automatically. Note: I didn't use versioning for gwt-tools. This is because I use only few files from this package. The short-term goal is to get rid of gwt-tools, and to use *purely* gentoo's dependencies and tools for building gwt.
Created attachment 114496 [details] dev-java/google-web-toolkit-1.3.3 Please try, and please help to improve this ebuild ! We need to get rid of these remaining dependencies (which are bundled in gwt-tools.tar.bz2): tools/lib/apache/tapestry-util-text-*.jar tools/lib/eclipse/jdt-*.jar tools/lib/eclipse/org.eclipse.swt.gtk-linux-*.jar tools/lib/eclipse/libswt-*gtk-*.so tools/redist/mozilla tools/sdk/mozilla-* All other files inside gwt-tools.tar.bz2 are already deleted before the build begins :-) Another hot topic is that tomcat-5.0 is needed, and that is deprecated. Could we ensure that tomcat-5.0 doesn't get removed from the portage tree at the moment ? I don't know what it would take to make gwt build with the new tomcat-5.5.
Oh yes, I forgot to mention: it would be great to use the system's swt library instead of the bundled one. But I fear the switch from mozilla to seamonkey changed the API (?)
(In reply to comment #5) > Oh yes, I forgot to mention: it would be great to use the system's swt library > instead of the bundled one. But I fear the switch from mozilla to seamonkey > changed the API (?) > No the backend does not affect the API that swt publishes.
Created attachment 114580 [details] dev-java/google-web-toolkit-1.3.3-r1 - more cleanups in tools/ directory - provide proper version to the ant scripts: for example (in this case): 1.3.3-gentoo-r1
Created attachment 115205 [details] dev-java/google-web-toolkit-1.3.3-r2 Ok, in this new version, the only bundled stuff that is actually used is: - swt & libgwt-ll.so - mozilla 1.7.2 I tried using the system's swt, but that's not compatible with the bundled mozilla. So I switched to my system's seamonkey instead, but there's another issue at runtime (same with firefox). The key of the problem may be the libgwt-ll.so file, for which the build is (currently) not performed -- the google scripts pick a pre-built version instead. Seems to be very dependent on specific mozilla header versions. Maybe we can fix it for gentoo ? Or maybe Google will fix it for the next version ? Please check out this new ebuild, also try to enable (and help fix) the commented-out swt stuff inside :-) Also, please see if the dependencies are fine on your system. Thanks !
Created attachment 117452 [details] dev-java/gwt-widgets-bin (optional add-on widgets pack) - jar installs in /opt/google-web-toolkit/gwt-widgets/ - javadoc installs in /usr/share/doc/gwt-widgets-0.1.3/
Created attachment 117487 [details] dev-java/gwt-widgets-bin-0.1.3 (optional add-on widgets pack) LICENSE, DESCRIPTION and HOMEPAGE are now properly defined in the ebuild.
Created attachment 120693 [details] google-web-toolkit-bin-1.4.10.ebuild new version: Google Web Toolkit 1.4 RC1
Created attachment 120694 [details] gwt-widgets-bin-0.1.4.ebuild new version of add-on widget pack (previous version doesn't work with GWT 1.4 RC1)
Created attachment 129669 [details] google-web-toolkit-bin-1.4.60.ebuild (Google Web Toolkit 1.4 final) (this is simply a rename of the 1.4RC1 ebuild)
Created attachment 145505 [details] Added a necessary dependancy libstdc++ is needed for the mozilla libs to work correctly. So I added this to the COMMON_DEP. I haven't done any ebuild scripting before so I hope I did this correctly.
Created attachment 147790 [details] google-web-toolkit-bin-1.4.62.ebuild Thanks Michael :-) Now here's the updated ebuild for GWT 1.4.62, which handles Firefox 3 betas. For more info, see: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/bd5cbb7a0d5b60aa
I'm currently trying to compile gwt-1.5.0-linux (rc) from source on my gentoo amd64 box and there are some problems, especially when not using bundled mozilla sdk. - apparently they're using some deprecated mozilla API that is not in firefox-2.0.0.15 anymore (namely nsComponentManager, in tools/sdk/mozilla-1.7.12/include/extra/nsComponentManagerObsolete.h) so it won't compile easily (I'm not Mozilla hacker so I won't help here). I'm aftraid it would be necesssary to do it as we need some API and corresponding libxpcomglue_s.a (gwt tools provides only 32bit one). I've build this .a file and used new (ff-2.0.0.15) API with no success here. - plenty 32/64bit issues in native java wrappers - those are rather easy to fix though (they're using pointer type to integer casting for some reasons) I guess for now you can forget about native linux 32/64 ebuild. It's just too many upstream JNI issues.
Created attachment 164903 [details] ebuild updated for 1.5.x and amd64 Updated the previously submitted -bin ebuild to the current gwt release, and added amd64 support, after rigorously testing for about 30 seconds.
Created attachment 212937 [details] ebuild updated for 2.0.0 Updated the previously submitted -bin ebuild to the current gwt release (2.0.0)
Created attachment 218809 [details] ebuild for 2.0.1 Based on ebuild for 2.0.0 CHANGELOG: New features: - shorter name - per version slotting - conditional dependency on Ant - Windows only stuff deleting Bug fixes: - added app-arch/unzip to DEPEND - in RDEPEND changed virtual/jre version from 1.4 to 1.5 Some cleanup.
Created attachment 292923 [details] 2.4.0 ebuild Java team, how do you think of adding this package to Portage tree? I'd like to add rstudio #365595 and this gwt package is dependency of it.
GWT is just too difficult to compile for no sensible reason. Google devs made it explicitly hard and nonsensical to figure out. Apparently, they use a different namespace for 3rd party libraries which goes like this: com.google.gwt.thirdparty So when compiling, you wind up with tons of errors like this one: [gwt.javac] /var/tmp/portage/dev-java/gwt-2.7.0/work/gwt-2.7.0/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java:38: error: package com.google.gwt.thirdparty.javascript.jscomp does not exist [gwt.javac] import com.google.gwt.thirdparty.javascript.jscomp.PropertyRenamingPolicy; even though the package does exist in javac's classpath... which rationale does it follow? As far as I can tell, none. They just want people not to compile/work out their code.
Created attachment 415988 [details] gwt-2.7.0.ebuild My attempt so far.
Created attachment 602776 [details] gwt-2.8.2.ebuild Starting from attachment 41598 [details, diff] I hacked this up. I can build sci-mathematics/rstudio against this dependency (currently rstudio is bundling this dep).
Created attachment 602808 [details] gwt-2.8.2.ebuild
Created attachment 602810 [details] gwt-2.8.2.ebuild rdeps can depend on: =dev-java/validation-api-1.0*:1.0[source]
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21a55f93e024094d32d2a3a60f4b20495e65e33 commit f21a55f93e024094d32d2a3a60f4b20495e65e33 Author: Mark Wright <gienah@gentoo.org> AuthorDate: 2020-01-10 03:25:31 +0000 Commit: Mark Wright <gienah@gentoo.org> CommitDate: 2020-01-10 08:43:18 +0000 dev-java/gwt: Add for sci-mathematics/rstudio Thanks to Joel for reporting. Thanks to Joel, jakub, betelgeuse, Michael Speth, Hank Leininger, Raimonds Cicans, naota and monsieurp for working on this. Co-Authored-By: Patrice Clement <monsieurp@gentoo.org> Bug: https://bugs.gentoo.org/show_bug.cgi?id=696944 Closes: https://bugs.gentoo.org/show_bug.cgi?id=171257 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Mark Wright <gienah@gentoo.org> dev-java/gwt/Manifest | 2 ++ dev-java/gwt/gwt-2.8.2.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++++ dev-java/gwt/metadata.xml | 21 +++++++++++++ 3 files changed, 95 insertions(+)