Add Beremiz shortcuts in menu on linux platform
authorgreg
Wed, 28 Oct 2009 11:38:23 +0100
changeset 432 ef7fc6fd1f6f
parent 429 1a5471e81a93
child 433 ca07a88ee68a
Add Beremiz shortcuts in menu on linux platform
Add some dependencies to beremiz (simplejson, twisted, nevow ...)
debian/Beremiz.directory
debian/Beremiz_demos.directory
debian/Beremiz_docs.directory
debian/beremiz.desktop
debian/beremiz.menu
debian/beremiz_doc.desktop
debian/beremiz_svgui.desktop
debian/beremiz_wxglade.desktop
debian/control
debian/rules
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/Beremiz.directory	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Directory
+Name=Beremiz
+Icon=/usr/share/beremiz/images/brz.png
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/Beremiz_demos.directory	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Directory
+Name=Demos
+Icon=
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/Beremiz_docs.directory	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Directory
+Name=Doc
+Icon=
--- a/debian/beremiz.desktop	Mon Oct 26 11:20:16 2009 +0100
+++ b/debian/beremiz.desktop	Wed Oct 28 11:38:23 2009 +0100
@@ -8,6 +8,6 @@
 Terminal=false
 MultipleArgs=false
 Type=Application
-Categories=Application;Development;
+Categories=Beremiz;
 StartupNotify=true
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/beremiz.menu	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,40 @@
+<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
+ "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
+<Menu>
+  <Name>Applications</Name>
+  <Directory>Applications.directory</Directory>
+
+  <!-- Read standard .directory and .desktop file locations -->
+  <DefaultAppDirs/>
+  <DefaultDirectoryDirs/>
+	<Menu>
+	  <Name>Development</Name>
+	  <Directory>Development.directory</Directory>
+
+		  <!-- Beremiz submenu -->
+		  <Menu>
+		    <Name>Beremiz</Name>
+		    	<Directory>Beremiz.directory</Directory>
+				<Include>
+					<Category>Beremiz</Category>
+			    	</Include>
+				<Menu>
+				    <Name>Demos</Name>
+				    <Directory>Beremiz_demos.directory</Directory>
+				    <Include>
+					<Category>Beremiz_demo</Category>
+				    </Include>
+				</Menu> <!-- End Beremiz demo -->
+				<Menu>
+				    <Name>Doc</Name>
+				    <Directory>Beremiz_docs.directory</Directory>
+				    <Include>
+					<Category>Beremiz_doc</Category>
+				    </Include>
+				</Menu> <!-- End Beremiz doc -->
+		  </Menu> <!-- End Beremiz -->
+
+  	</Menu> <!-- End Development -->
+  <!-- possibly more submenus -->
+
+</Menu> <!-- End Applications -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/beremiz_doc.desktop	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Manual
+Comment=Open Source framework for automation
+Comment[fr]=Environnement de développement Open Source pour l'automatisme
+Exec=/usr/bin/xpdf /usr/share/beremiz/doc/manual_beremiz.pdf
+Icon=
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Beremiz_doc;
+StartupNotify=true
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/beremiz_svgui.desktop	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Beremiz Demo (svgui)
+Comment=Open Source framework for automation
+Comment[fr]=Environnement de développement Open Source pour l'automatisme
+Exec=/usr/bin/beremiz /usr/share/beremiz/tests/svgui
+Icon=/usr/share/beremiz/images/brz.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Beremiz_demo;
+StartupNotify=true
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/beremiz_wxglade.desktop	Wed Oct 28 11:38:23 2009 +0100
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Beremiz Demo (wxGlade)
+Comment=Open Source framework for automation
+Comment[fr]=Environnement de développement Open Source pour l'automatisme
+Exec=/usr/bin/beremiz /usr/share/beremiz/tests/wxGlade
+Icon=/usr/share/beremiz/images/brz.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Beremiz_demo;
+StartupNotify=true
+
--- a/debian/control	Mon Oct 26 11:20:16 2009 +0100
+++ b/debian/control	Wed Oct 28 11:38:23 2009 +0100
@@ -7,7 +7,7 @@
 
 Package: beremiz
 Architecture: any
