* plugins/project-wizard/templates/terminal.wiz,
[anjuta-git-plugin.git] / plugins / project-wizard / templates / python.wiz
blobe8e431d3043a5c94179bc2e13f57d2b365c845bf
1 <project-wizard>
2         <name>Generic python (automake)</name>
3         <description>A generic python project using automake project management</description>
4         <icon>python-logo.png</icon>
5         <category>Python</category>
6         <required-program>automake</required-program>
7         <required-program>autoconf</required-program>
8         <required-program>make</required-program>
9         <required-program>python</required-program>
10 </project-wizard>
12 <page name="basic" _label="Basic information" _description="General Project Information">
13         <property type="string" name="Name" _label="Project Name:" _description="project name" default="python-foobar" summary="yes" restriction="filename" mandatory="yes"/>
14         <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
15         <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
16         <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
17 </page>
19 <page name="options" _label="Project options" _description="Options for project build system">
20         <property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
21         <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
22                 <item name="GPL" _label="General Public License (GPL)"/>
23                 <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
24                 <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
25                 <item name="None" _label="No license"/>
26         </property>
27         <property type="hidden" name="NameUpper" default="[+(string-upcase (get "Name"))+]"/>
28         <property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
29         <property type="hidden" name="NameCUpper" default="[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]"/>
30         <property type="hidden" name="NameCLower" default="[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]"/>
31         <property type="hidden" name="NameHLower" default="[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]"/>
32         <property type="hidden" name="HavePackage" default="0"/>
33         <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
34         <property type="hidden" name="HaveGtkDoc" _label="Add gtk-doc system:" _description="gtk-doc is used to compile API documentations for GObject based classes" default="0"/>
35         <property type="hidden" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="0"/>
36         <property type="hidden" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
37 </page>
39 [+IF (=(get "HavePackageExtra") "1")+]
40 <page name="packages" _label="Configure external packages" _description="Configure external packages">
41         <property type="string" name="PackageModule1" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
42         <property type="string" name="PackageModule2" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
43         <property type="string" name="PackageModule3" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
44         <property type="string" name="PackageModule4" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
45         <property type="string" name="PackageModule5" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
46 </page>
47 [+ENDIF+]
49 <content>
50         <directory source="terminal" destination="[+Destination+]">
51                 <file source="AUTHORS"/>
52                 <file source="ChangeLog"/>
53                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
54                 <file source="NEWS"/>
55                 <file source="README"/>
56                 <file source="autogen.sh" executable="yes"/>
57                 <file source="cvsignore" destination=".cvsignore"/>
58                 <directory source="src">
59                         <file source="cvsignore" destination=".cvsignore"/>
60                 </directory>
61                 [+IF (=(get "HaveI18n") "1") +]
62                 <directory source="po">
63                         <file source="ChangeLog"/>
64                         <file source="LINGUAS" />
65                         <file source="cvsignore" destination=".cvsignore"/>
66                 </directory>
67                 [+ENDIF+]
68         </directory>
69         <directory source="python" destination="[+Destination+]">
70                 [+IF (=(get "HaveI18n") "1") +]
71                 <directory source="po">
72                         <file source="POTFILES.in"/>
73                 </directory>
74                 [+ENDIF+]
75                 <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
76                 <file source="configure.ac.tpl" destination="configure.ac"/>
77                 <directory source="src">
78                         <file source="main.py" destination="[+NameHLower+].py" executable="yes"/>
79                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
80                 </directory>
81         </directory>
82 </content>
84 <action>
85         <run command="sh -c &quot;cd [+(raw-shell-str (get "Destination"))+] &amp;&amp; ./autogen.sh&quot;"/>
86         <open file="[+Destination+]/[+NameHLower+].anjuta"/>
87 </action>