1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

This libary can serve as an advanced lexer for (GNU) makefiles. It

parses makefiles as "documents" and the parsing is lossless. The
results are data structures similar to DOM trees. The DOM trees hold
every single bit of the information in the original input files,
including white spaces, blank lines and makefile comments. That means
it's possible to reproduce the original makefiles from the DOM trees.
In addition, each node of the DOM trees is modifiable and so is the
whole tree, just like the PPI module used for Perl source parsing and
the HTML::TreeBuilder module used for parsing HTML source.

WWW:	http://search.cpan.org/dist/Makefile-DOM/

PR:		ports/122843
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Cheng-Lung Sung 2008-04-18 06:04:08 +00:00
parent 61c774574d
commit fa976d2aed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211498
5 changed files with 79 additions and 0 deletions

View File

@ -435,6 +435,7 @@
SUBDIR += p5-MARC-Lint
SUBDIR += p5-MARC-Record
SUBDIR += p5-MKDoc-XML
SUBDIR += p5-Makefile-DOM
SUBDIR += p5-Makefile-Parser
SUBDIR += p5-MathML-Entities
SUBDIR += p5-Net-YASA

View File

@ -0,0 +1,33 @@
# New ports collection makefile for: p5-Makefile-DOM
# Date created: 2008-04-17
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= Makefile-DOM
PORTVERSION= 0.004
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/A/AG/AGENT
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= Simple DOM parser for Makefiles
RUN_DEPENDS= p5-Clone>=0.18:${PORTSDIR}/devel/p5-Clone \
p5-List-MoreUtils>=0.21:${PORTSDIR}/lang/p5-List-MoreUtils \
p5-Params-Util>=0.22:${PORTSDIR}/devel/p5-Params-Util
PERL_CONFIGURE= 5.6.1+
MAN3= MDOM::Dumper.3 \
MDOM::Element.3 \
MDOM::Node.3 \
MDOM::Token.3 \
MDOM::Token::Comment.3 \
MDOM::Token::Separator.3 \
MDOM::Token::Whitespace.3 \
Makefile::DOM.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Makefile-DOM-0.004.tar.gz) = 2860a83edc7396077716c63f30c12446
SHA256 (Makefile-DOM-0.004.tar.gz) = 04535715ba9bbd79118524f54594630dd66b06b7d59afd61da411ecfb5094a63
SIZE (Makefile-DOM-0.004.tar.gz) = 85761

View File

@ -0,0 +1,11 @@
This libary can serve as an advanced lexer for (GNU) makefiles. It
parses makefiles as "documents" and the parsing is lossless. The
results are data structures similar to DOM trees. The DOM trees hold
every single bit of the information in the original input files,
including white spaces, blank lines and makefile comments. That means
it's possible to reproduce the original makefiles from the DOM trees.
In addition, each node of the DOM trees is modifiable and so is the
whole tree, just like the PPI module used for Perl source parsing and
the HTML::TreeBuilder module used for parsing HTML source.
WWW: http://search.cpan.org/dist/Makefile-DOM/

View File

@ -0,0 +1,31 @@
@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Makefile/DOM/.packlist
%%SITE_PERL%%/MDOM/Assignment.pm
%%SITE_PERL%%/MDOM/Command.pm
%%SITE_PERL%%/MDOM/Directive.pm
%%SITE_PERL%%/MDOM/Document.pm
%%SITE_PERL%%/MDOM/Document/Gmake.pm
%%SITE_PERL%%/MDOM/Dumper.pm
%%SITE_PERL%%/MDOM/Element.pm
%%SITE_PERL%%/MDOM/Node.pm
%%SITE_PERL%%/MDOM/Rule.pm
%%SITE_PERL%%/MDOM/Rule/Simple.pm
%%SITE_PERL%%/MDOM/Rule/StaticPattern.pm
%%SITE_PERL%%/MDOM/Token.pm
%%SITE_PERL%%/MDOM/Token/Bare.pm
%%SITE_PERL%%/MDOM/Token/Comment.pm
%%SITE_PERL%%/MDOM/Token/Continuation.pm
%%SITE_PERL%%/MDOM/Token/Interpolation.pm
%%SITE_PERL%%/MDOM/Token/Modifier.pm
%%SITE_PERL%%/MDOM/Token/Separator.pm
%%SITE_PERL%%/MDOM/Token/Whitespace.pm
%%SITE_PERL%%/MDOM/Unknown.pm
%%SITE_PERL%%/MDOM/Util.pm
%%SITE_PERL%%/Makefile/DOM.pm
@dirrmtry %%SITE_PERL%%/Makefile
@dirrmtry %%SITE_PERL%%/MDOM/Token
@dirrmtry %%SITE_PERL%%/MDOM/Rule
@dirrmtry %%SITE_PERL%%/MDOM/Document
@dirrmtry %%SITE_PERL%%/MDOM
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Makefile/DOM
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Makefile