-Depends: build-essential, python-wxgtk2.8, python-ctypes, python-wxglade, xpdf, canfestival-devel, canfestival-objdictedit, matiec, docutils, pyro, xmlclass, plcopeneditor
+Depends: build-essential, python-wxgtk2.8, python-ctypes, python-numpy, python-twisted, python-nevow, python-simplejson, python-wxglade, xpdf, canfestival-devel, canfestival-objdictedit, matiec, docutils, pyro, xmlclass, plcopeneditor
 Description: Beremiz is an Open Source framework for automation
  With Beremiz, you can :
     - Automate everything.
--- a/debian/rules	Mon Oct 26 11:20:16 2009 +0100
+++ b/debian/rules	Wed Oct 28 11:38:23 2009 +0100
@@ -1,17 +1,9 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-
-
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -23,8 +15,6 @@
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
-	# Add here commands to configure the package.
-
 	touch configure-stamp
 
 
@@ -32,21 +22,12 @@
 
 build-stamp: configure-stamp 
 	dh_testdir
-
-	# Add here commands to compile the package.
-	#$(MAKE)
-	#docbook-to-man debian/beremiz.sgml > beremiz.1
-
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	#-$(MAKE) clean
-
 	dh_clean 
 
 install: build
@@ -55,35 +36,49 @@
 	dh_clean -k 
 	dh_installdirs
 
-	# Add here commands to install the package into debian/beremiz.
+	# Copy source files
 	mkdir -p $(CURDIR)/debian/beremiz/usr/share/beremiz
-	mkdir -p $(CURDIR)/debian/beremiz/usr/share/applications
-	
 	cp -a images $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp -a plugins $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp -a runtime $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp -a tests $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp -a connectors $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp -a targets $(CURDIR)/debian/beremiz/usr/share/beremiz
-	cp *.xml $(CURDIR)/debian/beremiz/usr/share/beremiz
+	cp -a doc $(CURDIR)/debian/beremiz/usr/share/beremiz
+	cp -a locale $(CURDIR)/debian/beremiz/usr/share/beremiz
+	cp *.js $(CURDIR)/debian/beremiz/usr/share/beremiz
 	cp *.py $(CURDIR)/debian/beremiz/usr/share/beremiz
 
-	cp debian/beremiz.desktop $(CURDIR)/debian/beremiz/usr/share/applications/beremiz.desktop
-
+	# Copy desktop directory file
+	mkdir -p $(CURDIR)/debian/beremiz/usr/share/desktop-directories
+	cp debian/Beremiz.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories
+	cp debian/Beremiz_demos.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories
+	cp debian/Beremiz_docs.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories
+	
+	# Copy desktop menu file
+	mkdir -p $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged
+	cp debian/beremiz.menu $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged
+	
+	# Copy desktop entry files
+	mkdir -p $(CURDIR)/debian/beremiz/usr/share/applications
+	cp debian/beremiz.desktop $(CURDIR)/debian/beremiz/usr/share/applications/
+	cp debian/beremiz_svgui.desktop $(CURDIR)/debian/beremiz/usr/share/applications/
+	cp debian/beremiz_wxglade.desktop $(CURDIR)/debian/beremiz/usr/share/applications/
+	cp debian/beremiz_doc.desktop $(CURDIR)/debian/beremiz/usr/share/applications/
+	
 	rm -rf `find .|grep CVS`
 	rm -rf `find .|grep .cvsignore`
 	chmod -R a+r $(CURDIR)/debian/beremiz
 
 # Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
 
 # Build architecture-dependent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
+#	dh_installchangelogs 
+#	dh_installdocs
 	dh_installexamples
 #	dh_install
 #	dh_installmenu