Added an appdata file for the IDE to be installed on Linux.

Fri, 23 May 2014 19:26:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 23 May 2014 19:26:20 +0200
changeset 3609
5f17196652d5
parent 3607
0baeb7c76a5b
child 3611
3115423cebeb

Added an appdata file for the IDE to be installed on Linux.

eric5.appdata.xml file | annotate | diff | comparison | revisions
eric5.e4p file | annotate | diff | comparison | revisions
install.py file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric5.appdata.xml	Fri May 23 19:26:20 2014 +0200
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2013 First Lastname <your@email.com> -->
+<application>
+ <id type="desktop">eric5.desktop</id>
+ <metadata_license>CC-BY-3.0</metadata_license>
+ <project_license>GPL-3.0+</project_license>
+ <name>eric5</name>
+ <summary>Integrated Development Environment for Python</summary>
+ <description>
+  <p>
+    Eric is a full featured Python and Ruby editor and IDE, written
+    in python. It is based on the cross platform Qt gui toolkit, integrating
+    the highly flexible Scintilla editor control. It is designed to be
+    usable as everdays' quick and dirty editor as well as being usable as a
+    professional project management tool integrating many advanced features
+    Python offers the professional coder. eric4 includes a plugin system, which
+    allows easy extension of the IDE functionality with plugins downloadable
+    from the net.
+  </p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="1931" height="1404">http://eric-ide.python-projects.org/images/eric5-screen-01.png</screenshot>
+  <screenshot width="1936" height="1404">http://eric-ide.python-projects.org/images/eric5-screen-02.png</screenshot>
+  <screenshot width="1330" height="1405">http://eric-ide.python-projects.org/images/eric5-screen-04.png</screenshot>
+  <screenshot width="1431" height="1254">http://eric-ide.python-projects.org/images/eric5-screen-10.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://eric-ide.python-projects.org</url>
+ <updatecontact>detlev_at_die-offenbachs.de</updatecontact>
+</application>
--- a/eric5.e4p	Fri May 23 18:53:50 2014 +0200
+++ b/eric5.e4p	Fri May 23 19:26:20 2014 +0200
@@ -1613,6 +1613,7 @@
     <Other>Helpviewer/OpenSearch/DefaultSearchEngines/Wikipedia.xml</Other>
     <Other>Helpviewer/OpenSearch/DefaultSearchEngines/Wiktionary.xml</Other>
     <Other>APIs/QSS/qss.api</Other>
+    <Other>eric5.appdata.xml</Other>
   </Others>
   <MainScript>eric5.py</MainScript>
   <Vcs>
--- a/install.py	Fri May 23 18:53:50 2014 +0200
+++ b/install.py	Fri May 23 19:26:20 2014 +0200
@@ -398,6 +398,7 @@
     if sys.platform.startswith("linux"):
         for name in ["/usr/share/pixmaps/eric.png",
                      "/usr/share/applications/eric5.desktop",
+                     "/usr/share/appdata/eric5.appdata.xml",
                      "/usr/share/pixmaps/ericWeb.png",
                      "/usr/share/applications/eric5_webbrowser.desktop"]:
             if os.path.exists(name):
@@ -735,6 +736,11 @@
             shutilCopy(os.path.join(sourceDir, "eric5.desktop"), dst)
             shutilCopy(os.path.join(sourceDir, "eric5_webbrowser.desktop"),
                        dst)
+            dst = os.path.normpath(
+                os.path.join(distDir, "usr/share/appdata"))
+            if not os.path.exists(dst):
+                os.makedirs(dst)
+            shutilCopy(os.path.join(sourceDir, "eric5.appdata.xml"), dst)
         else:
             shutilCopy(os.path.join(
                 sourceDir, "icons", "default", "eric.png"),
@@ -742,6 +748,10 @@
             shutilCopy(os.path.join(
                 sourceDir, "eric5.desktop"),
                 "/usr/share/applications")
+            if os.path.exists("/usr/share/appdata"):
+                shutilCopy(os.path.join(
+                    sourceDir, "eric5.appdata.xml"),
+                    "/usr/share/appdata")
             shutilCopy(os.path.join(
                 sourceDir, "icons", "default", "ericWeb48.png"),
                 "/usr/share/pixmaps/ericWeb.png")

eric ide

mercurial