Github messages for voidlinux
 help / color / mirror / Atom feed
From: anhangah <anhangah@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Orthanc-1.11.2
Date: Fri, 30 Dec 2022 03:10:54 +0100	[thread overview]
Message-ID: <20221230021054.bw39m-Ko7BWufDqRmhxBkoh4qHnDpMibPigsF_H4u-s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38537@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

There is an updated pull request by anhangah against master on the void-packages repository

https://github.com/anhangah/void-packages orthanc
https://github.com/void-linux/void-packages/pull/38537

New package: Orthanc-1.11.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)

A patch file from https://github.com/void-linux/void-packages/pull/38537.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-orthanc-38537.patch --]
[-- Type: text/x-diff, Size: 17630 bytes --]

From 55edcc9d4ce67f29ae4a2432db68accce389e886 Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Mon, 8 Aug 2022 16:24:16 -0300
Subject: [PATCH 1/6] New package: dcmtk-3.6.7

---
 common/shlibs          | 28 ++++++++++++++++++++++
 srcpkgs/dcmtk-doc      |  1 +
 srcpkgs/dcmtk/template | 54 ++++++++++++++++++++++++++++++++++++++++++
 srcpkgs/libdcmtk       |  1 +
 srcpkgs/libdcmtk-devel |  1 +
 5 files changed, 85 insertions(+)
 create mode 120000 srcpkgs/dcmtk-doc
 create mode 100644 srcpkgs/dcmtk/template
 create mode 120000 srcpkgs/libdcmtk
 create mode 120000 srcpkgs/libdcmtk-devel

diff --git a/common/shlibs b/common/shlibs
index 1c852ef3fdff..9877925f6276 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4221,3 +4221,31 @@ libfst.so.25 openfst-1.8.2_1
 libvosk.so vosk-api-0.3.43_1
 libdspy-1.so.1 d-spy-1.4.0_1
 libpanel-1.so.1 libpanel-1.0.1_1
