forked from Lainports/freebsd-ports
science/orthanc-webviewer: unbreak build with boost-1.85
With hat: office Sponsored by: Future Crew, LLC
This commit is contained in:
parent
a0dd41749a
commit
edfa7f02f9
6 changed files with 56 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= orthanc-webviewer
|
||||
DISTVERSION= 2.8
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= science
|
||||
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-webviewer/:main \
|
||||
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
--- Plugin/Cache/CacheManager.h.orig 2022-02-22 07:33:59 UTC
|
||||
+++ Plugin/Cache/CacheManager.h
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
+#include <list>
|
||||
+
|
||||
namespace OrthancPlugins
|
||||
{
|
||||
enum CacheProperty
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources/SystemToolbox.cpp.orig 2022-05-09 09:19:44 UTC
|
||||
+++ ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources/SystemToolbox.cpp
|
||||
@@ -728,7 +728,7 @@ namespace Orthanc
|
||||
|
||||
MimeType SystemToolbox::AutodetectMimeType(const std::string& path)
|
||||
{
|
||||
- std::string extension = boost::filesystem::extension(path);
|
||||
+ std::string extension = boost::filesystem::path(path).extension().string();
|
||||
Toolbox::ToLowerCase(extension);
|
||||
|
||||
// http://en.wikipedia.org/wiki/Mime_types
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Plugins/Engine/PluginsManager.cpp.orig 2022-05-09 09:19:44 UTC
|
||||
+++ ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Plugins/Engine/PluginsManager.cpp
|
||||
@@ -292,7 +292,7 @@ namespace Orthanc
|
||||
}
|
||||
else
|
||||
{
|
||||
- std::string extension = boost::filesystem::extension(it->path());
|
||||
+ std::string extension = it->path().extension().string();
|
||||
Toolbox::ToLowerCase(extension);
|
||||
|
||||
if (extension == PLUGIN_EXTENSION)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp.orig 2022-05-09 09:19:44 UTC
|
||||
+++ ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp
|
||||
@@ -163,7 +163,7 @@ OrthancPluginErrorCode Callback(OrthancPluginWorklistA
|
||||
if (type == fs::regular_file ||
|
||||
type == fs::reparse_file) // cf. BitBucket issue #11
|
||||
{
|
||||
- std::string extension = fs::extension(it->path());
|
||||
+ std::string extension = it->path().extension().string();
|
||||
std::transform(extension.begin(), extension.end(), extension.begin(), tolower); // Convert to lowercase
|
||||
|
||||
if (extension == ".wl")
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Sources/OrthancConfiguration.cpp.orig 2022-05-09 09:19:44 UTC
|
||||
+++ ThirdPartyDownloads/Orthanc-1.11.0/OrthancServer/Sources/OrthancConfiguration.cpp
|
||||
@@ -113,7 +113,7 @@ namespace Orthanc
|
||||
{
|
||||
if (!is_directory(it->status()))
|
||||
{
|
||||
- std::string extension = boost::filesystem::extension(it->path());
|
||||
+ std::string extension = it->path().extension().string();
|
||||
Toolbox::ToLowerCase(extension);
|
||||
|
||||
if (extension == ".json")
|
||||
Loading…
Add table
Reference in a new issue