git: 90b5b1e859bd - main - devel/p8-platform: fix build with clang 16

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 04 Jun 2023 16:22:00 UTC
The branch main has been updated by dim:

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

commit 90b5b1e859bd89d629adc15ef72898a8e786e2ce
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-05-29 17:11:00 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-04 16:21:24 +0000

    devel/p8-platform: fix build with clang 16
    
    Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
    Because devel/p8-platform's Makefile does not explicitly set its C++
    standard, this leads to an error:
    
      /wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:456:69: error: no member named 'ptr_fun' in the global namespace
        str.erase(str.begin(), ::find_if(str.begin(), str.end(), ::not1(::ptr_fun(isspace_c))));
                                                                        ~~^
      /wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:469:58: error: no member named 'ptr_fun' in the global namespace
        str.erase(::find_if(str.rbegin(), str.rend(), ::not1(::ptr_fun(isspace_c))).base(), str.end());
                                                             ~~^
    
    Upstream already fixed this in
    <https://github.com/Pulse-Eight/platform/commit/a7cd0d5>, via
    <https://github.com/Pulse-Eight/platform/pull/45>, so apply it.
    
    While here, pet portlint.
    
    PR:             271710
    Approved by:    mickael.maillot@gmail.com (maintainer)
    MFH:            2023Q2
---
 devel/p8-platform/Makefile  | 5 ++++-
 devel/p8-platform/distinfo  | 4 +++-
 devel/p8-platform/pkg-descr | 3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/devel/p8-platform/Makefile b/devel/p8-platform/Makefile
index 2eb887dec228..e47aa61eb6ec 100644
--- a/devel/p8-platform/Makefile
+++ b/devel/p8-platform/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	p8-platform
 PORTVERSION=	2.1.0.1
-PORTREVISION=	2
 DISTVERSIONPREFIX=	${PORTNAME}-
+PORTREVISION=	3
 CATEGORIES=	devel
 
+PATCH_SITES=	https://github.com/Pulse-Eight/platform/commit/
+PATCHFILES=	a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch:-p1 # https://github.com/Pulse-Eight/platform/pull/45
+
 MAINTAINER=	mickael.maillot@gmail.com
 COMMENT=	Platform support library used by libCEC and binary add-ons for Kodi
 WWW=		https://github.com/Pulse-Eight/platform
diff --git a/devel/p8-platform/distinfo b/devel/p8-platform/distinfo
index 6ac29a1a21d4..9c65dd24f06b 100644
--- a/devel/p8-platform/distinfo
+++ b/devel/p8-platform/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1518119944
+TIMESTAMP = 1685379774
 SHA256 (Pulse-Eight-platform-p8-platform-2.1.0.1_GH0.tar.gz) = 064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0
 SIZE (Pulse-Eight-platform-p8-platform-2.1.0.1_GH0.tar.gz) = 75257
+SHA256 (a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch) = a8eb50cbe912faea48f3055d086ee21d6cb827c97d397246b03b87d24540d7a9
+SIZE (a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch) = 1162
diff --git a/devel/p8-platform/pkg-descr b/devel/p8-platform/pkg-descr
index 020ec212cff0..0f1006d0553d 100644
--- a/devel/p8-platform/pkg-descr
+++ b/devel/p8-platform/pkg-descr
@@ -1 +1,2 @@
-Platform support library used by libCEC and binary add-ons for Kodi
+This library provides platform specific support for other libraries, and
+is used by libCEC and binary add-ons for Kodi.