science/orthanc-dicomweb: unbreak build with boost-1.85
With hat: office Sponsored by: Future Crew, LLC
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
PORTNAME= orthanc-dicomweb
|
||||
DISTVERSION= 1.8
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= science
|
||||
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-dicom-web/:main \
|
||||
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \
|
||||
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user