From owner-dev-commits-ports-main@freebsd.org Sat Aug 7 21:27:59 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 79E0A671E0E; Sat, 7 Aug 2021 21:27:59 +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 4GhwRz2vV5z4kgf; Sat, 7 Aug 2021 21:27:59 +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 4C9B61EE; Sat, 7 Aug 2021 21:27:59 +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 177LRxX3021834; Sat, 7 Aug 2021 21:27:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 177LRxKY021833; Sat, 7 Aug 2021 21:27:59 GMT (envelope-from git) Date: Sat, 7 Aug 2021 21:27:59 GMT Message-Id: <202108072127.177LRxKY021833@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: fd66760b1bf6 - main - science/orthanc-mysql: New 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: fd66760b1bf6a428787ca9a98ff9567d22d5dd51 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: Sat, 07 Aug 2021 21:27:59 -0000 The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fd66760b1bf6a428787ca9a98ff9567d22d5dd51 commit fd66760b1bf6a428787ca9a98ff9567d22d5dd51 Author: Frank Scholl AuthorDate: 2021-08-07 21:26:56 +0000 Commit: Guangyuan Yang CommitDate: 2021-08-07 21:26:56 +0000 science/orthanc-mysql: New port Orthanc plugin to use MySQL/MariaDB for indexing or storage. PR: 242552 --- science/Makefile | 1 + science/orthanc-mysql/Makefile | 48 +++++++++++++++++++++++++++++++++++++++++ science/orthanc-mysql/distinfo | 7 ++++++ science/orthanc-mysql/pkg-descr | 5 +++++ science/orthanc-mysql/pkg-plist | 4 ++++ 5 files changed, 65 insertions(+) diff --git a/science/Makefile b/science/Makefile index e043cab1c2b9..a1eeff45bed3 100644 --- a/science/Makefile +++ b/science/Makefile @@ -177,6 +177,7 @@ SUBDIR += opensph SUBDIR += opsin SUBDIR += orthanc + SUBDIR += orthanc-mysql SUBDIR += orthanc-webviewer SUBDIR += p5-Algorithm-SVMLight SUBDIR += p5-Chemistry-3DBuilder diff --git a/science/orthanc-mysql/Makefile b/science/orthanc-mysql/Makefile new file mode 100644 index 000000000000..c63b5c716eb9 --- /dev/null +++ b/science/orthanc-mysql/Makefile @@ -0,0 +1,48 @@ +# Created by: maintainer.freebsd@xpoundit.com + +PORTNAME= orthanc-mysql +DISTVERSION= 4.0 +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 \ + https://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty +DISTFILES= OrthancMySQL-${PORTVERSION}.tar.gz:main \ + Orthanc-1.9.3.tar.gz:framework \ + e2fsprogs-1.44.5.tar.gz:thirdparty +DIST_SUBDIR= orthanc +EXTRACT_ONLY= OrthancMySQL-${PORTVERSION}.tar.gz + +MAINTAINER= maintainer.freebsd@xpoundit.com +COMMENT= Orthanc plugin to use MySQL/MariaDB for indexing or storage + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCDatabasePlugin.h:science/orthanc +LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ + libcurl.so:ftp/curl \ + libgdcmCommon.so:devel/gdcm \ + libjsoncpp.so:devel/jsoncpp \ + libpugixml.so:textproc/pugixml +RUN_DEPENDS= Orthanc:science/orthanc + +USES= cmake localbase mysql:client python:build ssl +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/OrthancMySQL-${PORTVERSION} +CMAKE_SOURCE_PATH= ${WRKSRC}/MySQL +CMAKE_OFF= DBUILD_UNIT_TESTS USE_SYSTEM_ORTHANC_SDK USE_SYSTEM_UUID +CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources \ + -DORTHANC_FRAMEWORK_SOURCE=path +CXXFLAGS+= -I${LOCALBASE}/include -DNDEBUG +CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG + +PLIST_SUB= DISTVERSION=${DISTVERSION} + +post-extract: + ${MKDIR} ${WRKSRC}/MySQL/ThirdPartyDownloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.9.3.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads + ${TAR} -C ${WRKSRC}/MySQL/ThirdPartyDownloads -xf ${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.9.3.tar.gz + +.include diff --git a/science/orthanc-mysql/distinfo b/science/orthanc-mysql/distinfo new file mode 100644 index 000000000000..23cc7032cd8b --- /dev/null +++ b/science/orthanc-mysql/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1620905033 +SHA256 (orthanc/OrthancMySQL-4.0.tar.gz) = 9420b7d3293768778fc4f60cc7d72c0e15c1287bead98f6c3a9beddf6865a09a +SIZE (orthanc/OrthancMySQL-4.0.tar.gz) = 318342 +SHA256 (orthanc/Orthanc-1.9.3.tar.gz) = 41cc35a3d15ecb0d7b834e8e28a740cc4ffa1f333c019a764228d60e96608960 +SIZE (orthanc/Orthanc-1.9.3.tar.gz) = 1818313 +SHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc +SIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237 diff --git a/science/orthanc-mysql/pkg-descr b/science/orthanc-mysql/pkg-descr new file mode 100644 index 000000000000..d05cb690085d --- /dev/null +++ b/science/orthanc-mysql/pkg-descr @@ -0,0 +1,5 @@ +Orthanc-mysql is an Orthanc plugin that replaces the default SQLite +engine of Orthanc with a MySQL back-end. The plugin is compatible +with MariaDB as well. + +WWW: https://www.orthanc-server.com/static.php?page=mysql diff --git a/science/orthanc-mysql/pkg-plist b/science/orthanc-mysql/pkg-plist new file mode 100644 index 000000000000..5e9be4387fa3 --- /dev/null +++ b/science/orthanc-mysql/pkg-plist @@ -0,0 +1,4 @@ +share/orthanc/plugins/libOrthancMySQLIndex.so +share/orthanc/plugins/libOrthancMySQLIndex.so.%%DISTVERSION%% +share/orthanc/plugins/libOrthancMySQLStorage.so +share/orthanc/plugins/libOrthancMySQLStorage.so.%%DISTVERSION%%