1
0
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:
Dima Panov 2024-10-03 02:43:43 +03:00
parent e40868a34d
commit 7e9cadbb16
No known key found for this signature in database
GPG Key ID: FB8BA09DD5398F29
5 changed files with 45 additions and 1 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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)

View File

@ -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")

View File

@ -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")