[anjuta/python-support: 27/28] project-wizard: Adapted PyGTK-Wizard to new template system and fixes misc things
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/python-support: 27/28] project-wizard: Adapted PyGTK-Wizard to new template system and fixes misc things
- Date: Thu, 5 Aug 2010 17:51:57 +0000 (UTC)
commit 2003016bc1f68aac3ce1d12ff41b75af769f0754
Author: Johannes Schmid <jhs gnome org>
Date: Thu Aug 5 19:42:47 2010 +0200
project-wizard: Adapted PyGTK-Wizard to new template system and fixes misc things
configure.in | 4 +
plugins/project-wizard/templates/Makefile.am | 4 +-
plugins/project-wizard/templates/pygtk.wiz.in | 88 ++++++++++++++++++++
plugins/project-wizard/templates/pygtk/Makefile.am | 12 +++
.../templates/pygtk/data/Makefile.am | 5 +
.../project-wizard/templates/pygtk/po/Makefile.am | 5 +
.../project-wizard/templates/pygtk/src/Makefile.am | 5 +
po/POTFILES.in | 1 +
8 files changed, 123 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 22132a1..6708310 100644
--- a/configure.in
+++ b/configure.in
@@ -854,6 +854,10 @@ plugins/project-wizard/templates/java/po/Makefile
plugins/project-wizard/templates/python/Makefile
plugins/project-wizard/templates/python/src/Makefile
plugins/project-wizard/templates/python/po/Makefile
+plugins/project-wizard/templates/pygtk/Makefile
+plugins/project-wizard/templates/pygtk/src/Makefile
+plugins/project-wizard/templates/pygtk/po/Makefile
+plugins/project-wizard/templates/pygtk/data/Makefile
plugins/project-wizard/templates/wxwin/Makefile
plugins/project-wizard/templates/wxwin/src/Makefile
plugins/project-wizard/templates/wxwin/po/Makefile
diff --git a/plugins/project-wizard/templates/Makefile.am b/plugins/project-wizard/templates/Makefile.am
index 02d0ab2..1ec0e57 100644
--- a/plugins/project-wizard/templates/Makefile.am
+++ b/plugins/project-wizard/templates/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = minimal terminal cpp gtk anjuta-plugin \
- gtkmm wxwin xlib xlib-dock gcj java \
+ gtkmm wxwin xlib xlib-dock gcj java pygtk \
python mkfile sdl library directory licenses m4 js_minimal
template_in_files = \
@@ -18,6 +18,7 @@ template_in_files = \
java.wiz.in \
js.wiz.in \
python.wiz.in \
+ pygtk.wiz.in \
mkfile.wiz.in \
sdl.wiz.in \
library.wiz.in
@@ -36,6 +37,7 @@ wizard_files_DATA = \
gcj-logo.png \
java-logo.png \
python-logo.png \
+ pygtk-logo.png \
mkfile-logo.png \
appwiz_sdl.png \
$(template_in_files:.wiz.in=.wiz)
diff --git a/plugins/project-wizard/templates/pygtk.wiz.in b/plugins/project-wizard/templates/pygtk.wiz.in
new file mode 100644
index 0000000..37d6322
--- /dev/null
+++ b/plugins/project-wizard/templates/pygtk.wiz.in
@@ -0,0 +1,88 @@
+<project-template>
+ <project-wizard>
+ <_name>PyGTK (automake)</_name>
+ <_description>PyGTK project using automake</_description>
+ <icon>pygtk-logo.png</icon>
+ <category>Python</category>
+ <required-program>automake</required-program>
+ <required-program>autoconf</required-program>
+ <required-program>make</required-program>
+ <required-program>python</required-program>
+ <required-package>gtk+-2.0 >= 2.8</required-package>
+ <!-- Not working: <required-package>python-gtk2</required-package>-->
+ </project-wizard>
+
+ <page name="basic" _label="Basic information" _description="General Project Information">
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="pygtk-foobar" summary="yes" restriction="filename" mandatory="yes"/>
+ <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
+ <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
+ <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
+ </page>
+
+ <page name="options" _label="Project options" _description="Options for project build system">
+ <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" restriction="directory" summary="yes"/>
+ <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
+ <item name="GPL" _label="General Public License (GPL)"/>
+ <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
+ <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
+ <item name="None" _label="No license"/>
+ </property>
+ <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
+ <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
+ <property type="hidden" name="NameCUpper" default='[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]'/>
+ <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
+ <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
+ <property type="boolean" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="0"/>
+ <property type="boolean" name="HavePackage" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
+ </page>
+
+[+IF (=(get "HavePackage") "1")+]
+ <page name="packages" _label="Configure external packages" _description="Configure external packages">
+ <property type="package" name="PackageModule1" _label="Required Packages:" _description="Check the packages that your project requires" mandatory="yes"/>
+ </page>
+[+ENDIF+]
+ <content>
+ <directory source="terminal" destination="[+Destination+]">
+ <file source="AUTHORS"/>
+ <file source="ChangeLog"/>
+ <file source="Makefile.am.tpl" destination="Makefile.am"/>
+ <file source="NEWS"/>
+ <file source="README"/>
+ <file source="autogen.sh" executable="yes"/>
+ <file source="cvsignore" destination=".cvsignore"/>
+ <directory source="src">
+ <file source="cvsignore" destination=".cvsignore"/>
+ </directory>
+ [+IF (=(get "HaveI18n") "1") +]
+ <directory source="po">
+ <file source="ChangeLog"/>
+ <file source="LINGUAS" />
+ <file source="cvsignore" destination=".cvsignore"/>
+ </directory>
+ [+ENDIF+]
+ </directory>
+ <directory source="pygtk" destination="[+Destination+]">
+ [+IF (=(get "HaveI18n") "1") +]
+ <directory source="po">
+ <file source="POTFILES.in"/>
+ </directory>
+ [+ENDIF+]
+ <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
+ <file source="configure.ac.tpl" destination="configure.ac"/>
+ <directory source="src">
+ <file source="main.py" destination="[+NameHLower+].py" executable="yes"/>
+ <file source="Makefile.am.tpl" destination="Makefile.am"/>
+ </directory>
+ <directory source="data">
+ <file source="project.ui" destination="[+NameHLower+].ui"/>
+ </directory>
+ </directory>
+ <directory source="licenses" destination="[+Destination+]">
+ <file source="[+License+]" destination="COPYING"/>
+ </directory>
+ </content>
+
+ <action>
+ <open file="[+Destination+]/[+NameHLower+].anjuta"/>
+ </action>
+</project-template>
diff --git a/plugins/project-wizard/templates/pygtk/Makefile.am b/plugins/project-wizard/templates/pygtk/Makefile.am
new file mode 100644
index 0000000..0b2c63e
--- /dev/null
+++ b/plugins/project-wizard/templates/pygtk/Makefile.am
@@ -0,0 +1,12 @@
+
+SUBDIRS = src po data
+
+wizard_filesdir = $(anjuta_data_dir)/project/pygtk
+wizard_files_DATA = \
+ configure.ac.tpl \
+ project.anjuta
+
+EXTRA_DIST = $(wizard_files_DATA)
+
+
+-include $(top_srcdir)/git.mk
diff --git a/plugins/project-wizard/templates/pygtk/data/Makefile.am b/plugins/project-wizard/templates/pygtk/data/Makefile.am
new file mode 100644
index 0000000..cd3a0d9
--- /dev/null
+++ b/plugins/project-wizard/templates/pygtk/data/Makefile.am
@@ -0,0 +1,5 @@
+wizard_filesdir = $(anjuta_data_dir)/project/pygtk/data
+wizard_files_DATA = project.ui
+EXTRA_DIST = $(wizard_files_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/plugins/project-wizard/templates/pygtk/po/Makefile.am b/plugins/project-wizard/templates/pygtk/po/Makefile.am
new file mode 100644
index 0000000..676a854
--- /dev/null
+++ b/plugins/project-wizard/templates/pygtk/po/Makefile.am
@@ -0,0 +1,5 @@
+wizard_filesdir = $(anjuta_data_dir)/project/python/po
+wizard_files_DATA = POTFILES.in
+EXTRA_DIST = $(wizard_files_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/plugins/project-wizard/templates/pygtk/src/Makefile.am b/plugins/project-wizard/templates/pygtk/src/Makefile.am
new file mode 100644
index 0000000..42b7f3c
--- /dev/null
+++ b/plugins/project-wizard/templates/pygtk/src/Makefile.am
@@ -0,0 +1,5 @@
+wizard_filesdir = $(anjuta_data_dir)/project/pygtk/src
+wizard_files_DATA = main.py Makefile.am.tpl
+EXTRA_DIST = $(wizard_files_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 69c66de..68cc471 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -190,6 +190,7 @@ plugins/project-wizard/property.c
[type: gettext/xml]plugins/project-wizard/templates/java.wiz.in
[type: gettext/xml]plugins/project-wizard/templates/js.wiz.in
[type: gettext/xml]plugins/project-wizard/templates/python.wiz.in
+[type: gettext/xml]plugins/project-wizard/templates/pygtk.wiz.in
[type: gettext/xml]plugins/project-wizard/templates/mkfile.wiz.in
[type: gettext/xml]plugins/project-wizard/templates/sdl.wiz.in
[type: gettext/xml]plugins/project-wizard/templates/library.wiz.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]