* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libplatform/files/, dev-libs/libplatform/
@ 2016-04-02 10:19 Ian Whyman
0 siblings, 0 replies; 2+ messages in thread
From: Ian Whyman @ 2016-04-02 10:19 UTC (permalink / raw
To: gentoo-commits
commit: eb6db67db013083706bae2a0997984d9e5063b16
Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 2 10:17:15 2016 +0000
Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
CommitDate: Sat Apr 2 10:18:56 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb6db67d
dev-libs/libplatform: Version bump
Package-Manager: portage-2.2.27
dev-libs/libplatform/Manifest | 1 +
.../libplatform-2.0.1-arch-specific-libdirs.patch | 31 ++++++++++++++++++++++
dev-libs/libplatform/libplatform-2.0.1.ebuild | 23 ++++++++++++++++
3 files changed, 55 insertions(+)
diff --git a/dev-libs/libplatform/Manifest b/dev-libs/libplatform/Manifest
index 697e6f0..c4a24d4 100644
--- a/dev-libs/libplatform/Manifest
+++ b/dev-libs/libplatform/Manifest
@@ -1 +1,2 @@
DIST libplatform-1.0.10.tar.gz 77558 SHA256 6ba3239cb1c0a5341efcf9488f4d3dfad8c26d6b2994b2b2247e5a61568ab5cd SHA512 3fceea9287c4460d916971fb97475b96115d922a8882bce80d0cbbdf961f2848008c06ad7f6eac67c36be5e8486370ec9412a954840608332deca2ff6fb3cedc WHIRLPOOL 4db0338a5536fcb44859a6262628f90ade80190c06a7d98ba838c1dfb590cfc68676ffb6672c22f1b685fd33c0ebae0afde384b9324b02dec0071b96c96c6fe4
+DIST libplatform-2.0.1.tar.gz 74676 SHA256 e97e45273e90571aa37732cde913b262f5f519c387083645d2557d7189c054cf SHA512 ac397ffc741617be4371dc2a4b44cdddd07f2bdbd54e20e91a77e7d00b90b4d54f9aa5d2908c389638f548a7b6f9aa0a93bb10697eaecfc23117dee6f789f555 WHIRLPOOL 978775ff748797c4780f97f98c43f17044deab51929ad94a48c136df4bc0cc5269f0251a6fdd2099797760e222c4fdfe7870388077be799e370972df5f1b7597
diff --git a/dev-libs/libplatform/files/libplatform-2.0.1-arch-specific-libdirs.patch b/dev-libs/libplatform/files/libplatform-2.0.1-arch-specific-libdirs.patch
new file mode 100644
index 0000000..fce47f4
--- /dev/null
+++ b/dev-libs/libplatform/files/libplatform-2.0.1-arch-specific-libdirs.patch
@@ -0,0 +1,31 @@
+From 21317bf0bb90f16d591aec580fe70d58cb43e65e Mon Sep 17 00:00:00 2001
+From: Balint Reczey <balint@balintreczey.hu>
+Date: Sun, 21 Feb 2016 23:06:28 +0100
+Subject: [PATCH] Install pkg-config and .cmake files in arch-specific libdirs
+
+They contain arch-specific strings thus they can't be in
+architecture-independent dirs. This would prevent co-installing
+i386 and amd64 versions for example, since the files would differ.
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a577410..6b5586f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -74,12 +74,12 @@ install(FILES src/util/atomic.h
+ IF(NOT WIN32)
+ configure_file(p8-platform.pc.in p8-platform.pc @ONLY)
+ install(FILES ${CMAKE_BINARY_DIR}/p8-platform.pc
+- DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/pkgconfig)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+ ENDIF(NOT WIN32)
+
+ # config mode
+ configure_file (p8-platform-config.cmake.in
+ p8-platform-config.cmake @ONLY)
+ install(FILES ${CMAKE_BINARY_DIR}/p8-platform-config.cmake
+- DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/p8-platform)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/p8-platform)
+
diff --git a/dev-libs/libplatform/libplatform-2.0.1.ebuild b/dev-libs/libplatform/libplatform-2.0.1.ebuild
new file mode 100644
index 0000000..b9ab84c
--- /dev/null
+++ b/dev-libs/libplatform/libplatform-2.0.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="platform"
+MY_PN_PREFIX="p8"
+
+DESCRIPTION="Platform support library used by libCEC and binary add-ons for Kodi"
+HOMEPAGE="https://github.com/Pulse-Eight/platform"
+SRC_URI="https://github.com/Pulse-Eight/${MY_PN}/archive/${MY_PN_PREFIX}-${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-arch-specific-libdirs.patch" )
+
+S="${WORKDIR}/${MY_PN}-${MY_PN_PREFIX}-${MY_PN}-${PV}"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libplatform/files/, dev-libs/libplatform/
@ 2025-08-23 7:26 Viorel Munteanu
0 siblings, 0 replies; 2+ messages in thread
From: Viorel Munteanu @ 2025-08-23 7:26 UTC (permalink / raw
To: gentoo-commits
commit: 8b01e233478d2e386947ffb54184760f804199c0
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri Aug 22 21:48:00 2025 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 07:26:05 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b01e233
dev-libs/libplatform: fix cmake4 and libcxx build
Bug: https://bugs.gentoo.org/914866
Bug: https://bugs.gentoo.org/951812
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43535
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
.../files/libplatform-2.1.0.1-cmake4.patch | 22 ++++++++++++++++
.../files/libplatform-2.1.0.1-libcxx.patch | 29 ++++++++++++++++++++++
...m-9999.ebuild => libplatform-2.1.0.1-r3.ebuild} | 16 +++++++-----
dev-libs/libplatform/libplatform-9999.ebuild | 11 ++++----
4 files changed, 66 insertions(+), 12 deletions(-)
diff --git a/dev-libs/libplatform/files/libplatform-2.1.0.1-cmake4.patch b/dev-libs/libplatform/files/libplatform-2.1.0.1-cmake4.patch
new file mode 100644
index 000000000000..4100869780f7
--- /dev/null
+++ b/dev-libs/libplatform/files/libplatform-2.1.0.1-cmake4.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/951812
+https://github.com/Pulse-Eight/platform/issues/52
+https://github.com/Pulse-Eight/platform/commit/d7faed1c696b1a6a67f114a63a0f4c085f0f9195
+
+Removed cmake_minimum unrelated chunk
+
+From d7faed1c696b1a6a67f114a63a0f4c085f0f9195 Mon Sep 17 00:00:00 2001
+From: Lars Op den Kamp <lars@opdenkamp.eu>
+Date: Tue, 25 Feb 2025 16:11:43 +0100
+Subject: [PATCH] fixed: match debug flags of the c++ library with .net on
+ windows
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,6 @@
++cmake_minimum_required(VERSION 3.12.0)
+ project(p8-platform)
+
+-cmake_minimum_required(VERSION 2.8.9)
+ enable_language(CXX)
+
+ set(CMAKE_CXX_STANDARD 11)
diff --git a/dev-libs/libplatform/files/libplatform-2.1.0.1-libcxx.patch b/dev-libs/libplatform/files/libplatform-2.1.0.1-libcxx.patch
new file mode 100644
index 000000000000..845af8b591c9
--- /dev/null
+++ b/dev-libs/libplatform/files/libplatform-2.1.0.1-libcxx.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/914866
+https://github.com/Pulse-Eight/platform/pull/45
+https://github.com/Pulse-Eight/platform/commit/a0d1a41ac47930a3d45020d1a8d26b90d3856ce9
+
+From a0d1a41ac47930a3d45020d1a8d26b90d3856ce9 Mon Sep 17 00:00:00 2001
+From: Lukas Rusak <lorusak@gmail.com>
+Date: Thu, 10 Sep 2020 11:32:55 -0700
+Subject: [PATCH] StringUtils: fix build with -std=c++17
+
+--- a/src/util/StringUtils.cpp
++++ b/src/util/StringUtils.cpp
+@@ -453,7 +453,7 @@ static int isspace_c(char c)
+
+ std::string& StringUtils::TrimLeft(std::string &str)
+ {
+- str.erase(str.begin(), ::find_if(str.begin(), str.end(), ::not1(::ptr_fun(isspace_c))));
++ str.erase(str.begin(), ::find_if(str.begin(), str.end(), [](char s) { return isspace_c(s) == 0; }));
+ return str;
+ }
+
+@@ -466,7 +466,7 @@ std::string& StringUtils::TrimLeft(std::string &str, const char* const chars)
+
+ std::string& StringUtils::TrimRight(std::string &str)
+ {
+- str.erase(::find_if(str.rbegin(), str.rend(), ::not1(::ptr_fun(isspace_c))).base(), str.end());
++ str.erase(::find_if(str.rbegin(), str.rend(), [](char s) { return isspace_c(s) == 0; }).base(), str.end());
+ return str;
+ }
+
diff --git a/dev-libs/libplatform/libplatform-9999.ebuild b/dev-libs/libplatform/libplatform-2.1.0.1-r3.ebuild
similarity index 75%
copy from dev-libs/libplatform/libplatform-9999.ebuild
copy to dev-libs/libplatform/libplatform-2.1.0.1-r3.ebuild
index ed44eae38b02..8e06612ccde1 100644
--- a/dev-libs/libplatform/libplatform-9999.ebuild
+++ b/dev-libs/libplatform/libplatform-2.1.0.1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,15 +11,19 @@ MY_PN_PREFIX="p8"
DESCRIPTION="Platform support library used by libCEC and binary add-ons for Kodi"
HOMEPAGE="https://github.com/Pulse-Eight/platform"
-LICENSE="GPL-2+"
-SLOT="0"
-IUSE=""
-
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/Pulse-Eight/${MY_PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/Pulse-Eight/${MY_PN}/archive/${MY_PN_PREFIX}-${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${MY_PN_PREFIX}-${MY_PN}-${PV}"
- KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+
+PATCHES=(
+ "${FILESDIR}"/libplatform-2.1.0.1-cmake4.patch
+ "${FILESDIR}"/libplatform-2.1.0.1-libcxx.patch
+)
diff --git a/dev-libs/libplatform/libplatform-9999.ebuild b/dev-libs/libplatform/libplatform-9999.ebuild
index ed44eae38b02..43f95db28ce2 100644
--- a/dev-libs/libplatform/libplatform-9999.ebuild
+++ b/dev-libs/libplatform/libplatform-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,15 +11,14 @@ MY_PN_PREFIX="p8"
DESCRIPTION="Platform support library used by libCEC and binary add-ons for Kodi"
HOMEPAGE="https://github.com/Pulse-Eight/platform"
-LICENSE="GPL-2+"
-SLOT="0"
-IUSE=""
-
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/Pulse-Eight/${MY_PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/Pulse-Eight/${MY_PN}/archive/${MY_PN_PREFIX}-${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${MY_PN_PREFIX}-${MY_PN}-${PV}"
- KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
+
+LICENSE="GPL-2+"
+SLOT="0"
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-23 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-23 7:26 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libplatform/files/, dev-libs/libplatform/ Viorel Munteanu
-- strict thread matches above, loose matches on Subject: below --
2016-04-02 10:19 Ian Whyman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox