science/orthanc-webviewer: update 2.8 -> 2.9
PR: 284698
This commit is contained in:
parent
7953d01937
commit
b07bcc203e
@ -1,9 +1,8 @@
|
||||
PORTNAME= orthanc-webviewer
|
||||
DISTVERSION= 2.8
|
||||
PORTREVISION= 13
|
||||
DISTVERSION= 2.9
|
||||
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 \
|
||||
MASTER_SITES= https://orthanc.uclouvain.be/downloads/sources/orthanc-webviewer/:main \
|
||||
https://orthanc.uclouvain.be/downloads/sources/orthanc/:framework \
|
||||
http://orthanc.osimis.io/ThirdPartyDownloads/WebViewer/:thirdpartywebviewer \
|
||||
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty
|
||||
DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \
|
||||
@ -12,7 +11,7 @@ DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \
|
||||
jquery-ui-1.11.3.zip:thirdpartywebviewer \
|
||||
pako-0.2.5.zip:thirdpartywebviewer \
|
||||
js-url-1.8.6.zip:thirdpartywebviewer \
|
||||
Orthanc-1.11.0.tar.gz:framework \
|
||||
Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz:framework \
|
||||
e2fsprogs-1.44.5.tar.gz:thirdparty
|
||||
DIST_SUBDIR= orthanc
|
||||
EXTRACT_ONLY= OrthancWebViewer-${PORTVERSION}.tar.gz
|
||||
@ -24,8 +23,6 @@ WWW= https://www.orthanc-server.com/static.php?page=web-viewer
|
||||
LICENSE= AGPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
BROKEN= fails to build with boost-1.86+
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc
|
||||
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \
|
||||
libexpat.so:textproc/expat2 \
|
||||
@ -39,7 +36,7 @@ RUN_DEPENDS= Orthanc:science/orthanc
|
||||
USES= cmake localbase python:build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources \
|
||||
CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_FRAMEWORK_VERSION}/OrthancFramework/Sources \
|
||||
-DORTHANC_FRAMEWORK_SOURCE=path
|
||||
CMAKE_OFF= USE_SYSTEM_UUID
|
||||
|
||||
@ -50,6 +47,8 @@ WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION}
|
||||
|
||||
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
||||
|
||||
ORTHANC_FRAMEWORK_VERSION= 1.12.6
|
||||
|
||||
post-extract:
|
||||
${MKDIR} ${WRKSRC}/ThirdPartyDownloads
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/jsPanel-2.3.3-fixed.zip ${WRKSRC}/ThirdPartyDownloads
|
||||
@ -58,8 +57,8 @@ post-extract:
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/pako-0.2.5.zip ${WRKSRC}/ThirdPartyDownloads
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/js-url-1.8.6.zip ${WRKSRC}/ThirdPartyDownloads
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/ThirdPartyDownloads
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.11.0.tar.gz ${WRKSRC}/ThirdPartyDownloads
|
||||
${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-1.11.0.tar.gz
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz ${WRKSRC}/ThirdPartyDownloads
|
||||
${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz
|
||||
|
||||
post-build:
|
||||
@cd ${BUILD_WRKSRC} && ./UnitTests
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
TIMESTAMP = 1652274595
|
||||
SHA256 (orthanc/OrthancWebViewer-2.8.tar.gz) = 41e3a15040d74336044cc9304634246acee8d927ab85233074ff89dd4d00f30f
|
||||
SIZE (orthanc/OrthancWebViewer-2.8.tar.gz) = 126872
|
||||
TIMESTAMP = 1739140790
|
||||
SHA256 (orthanc/OrthancWebViewer-2.9.tar.gz) = 2f2cee66f908f6c5a6f0ebd69341f42fa94aa6179904ea540adeb21ac69c05fe
|
||||
SIZE (orthanc/OrthancWebViewer-2.9.tar.gz) = 132935
|
||||
SHA256 (orthanc/jsPanel-2.3.3-fixed.zip) = 958a15c7009efbb865da62b5850a3a39661c62696e38b151c7f988f4ac445595
|
||||
SIZE (orthanc/jsPanel-2.3.3-fixed.zip) = 826542
|
||||
SHA256 (orthanc/cornerstone-0.11.0.zip) = 1bada9f1f2981968f72daa352e712abea5cac3e0417fe59176f70a23261f1da9
|
||||
@ -11,7 +11,7 @@ SHA256 (orthanc/pako-0.2.5.zip) = e493010e1b1af5c149631994365ed31e15722eed2d17cc
|
||||
SIZE (orthanc/pako-0.2.5.zip) = 704378
|
||||
SHA256 (orthanc/js-url-1.8.6.zip) = ef2c7f50921ba64ac434eacf025669f1e6f39b5584100ffa8194a3edc08d43d3
|
||||
SIZE (orthanc/js-url-1.8.6.zip) = 54717
|
||||
SHA256 (orthanc/Orthanc-1.11.0.tar.gz) = 23949a70562487fd6e79d6f3f13c71a0fc90aa25e492fb3a99575fee0722c5af
|
||||
SIZE (orthanc/Orthanc-1.11.0.tar.gz) = 1899829
|
||||
SHA256 (orthanc/Orthanc-1.12.6.tar.gz) = aa5b6d6309965ed360625b5572e79068e6c501b603163e330629f2f0a56a0fe9
|
||||
SIZE (orthanc/Orthanc-1.12.6.tar.gz) = 2089779
|
||||
SHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc
|
||||
SIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237
|
||||
|
||||
11
science/orthanc-webviewer/files/patch-CMakeLists.txt
Normal file
11
science/orthanc-webviewer/files/patch-CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
--- CMakeLists.txt.orig 2025-02-09 22:38:16 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -28,7 +28,7 @@ else()
|
||||
set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
|
||||
set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
|
||||
else()
|
||||
- set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.12.3")
|
||||
+ set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.12.6")
|
||||
set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
|
||||
endif()
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
--- ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources/OrthancFramework.h.orig 2022-05-09 09:19:44 UTC
|
||||
+++ ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources/OrthancFramework.h
|
||||
@@ -70,6 +70,7 @@
|
||||
|
||||
|
||||
#include <string>
|
||||
+#include <cassert>
|
||||
|
||||
namespace Orthanc
|
||||
{
|
||||
@ -1,11 +0,0 @@
|
||||
--- 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
|
||||
@ -1,11 +0,0 @@
|
||||
--- 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)
|
||||
@ -1,11 +0,0 @@
|
||||
--- 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")
|
||||
@ -1,11 +0,0 @@
|
||||
--- 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…
x
Reference in New Issue
Block a user