From owner-dev-commits-ports-main@freebsd.org Fri Aug 6 13:31:41 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EB0BD6567DF; Fri, 6 Aug 2021 13:31:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gh5ws6LMrz4bgr; Fri, 6 Aug 2021 13:31:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C291F6B1D; Fri, 6 Aug 2021 13:31:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 176DVfKE073023; Fri, 6 Aug 2021 13:31:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 176DVfTv073022; Fri, 6 Aug 2021 13:31:41 GMT (envelope-from git) Date: Fri, 6 Aug 2021 13:31:41 GMT Message-Id: <202108061331.176DVfTv073022@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guangyuan Yang Subject: git: 0b34ae623a58 - main - science/orthanc-webviewer: Revive port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b34ae623a58b1975b3e2f009f95239e3e950695 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 13:31:42 -0000 The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=0b34ae623a58b1975b3e2f009f95239e3e950695 commit 0b34ae623a58b1975b3e2f009f95239e3e950695 Author: Frank Scholl AuthorDate: 2021-08-06 13:31:10 +0000 Commit: Guangyuan Yang CommitDate: 2021-08-06 13:31:10 +0000 science/orthanc-webviewer: Revive port Plugin to extend Orthanc with a Web viewer of medical images. PR: 242549 --- MOVED | 1 - science/Makefile | 1 + science/orthanc-webviewer/Makefile | 64 +++++++++++++++++++++++++++++++++++++ science/orthanc-webviewer/distinfo | 17 ++++++++++ science/orthanc-webviewer/pkg-descr | 11 +++++++ science/orthanc-webviewer/pkg-plist | 2 ++ 6 files changed, 95 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index cb16125308a4..8c8b74fe0dba 100644 --- a/MOVED +++ b/MOVED @@ -10154,7 +10154,6 @@ audio/abcmidi||2018-06-07|Has expired: Broken for more than 6 months benchmarks/netpipe||2018-06-07|Has expired: Broken for more than 6 months science/orthanc-dicomweb||2018-06-07|Removed, depends on expired science/orthanc science/orthanc-postgresql||2018-06-07|Removed, depends on expired science/orthanc -science/orthanc-webviewer||2018-06-07|Removed, depends on expired science/orthanc graphics/libkface||2018-06-09|Has expired: No longer maintained upstream math/scilab-toolbox-sivp||2018-06-09|Has expired: Cannot build with newer opencv math/clipper|graphics/polyclipping|2018-06-11|Duplicate port diff --git a/science/Makefile b/science/Makefile index 9c49c7e03605..e043cab1c2b9 100644 --- a/science/Makefile +++ b/science/Makefile @@ -177,6 +177,7 @@ SUBDIR += opensph SUBDIR += opsin SUBDIR += orthanc + SUBDIR += orthanc-webviewer SUBDIR += p5-Algorithm-SVMLight SUBDIR += p5-Chemistry-3DBuilder SUBDIR += p5-Chemistry-Bond-Find diff --git a/science/orthanc-webviewer/Makefile b/science/orthanc-webviewer/Makefile new file mode 100644 index 000000000000..1f3b768954d4 --- /dev/null +++ b/science/orthanc-webviewer/Makefile @@ -0,0 +1,64 @@ +# Created by: maintainer.freebsd@xpoundit.com + +PORTNAME= orthanc-webviewer +DISTVERSION= 2.7 +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 \ + http://orthanc.osimis.io/ThirdPartyDownloads/WebViewer/:thirdpartywebviewer \ + http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty +DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \ + jsPanel-2.3.3-fixed.zip:thirdpartywebviewer \ + cornerstone-0.11.0.zip:thirdpartywebviewer \ + jquery-ui-1.11.3.zip:thirdpartywebviewer \ + pako-0.2.5.zip:thirdpartywebviewer \ + js-url-1.8.6.zip:thirdpartywebviewer \ + Orthanc-1.8.1.tar.gz:framework \ + e2fsprogs-1.44.5.tar.gz:thirdparty +DIST_SUBDIR= orthanc +EXTRACT_ONLY= OrthancWebViewer-${PORTVERSION}.tar.gz + +MAINTAINER= maintainer.freebsd@xpoundit.com +COMMENT= Plugin to extend Orthanc with a Web viewer of medical images + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc +LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ + libexpat.so:textproc/expat2 \ + libgdcmCommon.so:devel/gdcm \ + libicudata.so:devel/icu \ + libjsoncpp.so:devel/jsoncpp \ + libopenjp2.so:graphics/openjpeg \ + libsqlite3.so:databases/sqlite3 +RUN_DEPENDS= Orthanc:science/orthanc + +USES= cmake localbase python:build +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION} + +CMAKE_OFF= USE_SYSTEM_UUID +CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-1.8.1/OrthancFramework/Sources \ + -DORTHANC_FRAMEWORK_SOURCE=path +CFLAGS+= -I${LOCALBASE}/include -DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG +CXXFLAGS+= -DNDEBUG + +PLIST_SUB= DISTVERSION=${DISTVERSION} + +post-extract: + ${MKDIR} ${WRKSRC}/ThirdPartyDownloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/jsPanel-2.3.3-fixed.zip ${WRKSRC}/ThirdPartyDownloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/cornerstone-0.11.0.zip ${WRKSRC}/ThirdPartyDownloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/jquery-ui-1.11.3.zip ${WRKSRC}/ThirdPartyDownloads + ${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.8.1.tar.gz ${WRKSRC}/ThirdPartyDownloads + ${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-1.8.1.tar.gz + +post-build: + @cd ${BUILD_WRKSRC} && ./UnitTests + +.include diff --git a/science/orthanc-webviewer/distinfo b/science/orthanc-webviewer/distinfo new file mode 100644 index 000000000000..e6d964173af3 --- /dev/null +++ b/science/orthanc-webviewer/distinfo @@ -0,0 +1,17 @@ +TIMESTAMP = 1620907941 +SHA256 (orthanc/OrthancWebViewer-2.7.tar.gz) = 22f56136e4704c734f80d3a9a0fed892c6516be45c30f524b10f93413a3eb81f +SIZE (orthanc/OrthancWebViewer-2.7.tar.gz) = 124764 +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 +SIZE (orthanc/cornerstone-0.11.0.zip) = 935277 +SHA256 (orthanc/jquery-ui-1.11.3.zip) = 045b52f293bf4f77c6689569064327495edd9e6434839b78a56299c555130282 +SIZE (orthanc/jquery-ui-1.11.3.zip) = 400437 +SHA256 (orthanc/pako-0.2.5.zip) = e493010e1b1af5c149631994365ed31e15722eed2d17cc1d95bd9af151f2005f +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.8.1.tar.gz) = 475f0e09d53496f5c152f3a4af9eb7318826f8d475f061d8e5332e4e6473c080 +SIZE (orthanc/Orthanc-1.8.1.tar.gz) = 1701085 +SHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc +SIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237 diff --git a/science/orthanc-webviewer/pkg-descr b/science/orthanc-webviewer/pkg-descr new file mode 100644 index 000000000000..2a9f2b17ed4e --- /dev/null +++ b/science/orthanc-webviewer/pkg-descr @@ -0,0 +1,11 @@ +Orthanc can be extended by a plugin that brings a Web viewer of medical +images. The Web viewer is based upon the two following projects: + +Cornerstone (https://github.com/chafey/cornerstone), a client-side JavaScript +library to display medical images in Web browsers, by Chris Hafey, and + +GDCM (http://sourceforge.net/projects/gdcm/), an open-source implementation +of the DICOM standard with advanced features for image decoding, by Mathieu +Malaterre. + +WWW: https://www.orthanc-server.com/static.php?page=web-viewer diff --git a/science/orthanc-webviewer/pkg-plist b/science/orthanc-webviewer/pkg-plist new file mode 100644 index 000000000000..42a8c31e97c1 --- /dev/null +++ b/science/orthanc-webviewer/pkg-plist @@ -0,0 +1,2 @@ +share/orthanc/plugins/libOrthancWebViewer.so +share/orthanc/plugins/libOrthancWebViewer.so.%%DISTVERSION%%