[SCM] Debian packaging of HTML-FormHandler-Model-DBIC CPAN distribution branch, master, updated. aa22cbb192757f79421f407160f71b566414e29a

Dominique Dumont dod at debian.org
Mon Sep 3 13:45:58 UTC 2012


The following commit has been merged in the master branch:
commit fcc240257742ed404a6ce30789446373fb7d4280
Author: Dominique Dumont <dod at debian.org>
Date:   Mon Sep 3 15:13:14 2012 +0200

    added patches to rename script and beef up its man page

diff --git a/debian/patches/fix_man_page b/debian/patches/fix_man_page
new file mode 100644
index 0000000..3f25404
--- /dev/null
+++ b/debian/patches/fix_man_page
@@ -0,0 +1,43 @@
+Description: Add more info to script man page
+ Most of this path was taken from 
+ lib/HTML/FormHandler/Generator/DBIC.pm
+Author: dod
+--- a/script/form_generator.pl
++++ b/script/form_generator.pl
+@@ -13,11 +13,35 @@
+ 
+ 
+ __END__
++
+ =pod
+ 
+ =head1 NAME
+ 
+-dbic_form_generator - form generator
++dbic_form_generator - Generate HTML form from DB schema with DBIC
++
++=head1 DESCRIPTION
++
++Using the database passed in the command option, dbic_form_generator
++will query the DB for a schema and generate a HTML form to update the
++content of the DB.
++
++Options:
++
++  rs_name       -- Resultset Name
++  schema_name   -- Schema Name
++  db_dsn        -- dsn connect info
++  class_prefix  -- [OPTIONAL] Prefix for generated classes (Default: '')
++  label         -- [OPTIONAL] Flag to toggle generation of form labels (Default: 0)
++  label_column  -- [OPTIONAL] Flag to toggle generation of dummy form labels_columns for type: 'select' (Default: 0)
++
++This package should be considered still experimental since the output,
++of the generated classes will be changed from time to time.  This should
++not impact the main usage for this module that we had in mind, that is
++generating the initial version of a FormHandler form class, copying
++it to the project and modifying it.
++
++This script is installed into the system with the rest of FormHandler.
+ 
+ =head1 VERSION
+ 
diff --git a/debian/patches/rename-script b/debian/patches/rename-script
new file mode 100644
index 0000000..6eb9374
--- /dev/null
+++ b/debian/patches/rename-script
@@ -0,0 +1,34 @@
+Description: rename form_generator.pl script
+ upstream script name is too generic. This patch reneams the file (and its manpage) at installation time. Doc refenence to this script are also modified
+Author: dod
+--- a/lib/HTML/FormHandler/Generator/DBIC.pm
++++ b/lib/HTML/FormHandler/Generator/DBIC.pm
+@@ -111,7 +111,7 @@
+ my $form_template = <<'END';
+ # Generated automatically with HTML::FormHandler::Generator::DBIC
+ # Using following commandline:
+-# form_generator.pl --rs_name=[% rs_name %][% IF label==1 %] --label[% END %][% IF label_column==1 %] --label_column[% END %] --schema_name=[% schema_name %][% IF class_prefix != '' %] --class_prefix=[% class_prefix %][% END %] --db_dsn=[% db_dsn %]
++# dbic_form_generator --rs_name=[% rs_name %][% IF label==1 %] --label[% END %][% IF label_column==1 %] --label_column[% END %] --schema_name=[% schema_name %][% IF class_prefix != '' %] --class_prefix=[% class_prefix %][% END %] --db_dsn=[% db_dsn %]
+ {
+     package [% config.class %]Form;
+     use HTML::FormHandler::Moose;
+@@ -371,7 +371,7 @@
+ 
+ =head1 SYNOPSIS
+ 
+-   form_generator.pl --rs_name=Book --schema_name=BookDB::Schema::DB
++   dbci_form_generator --rs_name=Book --schema_name=BookDB::Schema::DB
+             --db_dsn=dbi:SQLite:t/db/book.db > BookForm.pm
+ 
+ =head1 DESCRIPTION
+--- a/script/form_generator.pl
++++ b/script/form_generator.pl
+@@ -17,7 +17,7 @@
+ 
+ =head1 NAME
+ 
+-form_generator - form generator
++dbic_form_generator - form generator
+ 
+ =head1 VERSION
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e9fbcbe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+rename-script
+fix_man_page

-- 
Debian packaging of HTML-FormHandler-Model-DBIC CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list