debian/0000755000000000000000000000000012154475211007170 5ustar debian/rules0000755000000000000000000000003512154475211010246 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000263712154475211010603 0ustar Source: libmakefile-parser-perl Maintainer: Debian Perl Group Uploaders: Mikhail Gusarov , Salvatore Bonaccorso Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: libclass-accessor-perl, libclass-trigger-perl, libfile-slurp-perl, libipc-run3-perl, liblist-moreutils-perl, libmakefile-dom-perl, libtest-pod-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libmakefile-parser-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmakefile-parser-perl.git Homepage: https://metacpan.org/release/Makefile-Parser/ Package: libmakefile-parser-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libclass-accessor-perl, libclass-trigger-perl, libfile-slurp-perl, libipc-run3-perl, liblist-moreutils-perl, libmakefile-dom-perl Description: simple Perl Makefile parser Makefile::Parser a simple Perl Makefile parser, able to parse most of syntax constructs supported both by Microsoft Nmake and GNU Make: variable definitions, explicit and implicit rules, substitution references and a subset of GNU make functions. debian/source/0000755000000000000000000000000012154475211010470 5ustar debian/source/format0000644000000000000000000000001412154475211011676 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000522412154475211011045 0ustar libmakefile-parser-perl (0.215-2) unstable; urgency=low * Team upload. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Add patch to fix POD issues. (Closes: #711576) * debian/copyright: switch formatting to Copyright-Format 1.0. * Set Standards-Version to 3.9.4 (no further changes). -- gregor herrmann Sat, 08 Jun 2013 02:27:42 +0200 libmakefile-parser-perl (0.215-1) unstable; urgency=low [ Harlan Lieberman-Berg ] * Team upload. * New upstream version (0.215). * Bump compat, debhelper to 8. Bump s-v to 3.9.2. * Cleanup d/copyright file with minor compliance tweaks. * Removed spelling patch which was accepted upstream. * Added patch to fix minor misspellings in the Makefile::Parser manpage. * Correct misspellings in Makefile::Parser::GMakeDB manpage as well. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Salvatore Bonaccorso ] * debian/copyright: Replace DEP5 Format-Specification URL from svn.debian.org to anonscm.debian.org URL. * Email change: Salvatore Bonaccorso -> carnil@debian.org * Refresh copyright information for included Test::Base * Add copyright information for included Test::Builder * Add copyright information for included Test::More * Update copyright years for included Module::Install * Update copyright years for upstream files * Update copyright years for debian/* packaging * Refer to Debian systems in general. Don't refer of only Debian GNU/Linux systems. -- Harlan Lieberman-Berg Fri, 30 Sep 2011 11:28:08 -0400 libmakefile-parser-perl (0.211-2) unstable; urgency=low * Add myself to Uploaders. * Add libipc-run3-perl to Depends as needed for the makesimple and pgmake-db scripts (Closes: #591680). * Bump Build-Depends on debhelper to (>= 7.2.13) for AutoInstall. * Convert to '3.0 (quilt)' source package format. * debian/copyright: - Add myself to copyright for debian/* packaging - Refresh debian/copyright to revision 135 of DEP5 format- specification for machine-readable copyright files. - Explicitly point to GPL-1 license text in common-licenses. * Bump Standards-Version to 3.9.1. * Add fix-spelling-error-in-manpage to fix a small spelling error in Makefile::AST manpage. -- Salvatore Bonaccorso Thu, 05 Aug 2010 09:18:44 +0200 libmakefile-parser-perl (0.211-1) unstable; urgency=low * Initial release (Closes: #542916). -- Mikhail Gusarov Sun, 23 Aug 2009 05:44:52 +0700 debian/compat0000644000000000000000000000000212154475211010366 0ustar 8 debian/patches/0000755000000000000000000000000012154475211010617 5ustar debian/patches/series0000644000000000000000000000005612154475211012035 0ustar fix-manpage-spelling-error pod-encoding.patch debian/patches/fix-manpage-spelling-error0000644000000000000000000001274512154475211015711 0ustar Description: Fix several minor spelling errors in the manpage generated from Parser.pm Author: Harlan Lieberman-Berg Bug: https://rt.cpan.org/Public/Bug/Display.html?id=70353 --- a/lib/Makefile/Parser.pm +++ b/lib/Makefile/Parser.pm @@ -976,7 +976,7 @@ T_FILES = t\main.cod.t t\bin2hex.exe.t t\hex2bin.exe.t $(MIN_T_FILES) DIRFILESEP = ^\ -"Simply expanded" variables' definition sytax in GUN make is also supported: +"Simply expanded" variables' definition syntax in GUN make is also supported: FOO := blah blah blah @@ -995,7 +995,7 @@ %.o : %.c $(CC) -c $< -Variable expansion sytax +Variable expansion syntax ${abc} @@ -1007,9 +1007,9 @@ $(MAKE) and $(CC). Currently they will be left untouched if they're not set explicitly in the Makefile. -Due to the current implementation, expansion of unrecognized built-in varaibles +Due to the current implementation, expansion of unrecognized built-in variables and variables not previously defined by Makefile will NOT be performed. This -behavior is different from any practial make tools, but is reasonable at +behavior is different from any practical make tools, but is reasonable at this early stage of this parser. =item Explicit Rules @@ -1036,7 +1036,7 @@ main.cod pat_cover.pod pat_cover.html types.cod \ hex2bin.exe hex2bin.obj -Specital variable $@ will be expanded using its value in the context. +Special variable $@ will be expanded using its value in the context. =item Implicit Rules @@ -1050,7 +1050,7 @@ %.exe : %.obj link /BATCH /NOLOGO $<; -The special varaibles $< and $* will be expanded according to the context. +The special variables $< and $* will be expanded according to the context. =item Old-Fashioned Suffix Rules @@ -1157,7 +1157,7 @@ all : ; echo 'hello, world!' -Specital variable $@ will be expanded using its value in the context. +Special variable $@ will be expanded using its value in the context. =back @@ -1256,11 +1256,11 @@ =item C<< @roots = $obj->roots() >> The C method returns the "root targets" in Makefile. The targets -which there're no other targets depends on are called the I. +which there are no other targets depends on are called the I. For example, I, I, and I are all root targets in the Makefile generated by the I module. On the other hand, I and I are not, which may be -somewhat counterintuitive. That's because there're some other targets +somewhat counter-intuitive. That's because there are some other targets depend on I, I, or both. The type of the returned list is an array of Makefile::Target objects. --- a/lib/Makefile/Parser/GmakeDB.pm +++ b/lib/Makefile/Parser/GmakeDB.pm @@ -421,13 +421,13 @@ The result of the parser is a makefile AST defined by L. -The "data base output listing" generated by C is a detailed listing for GNU make's internal data structures, which is essentially the AST used by C. According to GNU make's current maintainer, Paul Smith, this feature is provided primarily for debuging the user's own makefiles, and it also helps the GNU make developer team to diagnose the flaws in make itself. Incidentally this output is conformed to the GNU makefile syntax, and a lot of important information is provided in the form of makefile comments. Therefore, my GmakeDB parser is able to reuse the L module to parse this output listing. +The "data base output listing" generated by C is a detailed listing for GNU make's internal data structures, which is essentially the AST used by C. According to GNU make's current maintainer, Paul Smith, this feature is provided primarily for debugging the user's own makefiles, and it also helps the GNU make developer team to diagnose the flaws in make itself. Incidentally this output is conformed to the GNU makefile syntax, and a lot of important information is provided in the form of makefile comments. Therefore, my GmakeDB parser is able to reuse the L module to parse this output listing. The data base output from GNU make can be divided into several clearly-separated segments. They're file header, "Variables", "Files", "VPATH Search Paths", as well as the last resource stats information. -The contents of these segments are mostly obvious. The Files segment may deserve some explanation. It is the place for explict rules. +The contents of these segments are mostly obvious. The Files segment may deserve some explanation. It is the place for explicit rules. -Now let's take the Variables segment as an example to demonstrate the format of the data base listing: +Now let's take the Variables segment as an example to demonstrate the format of the data base listing: # Variables @@ -496,7 +496,7 @@ =item * -GNU make does not escape meta characters appeared in rule targes and prerequisites in its data base listing. Examples are C<:>, C<\>, and C<#>. This bug has been reported to the GNU make team as C. +GNU make does not escape meta characters appeared in rule targets and prerequisites in its data base listing. Examples are C<:>, C<\>, and C<#>. This bug has been reported to the GNU make team as C. This bug has not yet been fixed on the C side, so I have to work around this issue by preprocessing the data base listing in the L script. debian/patches/pod-encoding.patch0000644000000000000000000000070112154475211014204 0ustar Description: add encoding to POD Origin: vendor Bug: https://rt.cpan.org/Ticket/Display.html?id=77737 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=77737 Author: gregor herrmann Last-Update: 2013-06-08 --- a/lib/Makefile/AST/Evaluator.pm +++ b/lib/Makefile/AST/Evaluator.pm @@ -268,6 +268,8 @@ 1; __END__ +=encoding utf8 + =head1 NAME Makefile::AST::Evaluator - Evaluator and runtime for Makefile::AST instances debian/copyright0000644000000000000000000000373412154475211011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Makefile-Parser Upstream-Contact: Agent Zhang Source: https://metacpan.org/release/Makefile-Parser/ Files: * Copyright: 2005-2011, Zhang "agentzh" Yichun (章亦春) License: Artistic or GPL-1+ Files: lib/Makefile/AST/* script/pgmake-db Copyright: 2007-2008 Agent Zhang License: Artistic or GPL-1+ Files: script/plmake Copyright: 2007 Agent Zhang License: Artistic or GPL-1+ Files: inc/Test/Base.pm inc/Test/Base/* Copyright: 2005-2009, Brian Ingerson License: Artistic or GPL-1+ Files: inc/Test/More.pm Copyright: 2001-2008, Michael G Schwern License: Artistic or GPL-1+ Files: inc/Test/Builder.pm inc/Test/Builder/* Copyright: 2002-2008, chromatic 2002-2008, Michael G Schwern License: Artistic or GPL-1+ Files: inc/Spiffy.pm Copyright: 2006, Ingy döt Net 2004, Brian Ingerson License: Artistic or GPL-1+ Files: inc/Module/* Copyright: 2002-2011, Adam Kennedy 2002-2011, Audrey Tang 2002-2011, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* Copyright: 2009, Mikhail Gusarov 2010-2011, Salvatore Bonaccorso License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000017512154475211010224 0ustar version=3 https://metacpan.org/release/Makefile-Parser/ \ .*/Makefile-Parser-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$