diff options
author | tobez <tobez@FreeBSD.org> | 2005-09-28 22:06:58 +0800 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2005-09-28 22:06:58 +0800 |
commit | beece72318cf51d6bdccc813992ecf6e0cddb710 (patch) | |
tree | 796b279ba6185ad982ddca8f6ef6f81430fb90f7 /textproc | |
parent | c42996f6ed57f44525832a643dc8ded9d14b7d4c (diff) | |
download | freebsd-ports-gnome-beece72318cf51d6bdccc813992ecf6e0cddb710.tar.gz freebsd-ports-gnome-beece72318cf51d6bdccc813992ecf6e0cddb710.tar.zst freebsd-ports-gnome-beece72318cf51d6bdccc813992ecf6e0cddb710.zip |
Add p5-Text-Diff-HTML, a perl module to format unified diffs as XHTML.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-Text-Diff-HTML/Makefile | 32 | ||||
-rw-r--r-- | textproc/p5-Text-Diff-HTML/distinfo | 2 | ||||
-rw-r--r-- | textproc/p5-Text-Diff-HTML/pkg-descr | 12 | ||||
-rw-r--r-- | textproc/p5-Text-Diff-HTML/pkg-plist | 3 |
5 files changed, 50 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 0e1f21b8612f..d2c03456985f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -391,6 +391,7 @@ SUBDIR += p5-Text-CSV SUBDIR += p5-Text-CSV_XS SUBDIR += p5-Text-Diff + SUBDIR += p5-Text-Diff-HTML SUBDIR += p5-Text-DoubleMetaphone SUBDIR += p5-Text-EtText SUBDIR += p5-Text-ExtractWords diff --git a/textproc/p5-Text-Diff-HTML/Makefile b/textproc/p5-Text-Diff-HTML/Makefile new file mode 100644 index 000000000000..e8096aa576ef --- /dev/null +++ b/textproc/p5-Text-Diff-HTML/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: textproc/p5-Text-Diff-HTML +# Date created: 28 September 2005 +# Whom: Anton Berezin <tobez@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Text-Diff-HTML +PORTVERSION= 0.04 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Text +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@FreeBSD.org +COMMENT= Text::Diff::HTML - XHTML format for Text::Diff::Unified + +BUILD_DEPENDS= ${SITE_PERL}/Text/Diff.pm:${PORTSDIR}/textproc/p5-Text-Diff \ + ${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_MODBUILD= yes + +MAN3= Text::Diff::HTML.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +IGNORE= Port requires perl 5.6.0 or later. Install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> diff --git a/textproc/p5-Text-Diff-HTML/distinfo b/textproc/p5-Text-Diff-HTML/distinfo new file mode 100644 index 000000000000..263fa7470492 --- /dev/null +++ b/textproc/p5-Text-Diff-HTML/distinfo @@ -0,0 +1,2 @@ +MD5 (Text-Diff-HTML-0.04.tar.gz) = cd8a50dd2f9d90be1f949906441035c1 +SIZE (Text-Diff-HTML-0.04.tar.gz) = 5375 diff --git a/textproc/p5-Text-Diff-HTML/pkg-descr b/textproc/p5-Text-Diff-HTML/pkg-descr new file mode 100644 index 000000000000..7ce9b976def6 --- /dev/null +++ b/textproc/p5-Text-Diff-HTML/pkg-descr @@ -0,0 +1,12 @@ +This class subclasses Text::Diff::Unified, a formatting class provided +by the Text::Diff module, to add XHTML markup to the unified diff +format. For details on the interface of the diff() function, see the +Text::Diff documentation. + +In the XHTML formatted by this module, the contents of the diff returned +by diff() are wrapped in a <div> element, as is each hunk of the diff. +Within each hunk, all content is properly HTML encoded using +HTML::Entities, and the various sections of the diff are marked up with +the appropriate XHTML elements. + +WWW: http://search.cpan.org/dist/Text-Diff-HTML/ diff --git a/textproc/p5-Text-Diff-HTML/pkg-plist b/textproc/p5-Text-Diff-HTML/pkg-plist new file mode 100644 index 000000000000..1d1b9c052857 --- /dev/null +++ b/textproc/p5-Text-Diff-HTML/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_PERL%%/Text/Diff/HTML.pm +@unexec rmdir %D/%%SITE_PERL%%/Text/Diff 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Text 2>/dev/null || true |