aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2001-12-07 20:45:27 +0800
committertobez <tobez@FreeBSD.org>2001-12-07 20:45:27 +0800
commit001aa8b4aa87d278d96c0ef56210d3851ef23c37 (patch)
tree80085d48d57d469776c4de4876d240cd21fa7764 /textproc
parentce21443beaf1b31687d75af1c9b831835cecb5e4 (diff)
downloadfreebsd-ports-gnome-001aa8b4aa87d278d96c0ef56210d3851ef23c37.tar.gz
freebsd-ports-gnome-001aa8b4aa87d278d96c0ef56210d3851ef23c37.tar.zst
freebsd-ports-gnome-001aa8b4aa87d278d96c0ef56210d3851ef23c37.zip
Add p5-XML-Directory 0.84, a perl module which returns a content of
a directory as XML. PR: 32163 Submitted by: Sergey Skvortsov <skv@protey.ru>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-XML-Directory/Makefile33
-rw-r--r--textproc/p5-XML-Directory/distinfo1
-rw-r--r--textproc/p5-XML-Directory/pkg-comment1
-rw-r--r--textproc/p5-XML-Directory/pkg-descr12
-rw-r--r--textproc/p5-XML-Directory/pkg-plist11
6 files changed, 59 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 2080091d683d..39dd81966a8a 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -148,6 +148,7 @@
SUBDIR += p5-WDDX
SUBDIR += p5-XML-DOM
SUBDIR += p5-XML-DT
+ SUBDIR += p5-XML-Directory
SUBDIR += p5-XML-Dumper
SUBDIR += p5-XML-Encoding
SUBDIR += p5-XML-Filter-Base
diff --git a/textproc/p5-XML-Directory/Makefile b/textproc/p5-XML-Directory/Makefile
new file mode 100644
index 000000000000..3492341d1480
--- /dev/null
+++ b/textproc/p5-XML-Directory/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: XML::Directory
+# Date created: 4 Sep 2001
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= XML-Directory
+PORTVERSION= 0.84
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= XML
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= skv@protey.ru
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Notation3.pm:${PORTSDIR}/textproc/p5-RDF-Notation3
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= XML::Directory.3 XML::Directory::Apache.3 \
+ XML::Directory::Exception.3 XML::Directory::SAX.3 \
+ XML::Directory::String.3
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+pre-patch:
+ @find ${WRKSRC} -name "*.pm" | xargs ${PERL} -pi -e \
+ '$$package=$$1 if /^package\s+([^\s;]*);/; s!^require 5.005_62;!!; s!^use warnings;!!; s!^our\s+(\$$|@)(VERSION|ISA|EXPORT|EXPORT_OK)\s+=!$$1$${package}::$$2=!;'
+
+.include <bsd.port.mk>
diff --git a/textproc/p5-XML-Directory/distinfo b/textproc/p5-XML-Directory/distinfo
new file mode 100644
index 000000000000..8210db148af2
--- /dev/null
+++ b/textproc/p5-XML-Directory/distinfo
@@ -0,0 +1 @@
+MD5 (XML-Directory-0.84.tar.gz) = af3ce7168d7667d19f50e0b8a880d0e1
diff --git a/textproc/p5-XML-Directory/pkg-comment b/textproc/p5-XML-Directory/pkg-comment
new file mode 100644
index 000000000000..c7f2e8e005af
--- /dev/null
+++ b/textproc/p5-XML-Directory/pkg-comment
@@ -0,0 +1 @@
+Returns a content of directory as XML
diff --git a/textproc/p5-XML-Directory/pkg-descr b/textproc/p5-XML-Directory/pkg-descr
new file mode 100644
index 000000000000..560a6e1b375f
--- /dev/null
+++ b/textproc/p5-XML-Directory/pkg-descr
@@ -0,0 +1,12 @@
+This extension provides two classes: XML::Directory::String and
+XML::Directory::SAX. Their methods make it possible to set parameters
+such as level of details or maximal number of nested sub-directories
+and generate either string containing the resulting XML or SAX events.
+
+The SAX generator supports both SAX1 and SAX2 handlers. There are two
+SAX interfaces available: basic ContentHandler and optional ErrorHandler.
+
+WWW: http://search.cpan.org/search?dist=XML-Directory
+
+-- Sergey Skvortsov
+skv@protey.ru
diff --git a/textproc/p5-XML-Directory/pkg-plist b/textproc/p5-XML-Directory/pkg-plist
new file mode 100644
index 000000000000..211983800e95
--- /dev/null
+++ b/textproc/p5-XML-Directory/pkg-plist
@@ -0,0 +1,11 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Directory/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory.pm
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory.pod
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory/Apache.pm
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory/Exception.pm
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory/SAX.pm
+lib/perl5/site_perl/%%PERL_VER%%/XML/Directory/String.pm
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/XML/Directory
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Directory
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/XML 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML 2>/dev/null || true