diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..a57541a --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,8 @@ +libparse-recdescent-perl for Debian + +Please edit this to provide information specific to +this libparse-recdescent-perl Debian package. + + (Automatically generated by debmake Version 4.3.1) + + -- denghao Sat, 17 Sep 2022 11:17:10 +0300 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9b8f4f1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libparse-recdescent-perl (1.967015-ok1) yangtze; urgency=medium + + * Build for openkylin. + + -- denghao Sat, 17 Sep 2022 11:17:10 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f09f550 --- /dev/null +++ b/debian/control @@ -0,0 +1,34 @@ +Source: libparse-recdescent-perl +Section: perl +Priority: optional +Maintainer: OpenKylin Developers +Build-Depends: debhelper-compat (=13), + libmodule-build-perl, + perl +Build-Depends-Indep: libtest-pod-perl , + libtest-warn-perl +Testsuite: autopkgtest-pkg-perl +Standards-Version: 4.6.0 +Vcs-Browser: https://gitee.com/openkylin/libparse-recdescent-perl +Vcs-Git: https://gitee.com/openkylin/libparse-recdescent-perl.git +Homepage: https://metacpan.org/release/Parse-RecDescent/ +Rules-Requires-Root: no + +Package: libparse-recdescent-perl +Architecture: all +Depends: ${misc:Depends}, + ${perl:Depends} +Description: Perl module to create and use recursive-descent parsers + Parse::RecDescent incrementally generates top-down recursive-descent text + parsers from simple yacc-like grammar specifications. It provides: + . + * Regular expressions or literal strings as terminals (tokens) + * Multiple (non-contiguous) productions for any rule + * Repeated, optional and alternate sub-rules within productions + * Late-bound (run-time dispatched) sub-rules + * Full access to Perl within actions specified as part of the grammar + * Simple automated error reporting during parser generation and parsing + * The ability to commit to, uncommit to, or reject particular productions + during a parse + * Incremental extension of the parsing grammar (even during a parse) + * The ability to retrieve the generated parsing code diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bf65a45 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,124 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libparse-recdescent-perl +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: Build.PL + Changes + MANIFEST + META.json + META.yml + Makefile.PL + ToDo + demo/demo.c + demo/demo.pl + demo/demo_Cgrammar.pl + demo/demo_Cgrammar_v2.pl + demo/demo_LaTeXish.pl + demo/demo_LaTeXish_autoact.pl + demo/demo_NL2SQL.pl + demo/demo_OOautoparsetree.pl + demo/demo_OOparsetree.pl + demo/demo_PerlCSV.pl + demo/demo_another_Cgrammar.pl + demo/demo_arithmetic.pl + demo/demo_autorule.pl + demo/demo_autoscoresep.pl + demo/demo_autostub.pl + demo/demo_bad.pl + demo/demo_buildcalc.pl + demo/demo_calc.pl + demo/demo_codeblock.pl + demo/demo_cpp.pl + demo/demo_decomment.pl + demo/demo_decomment_nonlocal.pl + demo/demo_delete.pl + demo/demo_derived.pl + demo/demo_dot.pl + demo/demo_embedding.pl + demo/demo_errors.pl + demo/demo_eval.pl + demo/demo_implicit.pl + demo/demo_itemhash.pl + demo/demo_language.pl + demo/demo_leftassoc.pl + demo/demo_leftop.pl + demo/demo_lexer.pl + demo/demo_lisplike.pl + demo/demo_logic.pl + demo/demo_matchrule.pl + demo/demo_matchrule2.pl + demo/demo_mccoy.pl + demo/demo_metaRD.pm + demo/demo_methods.pl + demo/demo_operator.pl + demo/demo_opreps.pl + demo/demo_parsetree.pl + demo/demo_perlparsing.pl + demo/demo_piecewise.pl + demo/demo_precalc.pl + demo/demo_quicklist.pl + demo/demo_randomsentence.pl + demo/demo_recipe.pl + demo/demo_restructure_easy.pl + demo/demo_restructure_painful.pl + demo/demo_scoredsep.pl + demo/demo_selfmod.pl + demo/demo_separators.pl + demo/demo_simple.pl + demo/demo_simpleXML.pl + demo/demo_simplequery.pl + demo/demo_skipcomment.pl + demo/demo_street.pl + demo/demo_template.pl + demo/demo_textgen.pl + demo/demo_tokens.pl + demo/demo_undumper.pl + demo/demo_whoson.pl + t/00.load.t + t/01.basics.t + t/autotree.t + t/leftop_cap.t + t/pod.t + t/precompile.t + t/re_capture_return.t + t/reentry.t + t/reproducible.t + t/separated_repetition.t + t/skip.t + t/skip_dynamic.t + t/text.t + t/util.pl + tutorial/TPJ-PRD-proc.gif + tutorial/TPJ-yacc-proc.gif + tutorial/TPJ_maze.gif + tutorial/TPJ_tree.gif +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +Files: README +Copyright: 1997-2007 Damian Conway + AND LICENCE +License: __UNKNOWN__ + This library is free software; you can redistribute it and/or modify + it under the same terms as Perl itself. + +Files: lib/Parse/RecDescent.pm +Copyright: 1997-2007 Damian Conway C<< >>. All rights reserved. +License: __UNKNOWN__ + This module is free software; you can redistribute it and/or + __MANY_TOTAL_LINES__(6604lines) truncating at: modify it under the same terms as Perl itself. See L. + __MANY_TOTAL_LINES__(6605lines) truncating at: + . + __MANY_TOTAL_LINES__(6606lines) truncating at: + __MANY_TOTAL_LINES__(6607lines) truncating at: =head1 DISCLAIMER OF WARRANTY + +#---------------------------------------------------------------------------- +# xml and html files (skipped): +# tutorial/tutorial.html + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. diff --git a/debian/libparse-recdescent-perl.docs b/debian/libparse-recdescent-perl.docs new file mode 100644 index 0000000..4653a81 --- /dev/null +++ b/debian/libparse-recdescent-perl.docs @@ -0,0 +1 @@ +ToDo diff --git a/debian/libparse-recdescent-perl.examples b/debian/libparse-recdescent-perl.examples new file mode 100644 index 0000000..c173414 --- /dev/null +++ b/debian/libparse-recdescent-perl.examples @@ -0,0 +1 @@ +demo/* diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..71acaa7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + +%: + dh $@ + +override_dh_installexamples: + dh_installexamples + sed -i '1s|^#!\s*/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* + +override_dh_fixperms: + dh_fixperms + chmod -x $(TMP)/usr/share/doc/$(PACKAGE)/examples/* + +override_dh_auto_test: + dh_auto_test + perl -Iblib/lib $(CURDIR)/debian/test-arg-alternation.pl diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/test-arg-alternation.pl b/debian/test-arg-alternation.pl new file mode 100644 index 0000000..26b99d8 --- /dev/null +++ b/debian/test-arg-alternation.pl @@ -0,0 +1,16 @@ +#! /usr/bin/perl -sw + +use Parse::RecDescent; + +$grammar = +q{ + main : foo[ "ok" ] + foo : (token1[ $arg[0] ])(s /\|/) + token1 : 'a' + {print "$arg[0]\n"} +}; + +$parse = new Parse::RecDescent ($grammar); + +defined $parse->main('a | a') + or die "Arguments being passed to either implicit or alternations are lost"; diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..0fac0f7 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Archive: CPAN +Bug-Database: https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=Parse-RecDescent +Repository: https://github.com/jtbraun/Parse-RecDescent.git +Repository-Browse: https://github.com/jtbraun/Parse-RecDescent diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b691f98 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts="dversionmangle=s/\+dfsg//,repacksuffix=+dfsg" \ +https://metacpan.org/release/Parse-RecDescent .*/Parse-RecDescent-v?@ANY_VERSION@@ARCHIVE_EXT@$