aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-11-09 22:17:08 +0800
committergarga <garga@FreeBSD.org>2005-11-09 22:17:08 +0800
commitf16b47843a9854c8c662486a84bab6909643b70a (patch)
treec5419508410a4d3a3ec8820988d1ed5b6e849bee
parent3a3540fadb6c15d4ad85c1fe3ae507a66b873753 (diff)
downloadfreebsd-ports-gnome-f16b47843a9854c8c662486a84bab6909643b70a.tar.gz
freebsd-ports-gnome-f16b47843a9854c8c662486a84bab6909643b70a.tar.zst
freebsd-ports-gnome-f16b47843a9854c8c662486a84bab6909643b70a.zip
This module adds template extraction functionality to the Template toolkit.
It can take a rendered document and its template together, and get the original data structure back, effectively reversing the Template::process function. WWW: http://search.cpan.org/dist/Template-Extract/ PR: ports/88665 Submitted by: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-Template-Extract/Makefile34
-rw-r--r--textproc/p5-Template-Extract/distinfo3
-rw-r--r--textproc/p5-Template-Extract/pkg-descr6
-rw-r--r--textproc/p5-Template-Extract/pkg-plist9
5 files changed, 53 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 28fdaaec775d..c03e055e8c0c 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -387,6 +387,7 @@
SUBDIR += p5-String-Strip
SUBDIR += p5-Syntax-Highlight-Perl-Improved
SUBDIR += p5-TeX-Hyphen
+ SUBDIR += p5-Template-Extract
SUBDIR += p5-Template-Magic
SUBDIR += p5-Text-ASCIITable
SUBDIR += p5-Text-Affixes
diff --git a/textproc/p5-Template-Extract/Makefile b/textproc/p5-Template-Extract/Makefile
new file mode 100644
index 000000000000..041f79fd21c4
--- /dev/null
+++ b/textproc/p5-Template-Extract/Makefile
@@ -0,0 +1,34 @@
+# Ports collection makefile for: p5-Template-Extract
+# Date created: Nov 8, 2005
+# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Template-Extract
+PORTVERSION= 0.40
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Template
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= perl@FreeBSD.org
+COMMENT= Use TT2 syntax to extract data from documents
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= YES
+
+MAN3= Template::Extract.3 \
+ Template::Extract::Compile.3 \
+ Template::Extract::Parser.3 \
+ Template::Extract::Run.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= "Requires perl 5.6.x or higher"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Template-Extract/distinfo b/textproc/p5-Template-Extract/distinfo
new file mode 100644
index 000000000000..dcaeb05df9c1
--- /dev/null
+++ b/textproc/p5-Template-Extract/distinfo
@@ -0,0 +1,3 @@
+MD5 (Template-Extract-0.40.tar.gz) = 2d5adf6744d65f53d228652adcb2dc54
+SHA256 (Template-Extract-0.40.tar.gz) = 24e959a7a9b7b84739715e86767039906ff388625260987f2384c6e8fbf4e301
+SIZE (Template-Extract-0.40.tar.gz) = 27960
diff --git a/textproc/p5-Template-Extract/pkg-descr b/textproc/p5-Template-Extract/pkg-descr
new file mode 100644
index 000000000000..b4c692c02fe4
--- /dev/null
+++ b/textproc/p5-Template-Extract/pkg-descr
@@ -0,0 +1,6 @@
+This module adds template extraction functionality to the Template toolkit.
+It can take a rendered document and its template together, and get the
+original data structure back, effectively reversing the Template::process
+function.
+
+WWW: http://search.cpan.org/dist/Template-Extract/
diff --git a/textproc/p5-Template-Extract/pkg-plist b/textproc/p5-Template-Extract/pkg-plist
new file mode 100644
index 000000000000..97d0f66ecf97
--- /dev/null
+++ b/textproc/p5-Template-Extract/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Template/Extract.pm
+%%SITE_PERL%%/Template/Extract/Compile.pm
+%%SITE_PERL%%/Template/Extract/Parser.pm
+%%SITE_PERL%%/Template/Extract/Run.pm
+@dirrm %%SITE_PERL%%/Template/Extract
+@unexec rmdir %D/%%SITE_PERL%%/Template 2>/dev/null || true
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Extract/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Extract
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Template 2>/dev/null || true