mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
science/orthanc-mysql: unbreak build with boost-1.85
With hat: office Sponsored by: Future Crew, LLC
This commit is contained in:
parent
e40868a34d
commit
7e9cadbb16
@ -1,6 +1,6 @@
|
||||
PORTNAME= orthanc-mysql
|
||||
DISTVERSION= 4.3
|
||||
PORTREVISION= 8
|
||||
PORTREVISION= 9
|
||||
CATEGORIES= science
|
||||
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-mysql/:main \
|
||||
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources/SystemToolbox.cpp.orig 2021-05-07 07:22:38 UTC
|
||||
+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources/SystemToolbox.cpp
|
||||
@@ -727,7 +727,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 @@
|
||||
--- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Engine/PluginsManager.cpp.orig 2021-05-07 07:22:38 UTC
|
||||
+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Engine/PluginsManager.cpp
|
||||
@@ -303,7 +303,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 @@
|
||||
--- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp.orig 2021-05-07 07:22:38 UTC
|
||||
+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp
|
||||
@@ -162,7 +162,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 @@
|
||||
--- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Sources/OrthancConfiguration.cpp.orig 2021-05-07 07:22:38 UTC
|
||||
+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Sources/OrthancConfiguration.cpp
|
||||
@@ -123,7 +123,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…
Reference in New Issue
Block a user