Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2023 23:50:53 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ba55c52bad89 - main - textproc/p5-HTML-T5: Add p5-HTML-T5 0.013
Message-ID:  <202305272350.34RNor1a052338@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba55c52bad8967ee08b59da922f74244942d3482

commit ba55c52bad8967ee08b59da922f74244942d3482
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 23:18:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 23:43:35 +0000

    textproc/p5-HTML-T5: Add p5-HTML-T5 0.013
    
    HTML::T5 is an HTML checker in a handy dandy object. It's meant as a replacement
    for HTML::Lint.
---
 textproc/Makefile                           |  1 +
 textproc/p5-HTML-T5/Makefile                | 24 +++++++++++++++++
 textproc/p5-HTML-T5/distinfo                |  3 +++
 textproc/p5-HTML-T5/files/patch-Makefile.PL | 42 +++++++++++++++++++++++++++++
 textproc/p5-HTML-T5/pkg-descr               |  2 ++
 textproc/p5-HTML-T5/pkg-plist               |  7 +++++
 6 files changed, 79 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 24043f501c4c..af0acefe7760 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -587,6 +587,7 @@
     SUBDIR += p5-HTML-RewriteAttributes
     SUBDIR += p5-HTML-SBC
     SUBDIR += p5-HTML-SuperForm
+    SUBDIR += p5-HTML-T5
     SUBDIR += p5-HTML-TagFilter
     SUBDIR += p5-HTML-Tidy
     SUBDIR += p5-HTML-Tidy5
diff --git a/textproc/p5-HTML-T5/Makefile b/textproc/p5-HTML-T5/Makefile
new file mode 100644
index 000000000000..e3912f43f622
--- /dev/null
+++ b/textproc/p5-HTML-T5/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	HTML-T5
+PORTVERSION=	0.013
+CATEGORIES=	textproc perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	HTML validation in a Perl object
+WWW=		https://metacpan.org/dist/HTML-T5
+
+LICENSE=	ART20
+
+BUILD_DEPENDS=	p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib \
+		${RUN_DEPENDS}
+LIB_DEPENDS=	libtidy5.so:www/tidy-html5
+RUN_DEPENDS=	p5-Test-Exception>=0:devel/p5-Test-Exception
+
+USES=		localbase perl5
+USE_PERL5=	configure
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/HTML-T5/T5.so
+
+.include <bsd.port.mk>
diff --git a/textproc/p5-HTML-T5/distinfo b/textproc/p5-HTML-T5/distinfo
new file mode 100644
index 000000000000..80973e3cc777
--- /dev/null
+++ b/textproc/p5-HTML-T5/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1685162008
+SHA256 (HTML-T5-0.013.tar.gz) = c36493b8af1fbfa5defa78f5937f066afa48bb44cf26803bf8262babd2ed97ad
+SIZE (HTML-T5-0.013.tar.gz) = 34605
diff --git a/textproc/p5-HTML-T5/files/patch-Makefile.PL b/textproc/p5-HTML-T5/files/patch-Makefile.PL
new file mode 100644
index 000000000000..871381c12f2e
--- /dev/null
+++ b/textproc/p5-HTML-T5/files/patch-Makefile.PL
@@ -0,0 +1,42 @@
+--- Makefile.PL.orig	2020-11-17 10:01:32 UTC
++++ Makefile.PL
+@@ -7,17 +7,12 @@ use strict;
+ use warnings;
+ 
+ use ExtUtils::MakeMaker 6.52;
+-use Alien::Base::Wrapper 2.02;
+ 
+ my @build = (
+-    alien_requires => {
+-        'Alien::TidyHTML5' => '0.3.0',
+-    },
+ );
+ 
+ my $parms = {
+     CONFIGURE_REQUIRES => {
+-        'Alien::Base::Wrapper' => '2.02',
+     },
+     NAME          => 'HTML::T5',
+     AUTHOR        => 'Andy Lester <andy@petdance.com>',
+@@ -42,8 +37,6 @@ my $parms = {
+         prereqs => {
+             configure => {
+                 'Devel::CheckLib'      => 0,
+-                'Alien::Base::Wrapper' => 0,
+-                'Alien::TidyHTML5'     => 0,
+             },
+         },
+         resources => {
+@@ -64,11 +57,7 @@ my $parms = {
+     dist      => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
+     clean     => { FILES => 'HTML-T5-*' },
+ };
+-
+-my %foo =
+-    Alien::Base::Wrapper->new('Alien::TidyHTML5=0.3.0')->mm_args2(%$parms);
+-$foo{CONFIGURE_REQUIRES}{'Alien::Base::Wrapper'} = '2.02';
+-WriteMakefile(%foo);
++WriteMakefile();
+ 
+ sub MY::postamble
+ {    ## no critic ( Subroutines::ProhibitQualifiedSubDeclarations )
diff --git a/textproc/p5-HTML-T5/pkg-descr b/textproc/p5-HTML-T5/pkg-descr
new file mode 100644
index 000000000000..c0b854a99a96
--- /dev/null
+++ b/textproc/p5-HTML-T5/pkg-descr
@@ -0,0 +1,2 @@
+HTML::T5 is an HTML checker in a handy dandy object. It's meant as a replacement
+for HTML::Lint.
diff --git a/textproc/p5-HTML-T5/pkg-plist b/textproc/p5-HTML-T5/pkg-plist
new file mode 100644
index 000000000000..57c657dd8163
--- /dev/null
+++ b/textproc/p5-HTML-T5/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_ARCH%%/HTML/T5.pm
+%%SITE_ARCH%%/HTML/T5/Message.pm
+%%SITE_ARCH%%/Test/HTML/T5.pm
+%%SITE_ARCH%%/auto/HTML-T5/T5.so
+%%PERL5_MAN3%%/HTML::T5.3.gz
+%%PERL5_MAN3%%/HTML::T5::Message.3.gz
+%%PERL5_MAN3%%/Test::HTML::T5.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305272350.34RNor1a052338>