+libcivetweb.so.1 libcivetweb-1.15_1
+libcmr.so.17 libdcmtk-3.6.7_1
+libdcmrt.so.17 libdcmtk-3.6.7_1
+libdcmdata.so.17 libdcmtk-3.6.7_1
+libdcmseg.so.17 libdcmtk-3.6.7_1
+libdcmdsig.so.17 libdcmtk-3.6.7_1
+libdcmsr.so.17 libdcmtk-3.6.7_1
+libdcmect.so.17 libdcmtk-3.6.7_1
+libdcmtkcharls.so.17 libdcmtk-3.6.7_1
+libdcmfg.so.17 libdcmtk-3.6.7_1
+libdcmtls.so.17 libdcmtk-3.6.7_1
+libdcmimage.so.17 libdcmtk-3.6.7_1
+libdcmtract.so.17 libdcmtk-3.6.7_1
+libdcmimgle.so.17 libdcmtk-3.6.7_1
+libdcmwlm.so.17 libdcmtk-3.6.7_1
+libdcmiod.so.17 libdcmtk-3.6.7_1
+libi2d.so.17 libdcmtk-3.6.7_1
+libdcmjpeg.so.17 libdcmtk-3.6.7_1
+libijg12.so.17 libdcmtk-3.6.7_1
+libdcmjpls.so.17 libdcmtk-3.6.7_1
+libijg16.so.17 libdcmtk-3.6.7_1
+libdcmnet.so.17 libdcmtk-3.6.7_1
+libijg8.so.17 libdcmtk-3.6.7_1
+libdcmpmap.so.17 libdcmtk-3.6.7_1
+liboflog.so.17 libdcmtk-3.6.7_1
+libdcmpstat.so.17 libdcmtk-3.6.7_1
+libofstd.so.17 libdcmtk-3.6.7_1
+libdcmqrdb.so.17 libdcmtk-3.6.7_1
diff --git a/srcpkgs/dcmtk-doc b/srcpkgs/dcmtk-doc
new file mode 120000
index 000000000000..69ff54ce2e0c
--- /dev/null
+++ b/srcpkgs/dcmtk-doc
@@ -0,0 +1 @@
+dcmtk
\ No newline at end of file
diff --git a/srcpkgs/dcmtk/template b/srcpkgs/dcmtk/template
new file mode 100644
index 000000000000..8987937f08a6
--- /dev/null
+++ b/srcpkgs/dcmtk/template
@@ -0,0 +1,54 @@
+# Template file for 'dcmtk'
+pkgname=dcmtk
+version=3.6.7
+revision=1
+build_style=cmake
+configure_args="-DDCMTK_ENABLE_CXX11=ON -DBUILD_SHARED_LIBS=ON
+ -DDCMTK_WITH_DOXYGEN=ON"
+hostmakedepends="doxygen"
+makedepends="openssl-devel zlib-devel tiff-devel libpng-devel libxml2-devel
+ icu-devel"
+short_desc="Libraries and tools that implements DICOM standard"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="custom: see /usr/share/licenses/${pkgname}"
+homepage="https://dcmtk.org/dcmtk.php.en"
+distfiles="https://dicom.offis.de/download/dcmtk/dcmtk${version//.}/dcmtk-${version}.tar.gz"
+checksum=7c58298e3e8d60232ee6fc8408cfadd14463cc11a3c4ca4c59af5988c7e9710a
+nocross="It's some tricky to achieve cross building, wich needs to compile and
+ run some tests codes on the target arch.
+ See https://support.dcmtk.org/redmine/projects/dcmtk/wiki/Cross_Compiling"
+
+pre_build() {
+	ninja -C build DOXYGEN
+}
+
+post_install() {
+	vlicense COPYRIGHT
+}
+
+dcmtk-doc_package() {
+	short_desc+=' - documentation'
+	pkg_install() {
+		vmove usr/share/doc
+	}
+}
+
+# TODO need license here
+libdcmtk_package() {
+	short_desc+=' - runtime libraries'
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vmove usr/share/dcmtk
+	}
+}
+
+libdcmtk-devel_package() {
+	short_desc+=' - development files'
+	depends="lib${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove "usr/lib/*.so"
+	}
+}
diff --git a/srcpkgs/libdcmtk b/srcpkgs/libdcmtk
new file mode 120000
index 000000000000..69ff54ce2e0c
--- /dev/null
+++ b/srcpkgs/libdcmtk
@@ -0,0 +1 @@
+dcmtk
\ No newline at end of file
diff --git a/srcpkgs/libdcmtk-devel b/srcpkgs/libdcmtk-devel
new file mode 120000
index 000000000000..69ff54ce2e0c
--- /dev/null
+++ b/srcpkgs/libdcmtk-devel
@@ -0,0 +1 @@
+dcmtk
\ No newline at end of file

From 78a7d4475b0d01b5cfc0515d854a90c3e824b56e Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Mon, 8 Aug 2022 16:22:27 -0300
Subject: [PATCH 2/6] New package: civetweb-1.15

---
 srcpkgs/civetweb/patches/install-fix.patch | 16 +++++++++
 srcpkgs/civetweb/template                  | 39 ++++++++++++++++++++++
 srcpkgs/libcivetweb                        |  1 +
 srcpkgs/libcivetweb-devel                  |  1 +
 4 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/civetweb/patches/install-fix.patch
 create mode 100644 srcpkgs/civetweb/template
 create mode 120000 srcpkgs/libcivetweb
 create mode 120000 srcpkgs/libcivetweb-devel

diff --git a/srcpkgs/civetweb/patches/install-fix.patch b/srcpkgs/civetweb/patches/install-fix.patch
new file mode 100644
index 000000000000..be282dbf613c
--- /dev/null
+++ b/srcpkgs/civetweb/patches/install-fix.patch
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -19,10 +19,10 @@
+ # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
+ PREFIX ?= /usr/local
+ EXEC_PREFIX = $(PREFIX)
+-BINDIR = $(EXEC_PREFIX)/bin
+-DATAROOTDIR = $(PREFIX)/share
++BINDIR = $(DESTDIR)$(EXEC_PREFIX)/bin
++DATAROOTDIR = $(DESTDIR)$(PREFIX)/share
+ DOCDIR = $(DATAROOTDIR)/doc/$(CPROG)
+-SYSCONFDIR ?= $(PREFIX)/etc
++SYSCONFDIR ?= $(DESTDIR)/etc
+ HTMLDIR = $(DOCDIR)
+ INCLUDEDIR = $(DESTDIR)$(PREFIX)/include
+ LIBDIR = $(DESTDIR)$(EXEC_PREFIX)/lib
diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template
new file mode 100644
index 000000000000..96ff8080508b
--- /dev/null
+++ b/srcpkgs/civetweb/template
@@ -0,0 +1,39 @@
+# Template file for 'civetweb'
+pkgname=civetweb
+version=1.15
+revision=1
+build_style=gnu-makefile
+make_install_target="install install-headers install-lib install-slib"
+make_use_env=yes
+makedepends="openssl-devel"
+short_desc="Embedded C/C++ web server"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="MIT"
+homepage="https://civetweb.github.io/civetweb/"
+distfiles="https://github.com/civetweb/civetweb/archive/refs/tags/v${version}.tar.gz"
+checksum=90a533422944ab327a4fbb9969f0845d0dba05354f9cacce3a5005fa59f593b9
+
+pre_install() {
+	vmkdir usr/include
+}
+
+post_install() {
+	vlicense LICENSE.md
+}
+
+libcivetweb_package() {
+	short_desc+=' - library'
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+	}
+}
+
+libcivetweb-devel_package() {
+	depends="lib${sourcepkg}>=${version}_${revision}"
+	short_desc+=' - development files'
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
diff --git a/srcpkgs/libcivetweb b/srcpkgs/libcivetweb
new file mode 120000
index 000000000000..f740b5313316
--- /dev/null
+++ b/srcpkgs/libcivetweb
@@ -0,0 +1 @@
+civetweb
\ No newline at end of file
diff --git a/srcpkgs/libcivetweb-devel b/srcpkgs/libcivetweb-devel
new file mode 120000
index 000000000000..f740b5313316
--- /dev/null
+++ b/srcpkgs/libcivetweb-devel
@@ -0,0 +1 @@
+civetweb
\ No newline at end of file

From 44818fbfdf91f72acd472380a8c48bbc19f52dc9 Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Tue, 9 Aug 2022 16:53:53 -0300
Subject: [PATCH 3/6] New package: Orthanc-1.11.2

---
 srcpkgs/Orthanc-devel                |  1 +
 srcpkgs/Orthanc-plugins              |  1 +
 srcpkgs/Orthanc/files/orthanc/run    | 31 ++++++++++++++
 srcpkgs/Orthanc/patches/config.patch | 28 +++++++++++++
 srcpkgs/Orthanc/template             | 63 ++++++++++++++++++++++++++++
 5 files changed, 124 insertions(+)
 create mode 120000 srcpkgs/Orthanc-devel
 create mode 120000 srcpkgs/Orthanc-plugins
 create mode 100755 srcpkgs/Orthanc/files/orthanc/run
 create mode 100644 srcpkgs/Orthanc/patches/config.patch
 create mode 100644 srcpkgs/Orthanc/template

diff --git a/srcpkgs/Orthanc-devel b/srcpkgs/Orthanc-devel
new file mode 120000
index 000000000000..6d0405937430
--- /dev/null
+++ b/srcpkgs/Orthanc-devel
@@ -0,0 +1 @@
+Orthanc
\ No newline at end of file
diff --git a/srcpkgs/Orthanc-plugins b/srcpkgs/Orthanc-plugins
new file mode 120000
index 000000000000..6d0405937430
--- /dev/null
+++ b/srcpkgs/Orthanc-plugins
@@ -0,0 +1 @@
+Orthanc
\ No newline at end of file
diff --git a/srcpkgs/Orthanc/files/orthanc/run b/srcpkgs/Orthanc/files/orthanc/run
new file mode 100755
index 000000000000..8a414082dd0e
--- /dev/null
+++ b/srcpkgs/Orthanc/files/orthanc/run
@@ -0,0 +1,31 @@
+#!/bin/sh
+OPTS=""
+[ -r conf ] && . ./conf
+
+: ${USER:="_orthanc"}
+
+: ${CONFIGFILE:="/etc/orthanc/Configuration.json"}
+[ -r "$CONFIGFILE" ] || exit 1
+
+: ${ORTHANCSTORAGE:="/var/lib/OrthancStorage"}
+if [ ! -e "$ORTHANCSTORAGE" ]
+then
+	mkdir -pm 0750 "$ORTHANCSTORAGE" &&
+	chown ${USER}:${USER} "$ORTHANCSTORAGE" ||
+	exit 1
+fi
+
+# Enable log
+if [ -n "$LOG" ]; then
+	: ${LOGDIR:="/var/log/orthanc"}
+	LOGDIR_OPT="--logdir=$LOGDIR"
+
+	if [ ! -e "$LOGDIR" ]; then
+		mkdir -pm 0750 "$LOGDIR" &&
+		chown ${USER}:${USER} "$LOGDIR" ||
+		exit 1
+	fi
+fi
+
+# Set OPTS on conf file for aditional parameters
+exec chpst -u ${USER}:${USER} Orthanc $OPTS "$LOGDIR_OPT" "$CONFIGFILE"
diff --git a/srcpkgs/Orthanc/patches/config.patch b/srcpkgs/Orthanc/patches/config.patch
new file mode 100644
index 000000000000..94db1a0a6c90
--- /dev/null
+++ b/srcpkgs/Orthanc/patches/config.patch
@@ -0,0 +1,28 @@
+--- a/OrthancServer/Resources/Configuration.json	2022-06-30 08:04:50.000000000 -0300
++++ b/OrthancServer/Resources/Configuration.json	2022-06-30 08:04:50.000000000 -0300
+@@ -10,12 +10,12 @@
+   // Path to the directory that holds the heavyweight files (i.e. the
+   // raw DICOM instances). Backslashes must be either escaped by
+   // doubling them, or replaced by forward slashes "/".
+-  "StorageDirectory" : "OrthancStorage",
++  "StorageDirectory" : "/var/lib/OrthancStorage",
+ 
+   // Path to the directory that holds the SQLite index (if unset, the
+   // value of StorageDirectory is used). This index could be stored on
+   // a RAM-drive or a SSD device for performance reasons.
+-  "IndexDirectory" : "OrthancStorage",
++  "IndexDirectory" : "/var/lib/OrthancStorage",
+ 
+   // Path to the directory where Orthanc stores its large temporary
+   // files. The content of this folder can be safely deleted once
+@@ -670,8 +670,8 @@
+   // server. (new in Orthanc 1.9.4)
+   /**
+      "ExternalDictionaries" : [
+-     "/usr/share/libdcmtk12/dicom.dic",
+-     "/usr/share/libdcmtk12/diconde.dic"
++     "/usr/share/dcmtk/dicom.dic",
++     "/usr/share/dcmtk/diconde.dic"
+      ]
+   **/
+ 
diff --git a/srcpkgs/Orthanc/template b/srcpkgs/Orthanc/template
new file mode 100644
index 000000000000..61fbc39ed008
--- /dev/null
+++ b/srcpkgs/Orthanc/template
@@ -0,0 +1,63 @@
+# Template file for 'Orthanc'
+pkgname=Orthanc
+version=1.11.2
+revision=1
+build_wrksrc="OrthancServer"
+build_style=cmake
+configure_args="-DALLOW_DOWNLOADS=ON -DSTATIC_BUILD=OFF
+ -DBoost_NO_BOOST_CMAKE=ON -DDCMTK_DIR=/usr/lib/cmake/dcmtk"
+hostmakedepends="python3 unzip tar doxygen dcmtk"
+makedepends="libuuid-devel boost-devel libcurl-devel
+ libdcmtk-devel gtest-devel libpng-devel libjpeg-turbo-devel
+ sqlite-devel libcivetweb-devel openssl-devel jsoncpp-devel lua-devel
+ pugixml-devel"
+depends="dcmtk"
+short_desc="Lightweight RESTful DICOM server"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://www.orthanc-server.com/index.php"
+distfiles="https://www.orthanc-server.com/downloads/get.php?path=/orthanc/Orthanc-${version}.tar.gz"
+checksum=fd3a855f181db25db1baa9f94b2841b611dc623fb01c559f55be88502c6784a7
+python_version=3
+nocross="A package on makedepends (dcmtk) is marked as nocross"
+
+# Create '_orthanc' user for the server
+system_accounts="_orthanc"
+_orthanc_descr="Orthanc server user"
+
+conf_files="/etc/orthanc/Configuration.json"
+
+post_install() {
+	vsv orthanc
+	vinstall Resources/Configuration.json 0644 etc/orthanc
+
+	cd ${DESTDIR}
+	mv usr/sbin/* usr/bin/
+	rm -rf usr/sbin
+
+	mkdir -p usr/lib/orthanc/plugins
+	mv usr/share/orthanc/plugins/* usr/lib/orthanc/plugins/
+	rm -rf usr/share/orthanc/plugins
+
+	# Remove garbage
+	rm -rf builddir
+}
+
+Orthanc-devel_package() {
+	depends+=" ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/share/doc
+		vmkdir usr/share/orthanc/OrthancFramework 0755
+		vcopy ${wrksrc}/OrthancFramework usr/share/orthanc
+	}
+}
+
+Orthanc-plugins_package() {
+	depends+=" ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - official plugins"
+	pkg_install() {
+		vmove usr/lib/orthanc/plugins
+	}
+}

From fd9e8717ac66f9af7bc73dbc9d2ce137f0180aeb Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Tue, 9 Aug 2022 16:54:34 -0300
Subject: [PATCH 4/6] New package: Orthanc-DicomWeb-1.10

---
 srcpkgs/Orthanc-DicomWeb/template | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 srcpkgs/Orthanc-DicomWeb/template

diff --git a/srcpkgs/Orthanc-DicomWeb/template b/srcpkgs/Orthanc-DicomWeb/template
new file mode 100644
index 000000000000..079f08d1755c
--- /dev/null
+++ b/srcpkgs/Orthanc-DicomWeb/template
@@ -0,0 +1,27 @@
+# Template file for 'Orthanc-DicomWeb'
+pkgname=Orthanc-DicomWeb
+version=1.10
+revision=1
+wrksrc="${pkgname/-}-${version}"
+build_style=cmake
+configure_args="-DALLOW_DOWNLOADS=ON -DORTHANC_FRAMEWORK_SOURCE=path
+ -DORTHANC_FRAMEWORK_ROOT=/usr/share/orthanc/OrthancFramework/Sources"
+hostmakedepends="tar unzip python3"
+makedepends="Orthanc-devel pugixml-devel gtest-devel jsoncpp-devel
+ libuuid-devel boost-devel"
+short_desc="Plugin to bring support of the DICOMweb standard into Orthanc"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="AGPL-3.0-or-later"
+homepage="https://www.orthanc-server.com/static.php?page=dicomweb"
+distfiles="https://www.orthanc-server.com/downloads/get.php?path=/plugin-dicom-web/${pkgname/-}-${version}.tar.gz"
+checksum=84d6c290352cdfbbd63101f5462cbe4b67dd8268b55cf06a3363914c926bec73
+nocross="A package on makedepends (Orthanc-devel) is marked as nocross"
+
+post_install() {
+	vlicense COPYING
+
+	cd ${DESTDIR}
+	mkdir -p usr/lib/orthanc/plugins
+	mv usr/share/orthanc/plugins/* usr/lib/orthanc/plugins/
+	rm -rf usr/share/orthanc/plugins
+}

From b17d332af7e3b48f026e8a32c9c39283335d553d Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Tue, 9 Aug 2022 16:55:35 -0300
Subject: [PATCH 5/6] New package: Orthanc-PostgreSQL-4.0

---
 srcpkgs/Orthanc-PostgreSQL/template | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 srcpkgs/Orthanc-PostgreSQL/template

diff --git a/srcpkgs/Orthanc-PostgreSQL/template b/srcpkgs/Orthanc-PostgreSQL/template
new file mode 100644
index 000000000000..9b423c32ac89
--- /dev/null
+++ b/srcpkgs/Orthanc-PostgreSQL/template
@@ -0,0 +1,28 @@
+# Template file for 'Orthanc-PostgreSQL'
+pkgname=Orthanc-PostgreSQL
+version=4.0
+revision=1
+wrksrc="${pkgname/-}-${version}"
+build_wrksrc="PostgreSQL"
+build_style=cmake
+configure_args="-DORTHANC_FRAMEWORK_SOURCE=path
+ -DORTHANC_FRAMEWORK_ROOT=/usr/share/orthanc/OrthancFramework/Sources"
+hostmakedepends="tar unzip python3"
+makedepends="Orthanc-devel openssl-devel gtest-devel zlib-devel
+ jsoncpp-devel libuuid-devel boost-devel postgresql-libs-devel"
+short_desc="PostgreSQL database plugin for Orthanc"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="AGPL-3.0-or-later"
+homepage="https://www.orthanc-server.com/static.php?page=dicomweb"
+distfiles="https://www.orthanc-server.com/downloads/get.php?path=/plugin-postgresql/${pkgname/-}-${version}.tar.gz"
+checksum=a5049ed8a5d6bb8b6529636cf1d9f631d1b61f6e0bbfdc6accae45aded42bac5
+nocross="A package on makedepends (Orthanc-devel) is marked as nocross"
+
+post_install() {
+	vlicense ../COPYING
+
+	cd ${DESTDIR}
+	mkdir -p usr/lib/orthanc/plugins
+	mv usr/share/orthanc/plugins/* usr/lib/orthanc/plugins/
+	rm -rf usr/share/orthanc/plugins
+}

From c9fba1ace36d06259fcba670c435c7ebf188d7fe Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Tue, 9 Aug 2022 16:55:52 -0300
Subject: [PATCH 6/6] New package: Orthanc-Python-4.0

---
 srcpkgs/Orthanc-Python/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/Orthanc-Python/template

diff --git a/srcpkgs/Orthanc-Python/template b/srcpkgs/Orthanc-Python/template
new file mode 100644
index 000000000000..87df444dfc18
--- /dev/null
+++ b/srcpkgs/Orthanc-Python/template
@@ -0,0 +1,26 @@
+# Template file for 'Orthanc-Python'
+pkgname=Orthanc-Python
+version=4.0
+revision=1
+wrksrc="${pkgname/-}-${version}"
+build_style=cmake
+configure_args="-DPYTHON_VERSION=${py3_ver} -DORTHANC_FRAMEWORK_SOURCE=path
+ -DORTHANC_FRAMEWORK_ROOT=/usr/share/orthanc/OrthancFramework/Sources"
+hostmakedepends="tar unzip python3 pkg-config"
+makedepends="Orthanc-devel jsoncpp-devel libuuid-devel boost-devel python3-devel"
+short_desc="Python plugin for Orthanc"
+maintainer="Carlos E. Gallo F. <gcarlos@disroot.org>"
+license="AGPL-3.0-or-later"
+homepage="https://book.orthanc-server.com/plugins/python.html"
+distfiles="https://www.orthanc-server.com/downloads/get.php?path=/plugin-python/${pkgname/-}-${version}.tar.gz"
+checksum=3e5473abb8144c9c89101a09e733732cac19423bf847cfad51fd2bffab0e1647
+nocross="A package on makedepends (Orthanc-devel) is marked as nocross"
+
+post_install() {
+	vlicense COPYING
+
+	cd ${DESTDIR}
+	mkdir -p usr/lib/orthanc/plugins
+	mv usr/share/orthanc/plugins/* usr/lib/orthanc/plugins/
+	rm -rf usr/share/orthanc/plugins
+}

  parent reply	other threads:[~2022-12-30  2:10 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 17:30 [PR PATCH] New package: Orthanc-1.11.1 bingulo
2022-08-08 18:23 ` abenson
2022-08-08 18:30 ` [PR REVIEW] " ahesford
2022-08-08 18:30 ` ahesford
2022-08-08 18:30 ` ahesford
2022-08-08 18:30 ` Chocimier
2022-08-08 18:30 ` Chocimier
2022-08-08 18:30 ` Chocimier
2022-08-08 18:30 ` Chocimier
2022-08-08 18:30 ` Chocimier
2022-08-08 18:55 ` [PR PATCH] [Updated] " bingulo
2022-08-08 19:03 ` [PR REVIEW] " bingulo
2022-08-08 19:10 ` [PR PATCH] [Updated] " bingulo
2022-08-08 19:16 ` bingulo
2022-08-08 19:25 ` bingulo
2022-08-08 19:29 ` bingulo
2022-08-08 19:48 ` bingulo
2022-08-08 20:07 ` bingulo
2022-08-08 20:10 ` Chocimier
2022-08-08 20:33 ` [PR PATCH] [Updated] " bingulo
2022-08-08 20:34 ` [PR REVIEW] " bingulo
2022-08-08 20:35 ` bingulo
2022-08-08 20:39 ` bingulo
2022-08-08 21:52 ` classabbyamp
2022-08-09  1:37 ` [PR PATCH] [Updated] " bingulo
2022-08-09  1:37 ` [PR REVIEW] " bingulo
2022-08-09  2:50 ` [PR PATCH] [Updated] " bingulo
2022-08-09  2:51 ` bingulo
2022-08-09 14:36 ` [PR REVIEW] " Chocimier
2022-08-09 14:36 ` Chocimier
2022-08-09 14:36 ` Chocimier
2022-08-09 15:39 ` bingulo
2022-08-09 15:40 ` bingulo
2022-08-09 15:57 ` [PR PATCH] [Updated] " bingulo
2022-08-09 15:58 ` [PR REVIEW] " bingulo
2022-08-09 16:45 ` bingulo
2022-08-09 16:48 ` ahesford
2022-08-09 16:51 ` bingulo
2022-08-09 16:56 ` [PR PATCH] [Updated] " bingulo
2022-08-09 17:01 ` bingulo
2022-08-09 17:04 ` [PR PATCH] [Updated] " bingulo
2022-08-09 17:47 ` Chocimier
2022-08-09 17:53 ` bingulo
2022-08-09 17:53 ` bingulo
2022-08-09 20:12 ` [PR PATCH] [Updated] " bingulo
2022-08-10  1:26 ` bingulo
2022-08-10  2:26 ` bingulo
2022-08-10  2:31 ` bingulo
2022-08-10  2:37 ` bingulo
2022-08-11 16:43 ` [PR PATCH] [Updated] " bingulo
2022-08-24 22:36 ` bingulo
2022-10-13 19:52 ` bingulo
2022-11-15 22:18 ` anhangah
2022-11-17 13:46 ` anhangah
2022-11-17 13:54 ` anhangah
2022-11-17 13:59 ` anhangah
2022-11-17 14:03 ` New package: Orthanc-1.11.2 anhangah
2022-11-22 20:24 ` [PR PATCH] [Updated] " anhangah
2022-11-22 23:28 ` anhangah
2022-11-23 20:43 ` anhangah
2022-12-30  2:10 ` anhangah [this message]
2023-02-08 15:23 ` gcarlos64
2023-05-10  1:51 ` github-actions
2023-05-24  1:56 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221230021054.bw39m-Ko7BWufDqRmhxBkoh4qHnDpMibPigsF_H4u-s@z \
    --to=anhangah@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).