[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#486208: pythoncad: Missing menu icon and desktop file.



Package: pythoncad
Version: 0.1.35-3
Severity: minor
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu hardy ubuntu-patch

There is not a desktop file and an icon. This patch fix those issues.

*** /tmp/tmpn25TAe
In Ubuntu, we've applied the attached patch to achieve the following:

  * Add debian/gtkpycad.xpm icon.
  * debian/rules: install icons and desktop file (LP: #236391).
  * debian/menu: add icon field.
  * Add debian/desktopfile.dpatch patch to modify desktop file.
  * Bump Standards-Version to 3.7.3.
  * Modify Maintainer value to match the DebianMaintainerField
    specification.

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy-proposed'), (500, 'hardy-backports'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-19-generic (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -u pythoncad-0.1.35/debian/dirs pythoncad-0.1.35/debian/dirs
--- pythoncad-0.1.35/debian/dirs
+++ pythoncad-0.1.35/debian/dirs
@@ -1 +1,3 @@
-usr/bin
\ Nessun a capo alla fine del file
+usr/bin
+usr/share/pixmaps
+usr/share/applications
diff -u pythoncad-0.1.35/debian/menu pythoncad-0.1.35/debian/menu
--- pythoncad-0.1.35/debian/menu
+++ pythoncad-0.1.35/debian/menu
@@ -2 +2,2 @@
-  title="PythonCAD" command="/usr/bin/pythoncad"
+  title="PythonCAD" command="/usr/bin/pythoncad"\
+  icon="/usr/share/pixmaps/gtkpycad.xpm"
diff -u pythoncad-0.1.35/debian/patches/00list pythoncad-0.1.35/debian/patches/00list
--- pythoncad-0.1.35/debian/patches/00list
+++ pythoncad-0.1.35/debian/patches/00list
@@ -2,0 +3 @@
+desktopfile
diff -u pythoncad-0.1.35/debian/rules pythoncad-0.1.35/debian/rules
--- pythoncad-0.1.35/debian/rules
+++ pythoncad-0.1.35/debian/rules
@@ -33,6 +33,10 @@
 	# Add here commands to install the package into debian/pythoncad.
 	python setup.py install --no-compile --prefix debian/pythoncad/usr
 	install gtkpycad.py debian/pythoncad/usr/bin/pythoncad
+        # Install icons and desktop file
+	install gtkpycad.png debian/pythoncad/usr/share/pixmaps
+	install debian/gtkpycad.xpm debian/pythoncad/usr/share/pixmaps
+	install pythoncad.desktop debian/pythoncad/usr/share/applications
 
 # Build architecture-independent files here.
 binary-indep: build install
diff -u pythoncad-0.1.35/debian/control pythoncad-0.1.35/debian/control
--- pythoncad-0.1.35/debian/control
+++ pythoncad-0.1.35/debian/control
@@ -1,10 +1,11 @@
 Source: pythoncad
 Section: graphics
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
 Build-Depends-Indep: python, python-dev, python-support (>= 0.4)
 Build-Depends: debhelper (>= 5.0.37.2), dpatch
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
 
 Package: pythoncad
 Architecture: all
diff -u pythoncad-0.1.35/debian/changelog pythoncad-0.1.35/debian/changelog
only in patch2:
unchanged:
--- pythoncad-0.1.35.orig/debian/patches/desktopfile.dpatch
+++ pythoncad-0.1.35/debian/patches/desktopfile.dpatch
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## desktopfile.dpatch by Devid Filoni <d.filoni@techemail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad pythoncad-0.1.35~/pythoncad.desktop pythoncad-0.1.35/pythoncad.desktop
+--- pythoncad-0.1.35~/pythoncad.desktop	2004-10-23 15:34:22.000000000 +0200
++++ pythoncad-0.1.35/pythoncad.desktop	2008-06-02 21:45:24.000000000 +0200
+@@ -1,10 +1,9 @@
+ [Desktop Entry]
+ Name=PyCAD
+ Comment=PythonCAD
+-Icon=/usr/share/pixmaps/gtkpycad.png
+-Exec=/usr/bin/gtkpycad.py
++Icon=gtkpycad
++Exec=pythoncad
+ Terminal=false
+ Type=Application
+-Encoding=UTF-8
+ X-Desktop-File-Install-Version=0.3
+-Categories=Office;Graphics;Application;Utility;X-Red-Hat-Base;
++Categories=Office;X-Red-Hat-Base;
only in patch2:
unchanged:
--- pythoncad-0.1.35.orig/debian/gtkpycad.xpm
+++ pythoncad-0.1.35/debian/gtkpycad.xpm
@@ -0,0 +1,37 @@
+/* XPM */
+static char * gtkpycad_xpm[] = {
+"32 32 2 1",
+" 	c None",
+".	c #000000",
+"                                ",
+"                                ",
+"                   ....         ",
+"      ..           .....        ",
+"      ...           .....       ",
+"      ....          ........    ",
+"      ......        ........    ",
+"      ......          ......    ",
+"      ..  ....        .......   ",
+"      ..  ....        ........  ",
+"      ..    ....    ........... ",
+"      ..    ....    ....  ..... ",
+"      ..      ... .....    .... ",
+"      ..      ........      ... ",
+"      ..        .....        .  ",
+"      ..        ....            ",
+"      ..      .......           ",
+"      ..      ........          ",
+"      ..    ....   ....         ",
+"      ..    ....    ....        ",
+"      ..  .....      ....       ",
+"      ..  ....        ....      ",
+"      .. ....          ....     ",
+"      .. ...            ....    ",
+"      .....              ....   ",
+"      ....                ...   ",
+"      .......................   ",
+"      ......................    ",
+"                                ",
+"                                ",
+"                                ",
+"                                "};

Reply to: