public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpprestsdk/, dev-cpp/cpprestsdk/files/
@ 2023-12-14 20:33 Jan-Espen Oversand
  0 siblings, 0 replies; 4+ messages in thread
From: Jan-Espen Oversand @ 2023-12-14 20:33 UTC (permalink / raw
  To: gentoo-commits

commit:     4b2d9697bf3aee5c6dd0bec2c379131106cdc394
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Thu Dec 14 20:31:13 2023 +0000
Commit:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
CommitDate: Thu Dec 14 20:31:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b2d9697

dev-cpp/cpprestsdk: new package, add 2.10.19

Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>

 dev-cpp/cpprestsdk/Manifest                        |  1 +
 dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild       | 46 ++++++++++++++++++++++
 .../files/cpprestsdk-2.10.19-warnings.patch        | 11 ++++++
 dev-cpp/cpprestsdk/metadata.xml                    | 22 +++++++++++
 4 files changed, 80 insertions(+)

diff --git a/dev-cpp/cpprestsdk/Manifest b/dev-cpp/cpprestsdk/Manifest
new file mode 100644
index 0000000000..625524b0cd
--- /dev/null
+++ b/dev-cpp/cpprestsdk/Manifest
@@ -0,0 +1 @@
+DIST cpprestsdk-2.10.19.tar.gz 1749647 BLAKE2B 4f6863c490df083c39e7e4fdb714ca380b1f28636bb8c446e9627bb31259160d2d30f00fb474caffb0d06f0d7f8c86db3f6eac959bfa738318dfabf52def8339 SHA512 2d8fa213f492236e2fd912349bf81951c1e618dd8eab4f665f909d75b5aeeda18b8f70dce3a4db50d67bdb3e372888132481701163de6c27716dfd750bff9781

diff --git a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
new file mode 100644
index 0000000000..2024e804e2
--- /dev/null
+++ b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A Microsoft project for cloud-based client-server communication."
+HOMEPAGE="https://github.com/microsoft/cpprestsdk"
+SRC_URI="https://github.com/microsoft/cpprestsdk/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-libs/openssl-1.1.1q
+		>=dev-libs/boost-1.80.0-r1
+		>=sys-libs/zlib-1.2.13-r1"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND=">=dev-util/cmake-3.23
+		>=dev-util/ninja-1.11.1-r2
+		>=sys-devel/gcc-11.3.0
+		>=virtual/pkgconfig-2-r1
+		>=dev-cpp/websocketpp-0.8.2"
+
+PATCHES=(
+	"${FILESDIR}"/cpprestsdk-${PV}-warnings.patch
+)
+
+src_prepare(){
+	cmake_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
+	cmake_src_configure
+}
+
+src_compile(){
+	cmake_src_compile
+}
+
+src_install(){
+	cmake_src_install
+}

diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-warnings.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-warnings.patch
new file mode 100644
index 0000000000..dc663ec0c7
--- /dev/null
+++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-warnings.patch
@@ -0,0 +1,11 @@
+--- a/Release/src/http/common/http_helpers.cpp	2021-02-02 05:03:00.000000000 +0100
++++ b/Release/src/http/common/http_helpers.cpp	2022-12-08 08:42:47.321677974 +0100
+@@ -84,7 +84,7 @@
+     }
+     else
+     {
+-        char buffer[9];
++        char buffer[17];
+ #ifdef _WIN32
+         sprintf_s(buffer, sizeof(buffer), "%8IX", bytes_read);
+ #else

diff --git a/dev-cpp/cpprestsdk/metadata.xml b/dev-cpp/cpprestsdk/metadata.xml
new file mode 100644
index 0000000000..00e1a920aa
--- /dev/null
+++ b/dev-cpp/cpprestsdk/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<!--
+  This is the example metadata file.
+  The root element of this file is <pkgmetadata>. Within this element a
+  number of subelements are allowed, the most common being maintainer.
+
+  For a full description look at:
+  https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/
+
+  Before committing, please remove the comments from this file. They are
+  not relevant for general metadata.xml files.
+-->
+<pkgmetadata>
+  <maintainer type="person">
+    <email>sigsegv@radiotube.org</email>
+    <description>Jan-Espen Oversand</description>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">microsoft/cpprestsdk</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpprestsdk/, dev-cpp/cpprestsdk/files/
@ 2023-12-15 20:49 Jan-Espen Oversand
  0 siblings, 0 replies; 4+ messages in thread
From: Jan-Espen Oversand @ 2023-12-15 20:49 UTC (permalink / raw
  To: gentoo-commits

commit:     e4cc5a8427e5d028114a5aad19365b546ad95571
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Fri Dec 15 20:48:24 2023 +0000
Commit:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
CommitDate: Fri Dec 15 20:49:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e4cc5a84

dev-cpp/cpprestsdk: disable failing tests

Bug: https://bugs.gentoo.org/920028
Closes: https://bugs.gentoo.org/920028
Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>

 ...2.10.19.ebuild => cpprestsdk-2.10.19-r1.ebuild} | 12 +----------
 .../cpprestsdk-2.10.19-disabl-int-tests.patch      | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
similarity index 88%
rename from dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
rename to dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
index 2024e804e2..97aea7c69e 100644
--- a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
+++ b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
@@ -26,21 +26,11 @@ BDEPEND=">=dev-util/cmake-3.23
 
 PATCHES=(
 	"${FILESDIR}"/cpprestsdk-${PV}-warnings.patch
+	"${FILESDIR}"/cpprestsdk-${PV}-disabl-int-tests.patch
 )
 
-src_prepare(){
-	cmake_src_prepare
-}
-
 src_configure() {
 	local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
 	cmake_src_configure
 }
 
-src_compile(){
-	cmake_src_compile
-}
-
-src_install(){
-	cmake_src_install
-}

diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
new file mode 100644
index 0000000000..25a95cc9c5
--- /dev/null
+++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
@@ -0,0 +1,24 @@
+--- a/Release/tests/functional/http/CMakeLists.txt
++++ b/Release/tests/functional/http/CMakeLists.txt
+@@ -1,3 +1,3 @@
+ add_subdirectory(utilities)
+-add_subdirectory(client)
++#add_subdirectory(client)
+ add_subdirectory(listener)
+--- a/Release/tests/functional/websockets/CMakeLists.txt
++++ b/Release/tests/functional/websockets/CMakeLists.txt
+@@ -27,9 +27,9 @@ if (NOT CPPREST_EXCLUDE_WEBSOCKETS)
+     client/stdafx.cpp
+   )
+ 
+-  add_casablanca_test(websocketsclient_test SOURCES)
+-  if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
+-    target_link_libraries(websocketsclient_test PRIVATE websockettest_utilities)
+-  endif()
+-  target_include_directories(websocketsclient_test PRIVATE utilities)
++#  add_casablanca_test(websocketsclient_test SOURCES)
++#  if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
++#    target_link_libraries(websocketsclient_test PRIVATE websockettest_utilities)
++#  endif()
++#  target_include_directories(websocketsclient_test PRIVATE utilities)
+ endif()


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpprestsdk/, dev-cpp/cpprestsdk/files/
@ 2023-12-17 20:45 Jan-Espen Oversand
  0 siblings, 0 replies; 4+ messages in thread
