Commits

Shlomi Fish committed 3d2c1e7

Convert the build system to dzil.

Comments (0)

Files changed (7)

perl/modules/XML-Grammar-Fiction/Build.PL

-use strict;
-use warnings;
-
-use File::Spec;
-use lib File::Spec->catdir(File::Spec->curdir(), "inc");
-
-use XML::Grammar::Fiction::Builder;
-
-my $builder = XML::Grammar::Fiction::Builder->new(
-    module_name         => 'XML::Grammar::Fiction',
-    license             => 'mit',
-    dist_author         => 'Shlomi Fish <shlomif@cpan.org>',
-    dist_version_from   => 'lib/XML/Grammar/Fiction.pm',
-    configure_requires => {
-        'strict' => 0,
-        'warnings' => 0,
-        'File::Spec' => 0,
-        'Module::Build' => 0,
-    },
-    build_requires => {
-        'Config' => 0,
-        'File::Find' => 0,
-        'File::Spec' => 0,
-        'strict' => 0,
-        'Test::More' => 0,
-        'Test::XML' => '0.08',
-        'warnings' => 0,
-        'XML::LibXML' => 0,
-        'XML::SemanticDiff' => '1.0000',
-    },
-    requires =>
-    {
-        'autodie' => 0,
-        'Carp' => 0,
-        'Exporter' => 0,
-        'Data::Dumper' => 0,
-        'Exception::Class' => 0,
-        'File::ShareDir' => 0,
-        'Getopt::Long' => 0,
-        'HTML::Entities' => 0,
-        'List::MoreUtils' => 0,
-        'List::Util' => 0,
-        'Moo' => 0,
-        'MooX' => 0,
-        'MooX::late' => 0,
-        'Parse::RecDescent' => 0,
-        'strict' => 0,
-        'warnings' => 0,
-        'XML::LibXML' => 0,
-        'XML::LibXSLT' => 0,
-        'XML::Writer' => 0,
-    },
-    add_to_cleanup      => [ 'XML-Grammar-Fiction-*' ],
-    create_makefile_pl => 'passthrough',
-    meta_merge =>
-    {
-        resources =>
-        {
-            repository => "https://bitbucket.org/shlomif/fiction-xml",
-            homepage => "http://www.shlomifish.org/open-source/projects/XML-Grammar/Fiction/",
-        },
-        keywords =>
-        [
-            "authoring",
-            "cinema",
-            "creative writing",
-            "films",
-            "grammar",
-            "movies",
-            "parsing",
-            "fiction",
-            "story",
-            "stories",
-            "noveilla",
-            "noveillas",
-            "novels",
-            "novel",
-            "writing",
-            "xml",
-            "xml-libxml",
-            "xslt",
-        ],
-    },
-    # In order to run the screenplay tests.
-    test_files => "t/*.t t/*/*.t",
-);
-
-$builder->create_build_script();

perl/modules/XML-Grammar-Fiction/Changes

     by the tests.
     * A lot of refactoring and cleanup - moved some modules from
     XML-Grammar-Fiction to XML-Grammar-FictionBase .
-    
+
 0.5.1       Sun May 22 09:33:43 IDT 2011
     * Fix the handling of entities at the start of the opening line of
-    paragraphs in the Fiction-Text . See 
+    paragraphs in the Fiction-Text . See
     t/fiction/data/proto-text/paras-with-entities-at-start-of-line.txt .
 
 0.5.0       Sat May 21 23:20:43 IDT 2011
     * Add support for the <blockquote> tag to Fiction-XML / Fiction-Text.
 
 0.3.0       Tue May 17 22:59:17 IDT 2011
-    * Add extradata/screenplay-xml-to-tei.xslt and 
+    * Add extradata/screenplay-xml-to-tei.xslt and
     lib/XML/Grammar/Screenplay/ToTEI.pm - add tests for them.
         - They convert Screenplay-XML into TEI - Text Encoding Initiative,
