package gpsbabel-gui tag 592799 +patch thanks Hi Bernd,
Le vendredi 13 août 2010 à 00:53:23 (+0200), Bernd Zeimetz a écrit : > Hi! > > On 08/12/2010 11:49 PM, Julien Valroff wrote: > > There is no other way to start gpsbabelfe than using the commandline, > > which is not really user friendly. This is even worse given the binary > > name is not that easy to guess. > > > > Adding a menu entry and a .desktop file would allow the end user to > > execute the program more easily. > > If you have some spare time, please send me a desktop and menu file. Otherwise > I'll try to find the time to create them before Squeeze will be released. You will find attached a patch against current master branch in git to add these menu and desktop files. I have added a build-depency on imagemagick to allow to convert and resize the icon image. All my apologies for the late answer, I guess it is now too late so that it is accepted in Squeeze, but it will at least be usefull for sid users ;) Cheers, Julien -- Julien Valroff <[email protected]> http://www.kirya.net GPG key: 1024D/9F71D449 17F4 93D8 746F F011 B845 9F91 210B F2AB 9F71 D449
diff --git a/debian/changelog b/debian/changelog index 5f84339..49db974 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +gpsbabel (1.4.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Add menu and desktop files for gpsbabel-gui (Closes: #592799) + + -- Julien Valroff <[email protected]> Sat, 09 Oct 2010 14:32:03 +0200 + gpsbabel (1.4.0-1) unstable; urgency=low * New upstream version. diff --git a/debian/control b/debian/control index 9463c6b..07eb287 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 7.0.0), quilt, autotools-dev, autoconf, libexpat1-dev, expat, help2man, libxml2-utils, - libusb-dev, zlib1g-dev, libqt4-dev + libusb-dev, zlib1g-dev, libqt4-dev, imagemagick Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml, docbook-xsl, libpaper-dev Standards-Version: 3.8.4 diff --git a/debian/gpsbabel-gui.desktop b/debian/gpsbabel-gui.desktop new file mode 100644 index 0000000..97ccc46 --- /dev/null +++ b/debian/gpsbabel-gui.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=GPSBabel +Comment= +Exec=gpsbabelfe +Terminal=false +StartupNotify=no +Icon=gpsbabel.xpm +Categories=Education;Science;Geoscience + + diff --git a/debian/gpsbabel-gui.install b/debian/gpsbabel-gui.install index 5871412..4ac5ceb 100644 --- a/debian/gpsbabel-gui.install +++ b/debian/gpsbabel-gui.install @@ -1 +1,3 @@ gui/objects/gpsbabelfe /usr/bin +debian/gpsbabel.xpm /usr/share/pixmaps +debian/gpsbabel-gui.desktop /usr/share/applications diff --git a/debian/gpsbabel-gui.menu b/debian/gpsbabel-gui.menu new file mode 100644 index 0000000..e59a6cc --- /dev/null +++ b/debian/gpsbabel-gui.menu @@ -0,0 +1,5 @@ +?package(gpsbabel-gui): needs="X11"\ + section="Applications/Science/Geoscience"\ + title="GPSBabel"\ + icon="/usr/share/pixmaps/gpsbabel.xpm"\ + command="/usr/bin/gpsbabelfe" diff --git a/debian/rules b/debian/rules index d85002b..4aa944d 100755 --- a/debian/rules +++ b/debian/rules @@ -61,6 +61,9 @@ debian/gpsbabel.1: build-stamp gui/Makefile: $(QUILT_STAMPFN) cd gui && qmake-qt4 +gui/icon: + convert -resize 32x32 gui/images/appicon.png debian/gpsbabel.xpm + BUILD_TARGETS_ARCH = build-stamp build-gui-stamp debian/gpsbabel.1 BUILD_TARGETS_INDEP = build-doc-stamp # indep targets are only built by binary-indep. @@ -89,7 +92,7 @@ endif touch $@ build-gui: build-gui-stamp -build-gui-stamp: gui/Makefile +build-gui-stamp: gui/Makefile gui/icon $(MAKE) -C gui touch $@ @@ -119,6 +122,7 @@ clean-patched: xmldoc/filters/options/track-seg2trk.xml rm -f gbversion.h rm -f $(CURDIR)/debian/gpsbabel-doc.doc-base + rm -f debian/gpsbabel.xpm dh_clean install-prep: @@ -164,6 +168,7 @@ binary-arch: build-arch install-arch dh_installchangelogs -a dh_installdocs -a dh_installman -a + dh_installmenu -a dh_strip -a dh_compress -a dh_fixperms -a

