Commit 2003016b authored by Johannes Schmid's avatar Johannes Schmid

project-wizard: Adapted PyGTK-Wizard to new template system and fixes misc things

parent 08bf9e9c
......@@ -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
......
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)
......
<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>
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
wizard_filesdir = $(anjuta_data_dir)/project/pygtk/data
wizard_files_DATA = project.ui
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/python/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment