diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2004-03-29 16:58:54 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2004-03-29 16:58:54 +0000 |
commit | 831eb03be67bdb926e9a31777c9775f8feff5b4b (patch) | |
tree | 95f5483da86718fa9f4e56a26f08dc4c810c13ba /devel/p5-Class-XPath | |
parent | f146fe4f5f6b6beb5fdc4677d6f9caea13cf721c (diff) | |
download | ports-831eb03be67bdb926e9a31777c9775f8feff5b4b.tar.gz ports-831eb03be67bdb926e9a31777c9775f8feff5b4b.zip |
Notes
Diffstat (limited to 'devel/p5-Class-XPath')
-rw-r--r-- | devel/p5-Class-XPath/Makefile | 32 | ||||
-rw-r--r-- | devel/p5-Class-XPath/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-Class-XPath/pkg-descr | 12 | ||||
-rw-r--r-- | devel/p5-Class-XPath/pkg-plist | 5 |
4 files changed, 51 insertions, 0 deletions
diff --git a/devel/p5-Class-XPath/Makefile b/devel/p5-Class-XPath/Makefile new file mode 100644 index 000000000000..3c035022739f --- /dev/null +++ b/devel/p5-Class-XPath/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: Class-XPath +# Date created: Mon Mar 29 19:33:38 CST 2004 +# Whom: Cheng-Lung Sung <clsung@dragon2.net> +# +# $FreeBSD$ +# + +PORTNAME= Class-XPath +PORTVERSION= 1.4 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Class +PKGNAMEPREFIX= p5- + +MAINTAINER= clsung@dragon2.net +COMMENT= Base class to add xpath matching to object trees + +PERL_CONFIGURE= yes + +MAN3= Class::XPath.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +post-patch: + @${PERL} -i -pe '$$_ = "" if /use 5.006/;' \ + -e 's/^our (\S+)/use vars qw($$1); $$1/;' \ + -e 's/(use|no) warnings[^;]*;//' \ + ${WRKSRC}/Makefile.PL ${WRKSRC}/XPath.pm +.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-Class-XPath/distinfo b/devel/p5-Class-XPath/distinfo new file mode 100644 index 000000000000..842681ca1a77 --- /dev/null +++ b/devel/p5-Class-XPath/distinfo @@ -0,0 +1,2 @@ +MD5 (Class-XPath-1.4.tar.gz) = 22ff3d2536027f3a9f59c6eb849fa610 +SIZE (Class-XPath-1.4.tar.gz) = 10802 diff --git a/devel/p5-Class-XPath/pkg-descr b/devel/p5-Class-XPath/pkg-descr new file mode 100644 index 000000000000..042932f4bb0d --- /dev/null +++ b/devel/p5-Class-XPath/pkg-descr @@ -0,0 +1,12 @@ +This module adds XPath-style matching to your object trees. This means +that you can find nodes using an XPath-esque query with "match()" from +anywhere in the tree. Also, the "xpath()" method returns a unqique path +to a given node which can be used as an identifier. + +NOTE: This module is not yet a complete XPath implementation. Over +time I expect the subset of XPath supported to grow. See the SYNTAX +documentation in the module POD for details on the current level of +support. + +WWW: http://search.cpan.org/dist/Class-XPath/ +Author: Sam Tregar <sam@tregar.com> diff --git a/devel/p5-Class-XPath/pkg-plist b/devel/p5-Class-XPath/pkg-plist new file mode 100644 index 000000000000..375255a62860 --- /dev/null +++ b/devel/p5-Class-XPath/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XPath/.packlist +%%SITE_PERL%%/Class/XPath.pm +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XPath +@unexec rmdir %D/%%SITE_PERL%%/Class 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true |