changeset 391:6e7909960f31

merge
author wycc
date Sun, 12 Apr 2009 12:02:17 +0800
parents 3c3de5520e37 (current diff) 433fa83d16f9 (diff)
children ebf83a50e1e1
files
diffstat 17 files changed, 122 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/autogen.sh	Sun Apr 12 12:02:03 2009 +0800
+++ b/autogen.sh	Sun Apr 12 12:02:17 2009 +0800
@@ -3,5 +3,5 @@
 aclocal
 autoheader
 libtoolize --automake --copy
-automake --add-missing --foreign
+automake --add-missing --copy
 autoconf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/README.Debian	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,6 @@
+madbutterfly for Debian
+-----------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Ben Lau <benlau@visionware.com.hk>  Thu, 09 Apr 2009 20:00:10 +0800
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/changelog	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,6 @@
+madbutterfly (0.0-3) intrepid; urgency=low
+
+  * Initial release
+
+ -- Ben Lau <benlau@visionware.com.hk>  Thu, 09 Apr 2009 20:00:10 +0800
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/compat	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,1 @@
+6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/control	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,29 @@
+Source: madbutterfly
+Section: devel
+Priority: extra
+Maintainer: Ben Lau <benlau@visionware.com.hk>
+Build-Depends: debhelper (>= 5),cdbs , mozilla-devscripts,libcairo2-dev , libpango1.0-dev,zip
+Standards-Version: 3.7.3
+Homepage: http://www.assembla.com/spaces/MadButterfly
+
+Package: libmadbutterfly-dev
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GUI environment toolkit
+ MadButterfly (http://www.assembla.com/spaces/MadButterfly)
+ is a toolkit for GUI environment. It is designed for 
+ embedded system. It make GUI designers and programmers 
+ work seperately. Designer export their artifacts to files 
+ with SVG format. MadButterfly provides a tool to translate 
+ graphics in SVG into C code and a framework that 
+ programmer can manipulate graphics. It works like a 
+ Javascript programmer to manipulate DOM object. 
+ Programmers using MadButterfly manipulate objects 
+ corresponding to SVG tags to interact with users of 
+ application.
+
+Package: madbuilder
+Architecture: all
+Depends: python-soappy,python-twisted,mozplugger,python-lxml,madbutterfly-inkscape
+Description: MadButterFly Integrated Development Environment
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/copyright	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,24 @@
+This package was debianized by Ben Lau <benlau@visionware.com.hk> on
+Thu, 09 Apr 2009 20:00:10 +0800.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s): 
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright: 
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2009, Ben Lau <benlau@visionware.com.hk> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/dirs	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/docs	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,1 @@
+README.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/libmadbutterfly-dev.install	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,4 @@
+debian/tmp/usr/include
+debian/tmp/usr/lib
+debian/tmp/usr/share/mb
+debian/tmp/usr/bin
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/madbuilder.dirs	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,3 @@
+usr/lib/iceweasel/extensions
+usr/share/madbutterfly/inkscape/usr/bin
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/madbuilder.links	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,1 @@
+usr/share/madbuilder usr/lib/iceweasel/extensions/{9cb6698c-667e-488c-8e61-dddfa2a5f8eb}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/madbuilder.postinst	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+HEADER="#MadBuilder Configuration#"
+FOOTER="#End of MadBuilder Configuration#"
+RC=/etc/mozpluggerrc
+
+CONTAIN=`grep "$HEADER" $RC`
+
+if [  -z "$CONTAIN" ]
+then
+cat <<EOF >> $RC
+
+$HEADER
+application/x-mbsvg:mbsvg: MadButterfly SVG
+        swallow(Inkscape) : /usr/share/madbutterfly/inkscape/usr/bin/helper_mb.py "\$file"
+application/x-h:h: MadButterfly SVG h program
+	swallow(gedit) : gedit "\$file"
+$FOOTER
+
+EOF
+echo Configuration installed to $RC
+fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/madbutterfly-doc.docs	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,2 @@
+#DOCS#
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Sun Apr 12 12:02:17 2009 +0800
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+MOZ_EXTENSION_PKG := madbuilder
+MOZ_XPI_BUILD_COMMAND = make -C inkscape/firefox madbuilder.xpi ; cp inkscape/firefox/madbuilder.xpi .
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/mozilla-devscripts/xpi.mk
+
+TEMPLATE_PATH=${CURDIR}/debian/madbuilder/usr/local/share/mb
+
+install/madbuilder::
+	install -m 0755 ${CURDIR}/inkscape/firefox/helper_mb.py \
+		${CURDIR}/debian/madbuilder/usr/share/madbutterfly/inkscape/usr/bin
+		
+	mkdir -p ${TEMPLATE_PATH}
+	cp -a ${CURDIR}/inkscape/firefox/template ${TEMPLATE_PATH}
--- a/examples/dynamic/hello.c	Sun Apr 12 12:02:03 2009 +0800
+++ b/examples/dynamic/hello.c	Sun Apr 12 12:02:17 2009 +0800
@@ -7,7 +7,7 @@
 #include <stdio.h>
 #include <mb.h>
 #include <string.h>
-#include "menu.h"
+//#include "menu.h"
 #include "mbapp.h"
 
 
--- a/examples/dynamic/main.c	Sun Apr 12 12:02:03 2009 +0800
+++ b/examples/dynamic/main.c	Sun Apr 12 12:02:17 2009 +0800
@@ -7,7 +7,7 @@
 #include <stdio.h>
 #include <mb.h>
 #include <string.h>
-#include "menu.h"
+//#include "menu.h"
 #include "mbapp.h"
 
 
--- a/examples/dynamic/text.c	Sun Apr 12 12:02:03 2009 +0800
+++ b/examples/dynamic/text.c	Sun Apr 12 12:02:17 2009 +0800
@@ -7,7 +7,7 @@
 #include <stdio.h>
 #include <mb.h>
 #include <string.h>
-#include "menu.h"
+//#include "menu.h"
 #include "mbapp.h"