git: 10cb055a92b1 - main - www/p5-HTTP-MHTTP: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 02 May 2023 16:32:32 UTC
The branch main has been updated by bofh:

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

commit 10cb055a92b1ed66974672af5f0636a8cef01660
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 14:35:40 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 16:32:23 +0000

    www/p5-HTTP-MHTTP: Unbreak on HEAD
    
    - Add LICENSE ART10 GPLv1+
    - Pet portclippy
---
 www/p5-HTTP-MHTTP/Makefile | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/www/p5-HTTP-MHTTP/Makefile b/www/p5-HTTP-MHTTP/Makefile
index 6ed3fe3d9721..072db8c072bc 100644
--- a/www/p5-HTTP-MHTTP/Makefile
+++ b/www/p5-HTTP-MHTTP/Makefile
@@ -9,15 +9,28 @@ MAINTAINER=	perl@FreeBSD.org
 COMMENT=	Low level access to the HTTP protocol
 WWW=		https://metacpan.org/release/HTTP-MHTTP
 
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
 USES=		perl5 ssl
 USE_PERL5=	configure patch
-CONFIGURE_ENV=	GOTSSL=yes
+
 CONFIGURE_ARGS=	--default
+CONFIGURE_ENV=	GOTSSL=yes
 
 MAKE_JOBS_UNSAFE=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-patch:
 	@${PERL} -pi -e 's!(?<=POSSIBLE_SSL_DIRS = qw\().*(?=\);)!${OPENSSLBASE}!;' \
 		${WRKSRC}/Makefile.PL
 
-.include <bsd.port.mk>
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/HTTP/MHTTP/MHTTP.so
+
+.include <bsd.port.post.mk>