# HG changeset patch # User greg # Date 1256726303 -3600 # Node ID ef7fc6fd1f6fce8a9f1c166ad0b41fbcf7cc5f52 # Parent 1a5471e81a931ec09094eef6591a1b113a531827 Add Beremiz shortcuts in menu on linux platform Add some dependencies to beremiz (simplejson, twisted, nevow ...) diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/Beremiz.directory --- /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 diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/Beremiz_demos.directory --- /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= diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/Beremiz_docs.directory --- /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= diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/beremiz.desktop --- 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 diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/beremiz.menu --- /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 @@ + + + Applications + Applications.directory + + + + + + Development + Development.directory + + + + Beremiz + Beremiz.directory + + Beremiz + + + Demos + Beremiz_demos.directory + + Beremiz_demo + + + + Doc + Beremiz_docs.directory + + Beremiz_doc + + + + + + + + diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/beremiz_doc.desktop --- /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 diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/beremiz_svgui.desktop --- /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 + diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/beremiz_wxglade.desktop --- /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 + diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/control --- 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. diff -r 1a5471e81a93 -r ef7fc6fd1f6f debian/rules --- 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