Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80877 - dev-util/netbeans .desktop file cleanup
Summary: dev-util/netbeans .desktop file cleanup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 09:48 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2005-05-17 10:59 UTC (History)
2 users (show)

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


Attachments
Patch over current ebuild (netbeans-desktop.patch,1.85 KB, patch)
2005-02-05 09:48 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Enhanced patch over current ebuild (netbeans.patch,2.63 KB, patch)
2005-02-06 09:26 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-02-05 09:48:15 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-02-05 09:48:57 UTC
Created attachment 50454 [details, diff]
Patch over current ebuild
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-02-06 09:26:42 UTC
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
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-02-06 14:18:07 UTC
http://bugs.gentoo.org/show_bug.cgi?id=68734
I will add this to the 4.0 ebuild too. 
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-02-06 14:36:20 UTC
The icons are in different place in 4.0 but I can take care about that. 
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2005-02-06 15:14:46 UTC
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. 

Comment 6 Petteri Räty (RETIRED) gentoo-dev 2005-02-07 09:53:44 UTC
Check the previous link for using a for loop in installing the icons. It's more compact and easier to maintain. 
Comment 7 Claes Mogren 2005-02-10 13:11:37 UTC
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. :')
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-02-11 06:45:07 UTC
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.
Comment 9 Claes Mogren 2005-02-11 06:51:06 UTC
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)
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2005-03-13 11:11:10 UTC
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.
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2005-05-17 10:59:52 UTC
Fixed with the 4.0 ebuild.