Currently dev-util/netbeans uses two non-standard .desktop file: one for gnome, and one for kde. The attached patch applied over current ebuild makes it use make_desktop_entry function from eutils class (see bug #74999 for a similar bug for dev-util/poseidonCE). HTH, Diego
Created attachment 50454 [details, diff] Patch over current ebuild
Created attachment 50543 [details, diff] Enhanced patch over current ebuild This enhanced patch should be better than the one before. It has some little changes: - The netbeans.png icon in ${FILESDIR} is needed no more. The icons inside /opt/${P}/bin/icons are used, symlinking them into the /usr/share/icons/hicolor structure. - The .desktop uses "netbeans" as icon name, so that the WM known where to get the icon from their own theme or from the default hicolor theme. fd.o specs states that the extension of the icon should be omitted, as there can be different icons of different formats. This also allows other icon themes (Nuvola or others) to define a new icon for NetBeans, which will be automatically used by it. - The description is changed to something less redundant, making it possible to use it without problems as Comment field on the .desktop file (yes this could be opinable... I thought that if Description and Comment have the same meaning, describe something with it's name is not so useful. HTH
http://bugs.gentoo.org/show_bug.cgi?id=68734 I will add this to the 4.0 ebuild too.
The icons are in different place in 4.0 but I can take care about that.
4.0 work version is here http://a.bo.cx/b/gentoo/netbeans/netbeans-4.0.ebuild It now has this type of icon handling.
Check the previous link for using a for loop in installing the icons. It's more compact and easier to maintain.
Just a question, how come the 3.6 ebuild have the gnome and kde flags, while the 4.0 have debug and doc? I'm trying a 4.0 install anyway. :')
I removed gnome and kde flags as they was used to install the shortcut in the respective menus. The patch I sent uses the freedesktop.org XDG menu, which is used both by kde and gnome (and other guis too), so the two flags are needed no more.
Ok, thanks for the info. One more question though: Where can I find the source tarballs, or do I have to use a binary install to try 4.0 right now? (Would like to try the new j2me features)
There's an ebuild in https://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-util/netbeans/netbeans-4.0.ebuild That fetches the tarball automaticly. It is a development version so please report any problems to me.
Fixed with the 4.0 ebuild.