-        a markup language for digital representation of texts (especially 
-        artsy texts such as screenplays, prose or poems) 
+        a markup language for digital representation of texts (especially
+        artsy texts such as screenplays, prose or poems)
             - http://www.tei-c.org/ .
         - This will allow for easier conversion into XSL-FO, as well as many
         other formats.
 0.1.6       Sat Apr  9 16:15:17 IDT 2011
     * Now handling the <a /> element only in XML::Grammar::Screenplay - it
     does not exist in ::Fiction.
-    * Add support for the <a href="$URL">$CONTENT</a> tag in Fiction-Text 
+    * Add support for the <a href="$URL">$CONTENT</a> tag in Fiction-Text
     which is translated into <span xlink:href="$URL" >$CONTENT</span> in
     the Fiction-XML grammar.
 
     in XML-Grammar-Screenplay.
 
 0.1.4       Mon Apr  4 00:50:07 IDT 2011
-    * ::Screenplay - Fix the innerdesc on the start of the line in the middle 
+    * ::Screenplay - Fix the innerdesc on the start of the line in the middle
     of the paragraph. Like:
 
 -----------------
 +$self->_prev_line_is_empty(scalar(${$self->curr_line_ref()} =~ m{\A\s*\z}));
 -----------------
 
-        - they cancelled each other most of the time except for in this 
+        - they cancelled each other most of the time except for in this
         case.
 
     * ::Screenplay - add support for Screenplay-Text's <i> tags which get
         problems.
 
 0.1.2       Thu Apr 29 22:47:04 IDT 2010
-        - In the Build.PL - merged 'test_requires' into 'build_requires'. 
+        - In the Build.PL - merged 'test_requires' into 'build_requires'.
         Turns out that 'test_requires' is a Module::Installism.
 
 0.1.1       Tue Apr 27 10:11:00 IDT 2010
         - Made sure XML-Grammar-Screenplay used
-        XML::Grammar::Fiction::ConfigData instead of 
+        XML::Grammar::Fiction::ConfigData instead of
         XML::Grammar::Screenplay::ConfigData . This broke the installation
         and tests on the following test reports:
             - http://www.cpantesters.org/cpan/report/7167671
             - http://www.cpantesters.org/cpan/report/7167759
             - http://www.cpantesters.org/cpan/report/7167134
-        
+
 0.1.0       Mon Apr 26 19:25:55 IDT 2010
         - Merged in the XML-Grammar-Screenplay into this module.
         - Converted XML-Grammar-Screenplay to a non-procedurally-recursive
         - Add the TODO file.
 
 0.0.4       Sat Mar 13 00:28:52 IST 2010
