This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
hedera/anjuta/hedera.wiz

131 lines
7.4 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<project-template>
<project-wizard>
<name>Hedera Module</name>
<description>Basic project for an Hedera Module.</description>
<icon>hedera-logo.png</icon>
<category>Vala</category>
<required-program>automake</required-program>
<required-program>autoconf</required-program>
<required-program>make</required-program>
<required-program>valac</required-program>
</project-wizard>
<page name="basic" label="Basic information" description="General Project Information">
<property type="string" summary="yes" restriction="filename" name="Name" mandatory="yes" default="module" label="Module Name:" description="Module name"></property>
<property type="string" summary="yes" restriction="filename" name="FormName" mandatory="yes" default="example" label="Form Name:" description="Form name"></property>
<property type="string" name="Author" mandatory="yes" default="[+UserName+]" label="Author:" description="The author or team full name"></property>
<property type="string" name="Email" mandatory="no" default="[+EmailAddress+]" label="Email address:" description="Author or team e-mail address"></property>
<property type="string" name="Version" mandatory="yes" default="0.1" label="Version:" description= "The actual version of the module"></property>
</page>
<page name="options" label="Project options" description="Options for project build system">
<property type="directory" summary="yes" name="Destination" mandatory="yes" exist="no" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' label="Destination:" description="The directory where the project will be stored once created"></property>
<property type="directory" summary="yes" name="Destination" mandatory="yes" exist="no" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' label="Destino:" description="El directorio donde se guadará el proyecto una vez creado" xml:lang="es"></property>
[+INCLUDE "licenses.tpl"+]
<property type="boolean" name="DebianPackage" default="1" label="Make a Debian package:" description="Generate the files needed to build a .deb package"></property>
<property type="boolean" name="DebianPackage" default="1" label="Crear paquete Debian:" description="Generar los ficheros necesarios para construir un paquete .deb" xml:lang="es"></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="hidden" name="ClassName" default='[+(string->camelcase (get "Name"))+]'/>
<property type="hidden" name="FormClassName" default='[+(string->camelcase (get "FormName"))+]'/>
<property type="boolean" name="HaveI18n" default="0" label="Add internationalization:" description="Adds support for internationalization so that your project can have translations in different languages" default="1"></property>
<property type="boolean" name="HavePackageExtra" default="0" label="Configure external packages:" description="Add library support from other packages (GLib, Gtk+ and Hedera are already added)"></property>
<property type="boolean" name="HavePackageExtra" default="0" label="Configurar paquetes externos:" description="Añade soporte para otros paquetes (GLib, Gtk+ y Hedera ya están añadidos)"xml:lang="es"></property>
<!-- <property type="boolean" name="HaveGtkDoc" default="0" label="Use Gtk-Doc for documentation:" description="Use Gtk-Doc to help you generate the documentation"></property>
<property type="boolean" name="HaveGtkDoc" default="0" label="Usar Gtk-Doc para documentación:" description="Emplear Gtk-Doc para facilitar la generación de documentación" xml:lang="es"></property>
-->
</page>
[+IF (=(get "HavePackageExtra") "1")+]
<page name="packages" label="Configure external packages" description="Configure external packages">
<property type="package" name="PackageModule2" mandatory="yes" label="Require Package:" description="Select the name of the requiered external packages."></property>
</page>
[+ENDIF+]
<content>
<directory source="minimal" destination="[+Destination+]">
<file source="autogen.sh" executable="yes"/>
</directory>
<directory source="terminal" destination="[+Destination+]">
<file source="ChangeLog"/>
<file source="NEWS"/>
<file source="README"/>
<file source="project.anjuta" destination="[+NameHLower+].anjuta"/>
<directory source="po">
<file source="ChangeLog"/>
<file source="LINGUAS"/>
</directory>
</directory>
<directory source="licenses" destination="[+Destination+]">
<file source="[+License+].txt" destination="COPYING"/>
</directory>
<directory source="hedera" destination="[+Destination+]">
<file source="AUTHORS.tpl" destination="AUTHORS"/>
<file source="Makefile.am.tpl" destination="Makefile.am"/>
<file source="configure.ac.tpl" destination="configure.ac"/>
<directory source="src">
<file source="mod.vala" destination="[+Name+].vala"/>
<file source="form.vala" destination="[+FormName+].vala"/>
<file source="config.vapi" destination="config.vapi"/>
<file source="Makefile.am.tpl" destination="Makefile.am"/>
</directory>
<directory source="data">
<file source="form.glade" destination="[+FormName+].glade"/>
<file source="mod.xml.tpl" destination="[+Name+].xml"/>
<file source="mod-menu.xml.tpl" destination="[+Name+]-menu.xml"/>
<file source="Makefile.am.tpl" destination="Makefile.am"/>
</directory>
<directory source="sql">
<directory source="mod" destination="[+Name+]">
<file source="query.sql.tpl" destination="[+FormName+].sql"/>
</directory>
</directory>
[+IF (=(get "DebianPackage") "1")+]
<directory source="debian">
<file source="changelog.tpl" destination="changelog"/>
<file source="compat"/>
<file source="control.tpl" destination="control"/>
<file source="copyright.tpl" destination="copyright"/>
<file source="docs"/>
<file source="rules" executable="yes"/>
<directory source="source">
<file source="format"/>
</directory>
</directory>
<directory source="build">
<directory source="m4">
<file source="pkg.m4"/>
</directory>
</directory>
[+ENDIF+]
[+IF (=(get "HaveI18n") "1") +]
<file source="translation" executable="yes"/>
<directory source="po">
<file source="POTFILES.in.tpl" destination="POTFILES.in"/>
<file source="POTFILES.skip.tpl" destination="POTFILES.skip"/>
</directory>
[+ENDIF+]
<directory source="." destination=".anjuta">
<directory source="." destination="session">
<file source="anjuta.session.tpl" destination="anjuta.session"/>
</directory>
</directory>
</directory>
</content>
<action>
[+IF (=(get "HaveI18n") "1") +]
<run command="bash -c &quot; cd [+Destination+]/po
&amp;&amp; intltool-update -p
&amp;&amp; msginit --no-translator -i *.pot -o es.po -l es_ES.utf8
&amp;&amp; echo es &gt;&gt; LINGUAS
&quot;"/>
[+ENDIF+]
<open file="[+Destination+]/[+NameHLower+].anjuta"/>
</action>
</project-template>