From: Jan-Espen Oversand @ 2023-12-17 20:45 UTC (permalink / raw
  To: gentoo-commits

commit:     49c50e660d8ade6c055e04087f37b28d2856f348
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Sun Dec 17 20:44:20 2023 +0000
Commit:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
CommitDate: Sun Dec 17 20:44:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49c50e66

dev-cpp/cpprestsdk: disable http listener tests

Bug: https://bugs.gentoo.org/920204
Closes: https://bugs.gentoo.org/920204
Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>

 .../{cpprestsdk-2.10.19-r1.ebuild => cpprestsdk-2.10.19-r2.ebuild}     | 0
 dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch     | 3 ++-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r2.ebuild
similarity index 100%
rename from dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
rename to dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r2.ebuild

diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
index 25a95cc9c5..6ae6e3759c 100644
--- a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
+++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
@@ -3,8 +3,9 @@
 @@ -1,3 +1,3 @@
  add_subdirectory(utilities)
 -add_subdirectory(client)
+-add_subdirectory(listener)
 +#add_subdirectory(client)
- add_subdirectory(listener)
++#add_subdirectory(listener)
 --- a/Release/tests/functional/websockets/CMakeLists.txt
 +++ b/Release/tests/functional/websockets/CMakeLists.txt
 @@ -27,9 +27,9 @@ if (NOT CPPREST_EXCLUDE_WEBSOCKETS)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpprestsdk/, dev-cpp/cpprestsdk/files/
@ 2023-12-17 22:52 Jan-Espen Oversand
  0 siblings, 0 replies; 4+ messages in thread
From: Jan-Espen Oversand @ 2023-12-17 22:52 UTC (permalink / raw
  To: gentoo-commits

commit:     102ae60a0ca9167b3ffa33fd6dcf892014bfb143
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Sun Dec 17 22:51:02 2023 +0000
Commit:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
CommitDate: Sun Dec 17 22:51:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=102ae60a

dev-cpp/cpprestsdk: disable werror flag by default

Bug: https://bugs.gentoo.org/920029
Closes: https://bugs.gentoo.org/920029
Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>

 ...restsdk-2.10.19-r2.ebuild => cpprestsdk-2.10.19-r3.ebuild} |  1 +
 .../files/cpprestsdk-2.10.19-disable-werror-default.patch     | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r2.ebuild b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r3.ebuild
similarity index 93%
rename from dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r2.ebuild
rename to dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r3.ebuild
index 59ef5785bf..1e99a9fa6d 100644
--- a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r2.ebuild
+++ b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r3.ebuild
@@ -27,6 +27,7 @@ BDEPEND=">=dev-util/cmake-3.23
 PATCHES=(
 	"${FILESDIR}"/cpprestsdk-${PV}-warnings.patch
 	"${FILESDIR}"/cpprestsdk-${PV}-disabl-int-tests.patch
+	"${FILESDIR}"/cpprestsdk-${PV}-disable-werror-default.patch
 )
 
 src_configure() {

diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disable-werror-default.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disable-werror-default.patch
new file mode 100644
index 0000000000..44e56d108c
--- /dev/null
+++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disable-werror-default.patch
@@ -0,0 +1,11 @@
+--- a/Release/CMakeLists.txt
++++ b/Release/CMakeLists.txt
+@@ -15,7 +15,7 @@ set(CPPREST_VERSION_REVISION 19)
+ 
+ enable_testing()
+ 
+-set(WERROR ON CACHE BOOL "Treat Warnings as Errors.")
++set(WERROR OFF CACHE BOOL "Treat Warnings as Errors.")
+ set(CPPREST_EXCLUDE_WEBSOCKETS OFF CACHE BOOL "Exclude websockets functionality.")
+ set(CPPREST_EXCLUDE_COMPRESSION OFF CACHE BOOL "Exclude compression functionality.")
+ set(CPPREST_EXCLUDE_BROTLI ON CACHE BOOL "Exclude Brotli compression functionality.")


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-17 22:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 20:33 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpprestsdk/, dev-cpp/cpprestsdk/files/ Jan-Espen Oversand
  -- strict thread matches above, loose matches on Subject: below --
2023-12-15 20:49 Jan-Espen Oversand
2023-12-17 20:45 Jan-Espen Oversand
2023-12-17 22:52 Jan-Espen Oversand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox