Fwd: Re: FreeBSD Port: argouml-0.28.1 - .desktop file

army.of.root army.of.root at googlemail.com
Wed Dec 23 17:25:01 UTC 2009


On 12/20/2009 17:34, Rene Ladan wrote:
> Hi list,
>
> per suggestion of the original poster, I added a desktop entry to the
> Makefile of devel/argouml. Installing the port fails because the
> resulting pkg-plist is incorrect. The patch seems correct according to
> the Porters Handbook (
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-x11.html#DESKTOP-ENTRIES
> ), but maybe I've made a mistake. I'm also not sure if fetching the icon
> file from a jar archive is supported, it could be added manually.
>
> -------- Original Message --------
> Subject: Re: FreeBSD Port: argouml-0.28.1 - .desktop file
> Date: Tue, 15 Dec 2009 21:40:07 +0100
> From: Rene Ladan <rene at freebsd.org>
> To: army.of.root <>
>
> 2009/12/15 army.of.root <>:
>> I just created a .desktop file for this Port for it to be listed in
>> the gnome
>> menus. The last, commented, line shows the place where an icon can be
>> found. -
>> As .jar files are actually just renamed .zip . The Icon=<path> needs
>> to be
>> filled in, and maybe the Version=[..] also.
>>
>> It would be very nice if you could integrate this into the port.
>>
>> Thanks in advance !
>>
>> best regards
>>
>>
>> /usr/local/share/applications/argo-uml.desktop:
>>
>> [Desktop Entry]
>> Version=0.28.1
>> Name=ArgoUML Editor
>> Comment=Create advanced UML Diagrams
>> Exec=/usr/local/bin/argouml
>> Terminal=false
>> Type=Application
>> Icon=<path>
>> Categories=Application;Development;Building;Java;
>> StartupNotify=false
>> GenericName=
>>
>> #
>> /usr/local/share/argouml/argouml.jar:/org/argouml/Images/ArgoIcon32x32.png
>>
>>
> I created the attached patch, but the install phase fails because the
> desktop file is installed to the wrong location (see also the
> generated PLIST file). This is the way described in the Porters
> Handbook...
>
> Maybe someone at ports@ knows?
>
> Regards,
> René
>

Hi,

i think something like

unzip -p /usr/local/share/argouml/argouml.jar 
"org/argouml/Images/ArgoIcon32x32.png" > /some/icon/path/argouml32.png

could be used.

best regards and happy holidays :)


More information about the freebsd-ports mailing list