-        - Implemented better error handling and presentation in 
+        - Implemented better error handling and presentation in
         ::App::FromProto.
             - making use of Exception-Class-based classes.
         - Removed the DOCTYPE from the DocBook/XML output (it was a DocBook
         - Various refactorings / code cleanup:
             - removed old methods.
             - got rid of the _with_curr_line() anti-abstrcation.
-            - converted the parsing exceptions to Exception-Class 
+            - converted the parsing exceptions to Exception-Class
             ( see lib/XML/Grammar/Fiction/Err.pm )
             - Extract the Struct/Tag.pm helper class.
             - extracted the lib/XML/Grammar/Fiction/RendererBase.pm
             and lib/XML/Grammar/Fiction/RNG_Renderer.pm base classes.
-            - Convert the proto-text parser (::Parser::QnD) to a 
+            - Convert the proto-text parser (::Parser::QnD) to a
             non-procedurally recursive one and extracted many methods from it.
 
 0.0.1       Thu Nov  5 18:59:27 IST 2009
         - Converted the generated Screenplay-XML to its own namespace:
         http://web-cpan.berlios.de/modules/XML-Grammar-Screenplay/screenplay-xml-0.2/
         - Adapted the stylesheets, the RelaxNG schema, etc. to that while
-        adapting the test scripts. 
+        adapting the test scripts.
 
 0.0503  Wed Jul 29 10:12:38 IDT 2009
         - Included a "package XML::Grammar::Screenplay::FromProto::Nodes"
 
 0.0501  Tue Mar  3 19:38:22 IST 2009
         - Changed the Build.PL to use XML::Grammar::Builder.
-            - changed the tests accordingly, due to the lack of 
+            - changed the tests accordingly, due to the lack of
             "blib/extradata".
 
 0.0500  Fri Feb 27 17:48:52 IST 2009
 
 0.04    Mon Jun 11 21:26:48 IDT 2007
         - Added the Quick-and-Dirty FromProto parser, which is slightly faster,
-        than the Parse::RecDescent one and with much better diagnostics. 
+        than the Parse::RecDescent one and with much better diagnostics.
         - More parsers can be added later.
         - Broke some compatibility - now require "use"-ing the parser class.
 
         - Added the title="" attribute to the scene tag.
         - Added support for SGML-like entities
         - Added the direct ScreenplayXML -> HTML processor.
-        
+
 0.0101  Thu May 17 19:14:01 IDT 2007
-        - BUG FIX: Changed to open the filename in 
-        XML::Grammar::Screenplay::FromProto in ":utf8" mode. 
+        - BUG FIX: Changed to open the filename in
+        XML::Grammar::Screenplay::FromProto in ":utf8" mode.
         - BUG FIX: added more dependencies to the Build.PL.
 
-0.01    
+0.01
         First version, released on an unsuspecting world.
 

perl/modules/XML-Grammar-Fiction/MANIFEST

-Build.PL
-Changes
-contrib/docbook-to-fiction-xml-txt.pl
-extradata/fiction-xml.rng
-extradata/fiction-xml-to-docbook.xslt
-extradata/fiction-xml-to-html.xslt
-extradata/screenplay-xml.dtd
-extradata/screenplay-xml.rng
-extradata/screenplay-xml-to-docbook.xslt
-extradata/screenplay-xml-to-html.xslt
-extradata/screenplay-xml-to-tei.xslt
-extradata/screenplay-xml-to-xsl-fo.xslt
-inc/Test/Run/Builder.pm
-inc/XML/Grammar/Builder.pm
-inc/XML/Grammar/Fiction/Builder.pm
-lib/XML/Grammar/Fiction/App/FromProto.pm
-lib/XML/Grammar/Fiction/App/ToDocBook.pm
-lib/XML/Grammar/Fiction/App/ToHTML.pm
-lib/XML/Grammar/FictionBase/Event.pm
-lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm
-lib/XML/Grammar/FictionBase/FromProto/Parser/XmlIterator.pm
-lib/XML/Grammar/FictionBase/TagsTree2XML.pm
-lib/XML/Grammar/FictionBase/XSLT/Converter.pm
-lib/XML/Grammar/Fiction/Err.pm
-lib/XML/Grammar/Fiction/FromProto/Nodes.pm
-lib/XML/Grammar/Fiction/FromProto/Parser.pm
-lib/XML/Grammar/Fiction/FromProto/Parser/QnD.pm
-lib/XML/Grammar/Fiction/FromProto.pm
-lib/XML/Grammar/Fiction.pm
-lib/XML/Grammar/Fiction/RNG_Renderer.pm
-lib/XML/Grammar/Fiction/Struct/Tag.pm
-lib/XML/Grammar/Fiction/ToDocBook.pm
-lib/XML/Grammar/Fiction/ToHTML.pm
-lib/XML/Grammar/Screenplay/App/FromProto.pm
-lib/XML/Grammar/Screenplay/App/ToDocBook.pm
-lib/XML/Grammar/Screenplay/App/ToHTML.pm
-lib/XML/Grammar/Screenplay/Base.pm
-lib/XML/Grammar/Screenplay/FromProto/Parser.pm
-lib/XML/Grammar/Screenplay/FromProto/Parser/QnD.pm
-lib/XML/Grammar/Screenplay/FromProto.pm
-lib/XML/Grammar/Screenplay.pm
-lib/XML/Grammar/Screenplay/ToDocBook.pm
-lib/XML/Grammar/Screenplay/ToHTML.pm
-lib/XML/Grammar/Screenplay/ToTEI.pm
-lib/XML/Grammar/Screenplay/XSLT/Base.pm
-Makefile.PL
-MANIFEST
-META.yml # Will be created by "make dist"
-README
-rejects/lib/XML/Grammar/Fiction/FromProto/Parser/PRD.pm
-rejects/lib/XML/Grammar/Fiction/RendererBase.pm
-rejects/lib/XML/Grammar/Fiction/RendererBase.pm.2
-rejects/lib/XML/Grammar/Screenplay/FromProto/Parser/PRD.pm
-rejects/lib/XML/Grammar/Screenplay/Struct/Tag.pm
-rejects/proto-text-to-xml.t
-rejects/QnD.pm
-rejects/Screenplay_Parser_QnD.pm
-scripts/bump-version-number.pl
-scripts/run_agg_tests.t
-scripts/tag-release.pl
-t/00-libxml-basic.t
-t/00-load.t
-t/app-to-html.t
-t/base/line-iterator-unit.t
-t/boilerplate.t
-t/fiction/data/docbook/a-href-with-id-and-lang.docbook.xml
-t/fiction/data/docbook/sections-a-href.docbook.xml
-t/fiction/data/docbook/sections-and-paras.docbook.xml
-t/fiction/data/docbook/sections-p-b-i-comments.docbook.xml
-t/fiction/data/docbook/with-blockquote.docbook.xml
-t/fiction/data/docbook/with-blockquote-with-lang-and-id.docbook.xml
-t/fiction/data/docbook/with-internal-description.docbook.xml
-t/fiction/data/docbook/with-programlisting.docbook.xml
-t/fiction/data/docbook/with-span.docbook.xml
-t/fiction/data/docbook/with-ul-ol-li.docbook.xml
-t/fiction/data/docbook/with-xml-lang-attribute.docbook.xml
-t/fiction/data/docbook/with-xml-lang-attr-in-section.docbook.xml
-t/fiction/data/proto-text/a-href-with-id-and-lang.txt
-t/fiction/data/proto-text-invalid/inner-desc-inside-char-addressing.txt
-t/fiction/data/proto-text-invalid/leading-space-at-para-start.txt
-t/fiction/data/proto-text-invalid/leading-space.txt
-t/fiction/data/proto-text-invalid/no-right-angle.txt
-t/fiction/data/proto-text-invalid/not-start-with-tag.txt
-t/fiction/data/proto-text-invalid/wrong-close-tag.txt
-t/fiction/data/proto-text-invalid/wrong-closing-inner-tag.txt
-t/fiction/data/proto-text/paras-with-entities-at-start-of-line.txt
-t/fiction/data/proto-text/sections-a-href.txt
-t/fiction/data/proto-text/sections-and-paras.txt
-t/fiction/data/proto-text/sections-p-b-i-comments.txt
-t/fiction/data/proto-text/sections-p-b-i.txt
-t/fiction/data/proto-text/with-blockquote.txt
-t/fiction/data/proto-text/with-blockquote-with-lang-and-id.txt
-t/fiction/data/proto-text/with-internal-description.txt
-t/fiction/data/proto-text/with-programlisting.txt
-t/fiction/data/proto-text/with-span.txt
-t/fiction/data/proto-text/with-style-tag-at-start-of-paragraph.txt
-t/fiction/data/proto-text/with-ul-ol-li.txt
-t/fiction/data/proto-text/with-xml-lang-attribute.txt
-t/fiction/data/proto-text/with-xml-lang-attr-in-section.txt
-t/fiction/data/xml/a-href-with-id-and-lang.xml
-t/fiction/data/xml/paras-with-entities-at-start-of-line.xml
-t/fiction/data/xml/sections-a-href.xml
-t/fiction/data/xml/sections-and-paras.xml
-t/fiction/data/xml/sections-p-b-i-comments.xml
-t/fiction/data/xml/sections-p-b-i.xml
-t/fiction/data/xml/with-blockquote-with-lang-and-id.xml
-t/fiction/data/xml/with-blockquote.xml
-t/fiction/data/xml/with-programlisting.xml
-t/fiction/data/xml/with-span.xml
-t/fiction/data/xml/with-style-tag-at-start-of-paragraph.xml
-t/fiction/data/xml/with-ul-ol-li.xml
-t/fiction/data/xml/with-xml-lang-attribute.xml
-t/fiction/data/xml/with-xml-lang-attr-in-section.xml
-t/fiction/proto-text-invalid.t
-t/fiction/proto-text-to-xml-using-custom-parser.t
-t/fiction/qnd-parser-unit.t
-t/fiction/to-docbook.t
-t/fiction/to-xhtml.t
-t/lib/run-test-1/XML/Grammar/Fiction/ConfigData.pm
-TODO
-t/pod-coverage.t
-t/pod.t
-t/screenplay/00-load.t
-t/screenplay/app-to-html.t
-t/screenplay/boilerplate.t
-t/screenplay/data/docbook/with-internal-description.docbook.xml
-t/screenplay/data/proto-text/dialogue-with-several-paragraphs.txt
-t/screenplay/data/proto-text-invalid/inner-desc-inside-char-addressing.txt
-t/screenplay/data/proto-text/nested-s.txt
-t/screenplay/data/proto-text/scenes-with-titles.txt
-t/screenplay/data/proto-text/two-nested-s.txt
-t/screenplay/data/proto-text/with-brs.txt
-t/screenplay/data/proto-text/with-colon-inside-description.txt
-t/screenplay/data/proto-text/with-comments.txt
-t/screenplay/data/proto-text/with-description.txt
-t/screenplay/data/proto-text/with-dialogue.txt
-t/screenplay/data/proto-text/with-entities.txt
-t/screenplay/data/proto-text/with-i-element-inside-paragraphs.txt
-t/screenplay/data/proto-text/with-img-element-inside-paragraphs.txt
-t/screenplay/data/proto-text/with-internal-description-at-start-of-line.txt
-t/screenplay/data/proto-text/with-internal-description.txt
-t/screenplay/data/proto-text/with-multi-line-comments.txt
-t/screenplay/data/proto-text/with-multi-para-desc.txt
-t/screenplay/data/proto-text/with-numeric-entities.txt
-t/screenplay/data/proto-text/with-tags-inside-paragraphs.txt
-t/screenplay/data/tei/dialogue-with-several-paragraphs.tei.xml
-t/screenplay/data/tei/nested-s.tei.xml
-t/screenplay/data/tei/scenes-with-titles.tei.xml
-t/screenplay/data/tei/two-nested-s.tei.xml
-t/screenplay/data/tei/with-brs.tei.xml
-t/screenplay/data/tei/with-colon-inside-description.tei.xml
-t/screenplay/data/tei/with-comments.tei.xml
-t/screenplay/data/tei/with-description.tei.xml
-t/screenplay/data/tei/with-dialogue.tei.xml
-t/screenplay/data/tei/with-entities.tei.xml
-t/screenplay/data/tei/with-i-element-inside-paragraphs.tei.xml
-t/screenplay/data/tei/with-internal-description-at-start-of-line.tei.xml
-t/screenplay/data/tei/with-internal-description.tei.xml
-t/screenplay/data/tei/with-multi-line-comments.tei.xml
-t/screenplay/data/tei/with-multi-para-desc.tei.xml
-t/screenplay/data/tei/with-numeric-entities.tei.xml
-t/screenplay/data/tei/with-tags-inside-paragraphs.tei.xml
-t/screenplay/data/xml/dialogue-with-several-paragraphs.xml
-t/screenplay/data/xml/nested-s.xml
-t/screenplay/data/xml/scenes-with-titles.xml
-t/screenplay/data/xml/two-nested-s.xml
-t/screenplay/data/xml/with-brs.xml
-t/screenplay/data/xml/with-colon-inside-description.xml
-t/screenplay/data/xml/with-comments.xml
-t/screenplay/data/xml/with-description.xml
-t/screenplay/data/xml/with-dialogue.xml
-t/screenplay/data/xml/with-entities.xml
-t/screenplay/data/xml/with-i-element-inside-paragraphs.xml
-t/screenplay/data/xml/with-img-element-inside-paragraphs.xml
-t/screenplay/data/xml/with-internal-description-at-start-of-line.xml
-t/screenplay/data/xml/with-internal-description.xml
-t/screenplay/data/xml/with-multi-line-comments.xml
-t/screenplay/data/xml/with-multi-para-desc.xml
-t/screenplay/data/xml/with-numeric-entities.xml
-t/screenplay/data/xml/with-tags-inside-paragraphs.xml
-t/screenplay/lib/run-test-1/XML/Grammar/Screenplay/ConfigData.pm
-t/screenplay/proto-text-invalid.t
-t/screenplay/proto-text-to-xml-using-custom-parser.t
-t/screenplay/qnd-parser-unit.t
-t/screenplay/to-docbook.t
-t/screenplay/to-tei.t
-t/screenplay/to-xhtml.t
-t/style-trailing-space.t
-META.json

perl/modules/XML-Grammar-Fiction/README

-XML-Grammar-Fiction / XML-Grammar-Screenplay
-
-This is a module implementing two XML grammars and two corresponding
-well-formed text-based languages - one for screenplays and one for free-form
-fiction. It contains:
-
-1. Converters from a well-formed plain text format to its custom XML format.
-
-2. Converters from its custom XML format to DocBook/XML.
-
-INSTALLATION
-
-To install this module, run the following commands:
-
-    perl Build.PL
-    ./Build
-    ./Build test
-    ./Build install
-
-
-SUPPORT AND DOCUMENTATION
-
-After installing, you can find documentation for this module with the perldoc command.
-
-    perldoc XML::Grammar::Screenplay
-    perldoc XML::Grammar::Fiction
-
-You can also look for information at:
-
-    The XML-Grammar-Fiction Homepage:
-        http://www.shlomifish.org/open-source/projects/XML-Grammar/Fiction/
-
-    MetaCPAN
-        https://metacpan.org/release/XML-Grammar-Fiction
-
-    Search CPAN
-        http://search.cpan.org/dist/XML-Grammar-Fiction
-
-    CPAN Request Tracker:
-        http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-Grammar-Fiction
-
-    AnnoCPAN, annotated CPAN documentation:
-        http://annocpan.org/dist/XML-Grammar-Fiction
-
-    CPAN Ratings:
-        http://cpanratings.perl.org/d/XML-Grammar-Fiction
-
-COPYRIGHT AND LICENCE
-
-Copyright (C) 2007 Shlomi Fish
-
-This program is released under the following license: MIT X11.
-

perl/modules/XML-Grammar-Fiction/TODO

 
 * Finish implementing the <image /> tag in the ::Screenplay.
 
+* Make sure «dzil test --all» runs all the tests in the sub-directories
+(«t/*/*.t») using runtest.
+
 Long term:
 ----------
 

perl/modules/XML-Grammar-Fiction/dist.ini

+name    = XML-Grammar-Fiction
+author  = Shlomi Fish <shlomif@cpan.org>
+license = MIT
+copyright_holder = Shlomi Fish
+copyright_year   = 2007
+
+[@Basic]
+[AutoPrereqs]
+[ModuleBuild]
+mb_class = XML::Grammar::Builder
+testing_command = runtest
+[PodSyntaxTests]
+[PodCoverageTests]
+[Test::Compile]
+fake_home = 1
+[PruneCruft]
+[VersionFromModule]
+[MetaResources]
+bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-Grammar-Fiction
+bugtracker.mailto = bug-xml-grammar-fiction@rt.cpan.org
+repository.url = ssh://hg@bitbucket.org/shlomif/perl-XML-Grammar-Fiction
+repository.web = http://bitbucket.org/shlomif/perl-XML-Grammar-Fiction
+repository.type = hg
+[PodWeaver]

perl/modules/XML-Grammar-Fiction/weaver.ini

+[@CorePrep]
+
+[-Encoding]
+
+[Generic / NAME]
+
+[Version]
+
+[Region  / prelude]
+
+
+[Generic / SYNOPSIS]
+[Generic / DESCRIPTION]
+[Generic / OVERVIEW]
+
+[Collect / ATTRIBUTES]
+command = attr
+
+[Collect / METHODS]
+command = method
+
+[Leftovers]
+
+[Region  / postlude]
+
+[Authors]
+[Legal]
+
+; [Generic / DESCRIPTION]
+; required = 1
+
+; [Generic / BUGS]
+
+; [Generic / Section::Bugs]
+; [Generic / Section::License]
+;
+[Bugs]
+[Support]
+all_modules = 1