diff --git a/devel/pear-HTML_Page2/Makefile b/devel/pear-HTML_Page2/Makefile index 74cbc6633f55..c50f1135702a 100644 --- a/devel/pear-HTML_Page2/Makefile +++ b/devel/pear-HTML_Page2/Makefile @@ -1,17 +1,18 @@ PORTNAME= HTML_Page2 PORTVERSION= 0.6.5 +PORTREVISON= 1 CATEGORIES= devel www pear MAINTAINER= sunpoet@FreeBSD.org COMMENT= PEAR base class for XHTML page generation WWW= https://pear.php.net/package/HTML_Page2 LICENSE= PHP30 RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}HTML_Common>=1.2:devel/pear-HTML_Common@${PHP_FLAVOR} USES= pear NO_ARCH= yes .include diff --git a/devel/pear-HTML_Page2/files/patch-HTML_Page2.php b/devel/pear-HTML_Page2/files/patch-HTML_Page2.php new file mode 100644 index 000000000000..e6b1c814bcae --- /dev/null +++ b/devel/pear-HTML_Page2/files/patch-HTML_Page2.php @@ -0,0 +1,10 @@ +--- HTML/Page2.php.orig 2023-03-25 19:41:07 UTC ++++ HTML/Page2.php +@@ -1647,6 +1647,7 @@ class HTML_Page2 extends HTML_Common + $strHtml .= ' profile="'.$this->_profile.'"'; + } + ++ $strHtml .= ' lang="' . $this->_language . '"'; + $strHtml .= '>' . $lnEnd; + + } diff --git a/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php b/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php new file mode 100644 index 000000000000..938cbf2d120c --- /dev/null +++ b/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php @@ -0,0 +1,15 @@ +--- HTML/Page2/Doctypes.php.orig 2023-03-25 19:40:27 UTC ++++ HTML/Page2/Doctypes.php +@@ -92,9 +92,9 @@ $doctype['xhtml']['2.0'][] = ' "TBD">'; + + // HTML 4.01 Strict + $doctype['html']['4.01']['strict'][] +- = ''; ++ = ''; ++#$doctype['html']['4.01']['strict'][] ++# = ' "http://www.w3.org/TR/html4/strict.dtd">'; + + // HTML 4.01 Transitional + $doctype['html']['4.01']['transitional'][]