Skip to content

Commit

Permalink
rapidjson: Fix cemu build
Browse files Browse the repository at this point in the history
Signed-off-by: Reilly Brogan <[email protected]>
  • Loading branch information
ReillyBrogan committed Jul 28, 2024
1 parent 427a7f2 commit f325edb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
22 changes: 22 additions & 0 deletions packages/r/rapidjson/files/3b2441b8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 3b2441b87f99ab65f37b141a7b548ebadb607b96 Mon Sep 17 00:00:00 2001
From: Janusz Chorko <[email protected]>
Date: Fri, 26 Aug 2016 21:17:38 +0200
Subject: [PATCH] Removed non-compiling assignment operator. Fixed #718

---
include/rapidjson/document.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index e3e20dfbd..b0f1f70be 100644
--- a/include/rapidjson/document.h
+++ b/include/rapidjson/document.h
@@ -316,8 +316,6 @@ struct GenericStringRef {

GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {}

- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
-
//! implicit conversion to plain CharType pointer
operator const Ch *() const { return s; }

4 changes: 3 additions & 1 deletion packages/r/rapidjson/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : rapidjson
version : 1.1.0
release : 3
release : 4
source :
- https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz : bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
license : MIT
Expand All @@ -10,6 +10,8 @@ summary : RapidJSON is a C++ library for parsing and generating JSON
description: |
RapidJSON is a C++ library for parsing and generating JSON. It supports both SOX and DOM style API.
setup : |
%patch -p1 -i $pkgfiles/3b2441b8.patch
%cmake_ninja -DRAPIDJSON_BUILD_TESTS=OFF \
-DRAPIDJSON_BUILD_EXAMPLES=OFF \
-DRAPIDJSON_BUILD_DOCS=OFF \
Expand Down
6 changes: 3 additions & 3 deletions packages/r/rapidjson/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="3">rapidjson</Dependency>
<Dependency release="4">rapidjson</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/rapidjson/allocators.h</Path>
Expand Down Expand Up @@ -90,8 +90,8 @@
</Files>
</Package>
<History>
<Update release="3">
<Date>2024-03-20</Date>
<Update release="4">
<Date>2024-07-28</Date>
<Version>1.1.0</Version>
<Comment>Packaging update</Comment>
<Name>Reilly Brogan</Name>
Expand Down

0 comments on commit f325edb

Please sign in to comment.