embed XML directly into perl

This commit is contained in:
espie 2006-11-11 13:28:00 +00:00
parent 6db9a73aa7
commit 544a81a53f
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/11 13:28:00 espie Exp $
COMMENT= "embed XML directly into perl"
DISTNAME= XML-Literal-0.02
PKGNAME= p5-${DISTNAME}
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/}
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE=perl
RUN_DEPENDS= ::devel/p5-Sub-Override
REGRESS_DEPENDS=${RUN_DEPENDS}
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (XML-Literal-0.02.tar.gz) = d58288014e33999cbb9d3ff3324764fa
RMD160 (XML-Literal-0.02.tar.gz) = afcb2e9347f37dcdd90b53b97da49d67ca520b05
SHA1 (XML-Literal-0.02.tar.gz) = 62637448bd8cac9a6200ba61294484208d1e4afb
SIZE (XML-Literal-0.02.tar.gz) = 24559

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2006/11/11 13:28:00 espie Exp $
--- Makefile.PL.orig Sat Nov 11 14:19:27 2006
+++ Makefile.PL Sat Nov 11 14:19:33 2006
@@ -5,7 +5,7 @@ name 'XML-Literal';
license 'MIT';
all_from 'lib/XML/Literal.pm';
-requires 'Sub::Override';
+#requires 'Sub::Override';
include_deps 'ok';
include_deps 'Test::More';

View File

@ -0,0 +1,10 @@
This module takes one function at its "use" line. Afterwards,
every single-line "<...>" call that looks like a XML literal
will be processed with that function, instead of the built-in
shell "glob".
use XML::Simple;
use XML::Literal \&XMLin;
# Simple element
my $xml1 = <hr/>;

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/11 13:28:00 espie Exp $
${P5SITE}/XML/
${P5SITE}/XML/Literal.pm
@man man/man3p/XML::Literal.3p