summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/labone')
-rw-r--r--sci-electronics/labone/Manifest1
-rw-r--r--sci-electronics/labone/labone-16.12.42529.ebuild74
-rw-r--r--sci-electronics/labone/metadata.xml8
3 files changed, 83 insertions, 0 deletions
diff --git a/sci-electronics/labone/Manifest b/sci-electronics/labone/Manifest
new file mode 100644
index 000000000000..73049156a1e6
--- /dev/null
+++ b/sci-electronics/labone/Manifest
@@ -0,0 +1 @@
+DIST LabOneLinux64-16.12.42529.tar.gz 120562203 SHA256 c31db918afc031fbef440269e4707d461373cc4cb64c7dae9c5ca980ed5a002e SHA512 31068792ca4c2ab88490eacf35a84f8a2c31b330087ee91154e5ecdae63bcf557563c80e45af4a855df9d7d9a1d5b5a761ef5d957ce357368706307ea5ea196b WHIRLPOOL 6d4ff6b625b3e1a3d6c5483aab71e293eb56e3714d7bb7a7cba47d01d76e32150bb9a1e763249c6dadf9f0934b322b87730bbb55bb6bf25b6fbf05f0efdcecb9
diff --git a/sci-electronics/labone/labone-16.12.42529.ebuild b/sci-electronics/labone/labone-16.12.42529.ebuild
new file mode 100644
index 000000000000..8b14560bdd67
--- /dev/null
+++ b/sci-electronics/labone/labone-16.12.42529.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Platform independent instrument control for Zurich Instruments devices"
+HOMEPAGE="https://www.zhinst.com/labone"
+SRC_URI="https://www.zhinst.com/system/files/downloads/files/LabOneLinux64-${PV}.tar.gz"
+
+LICENSE="zi-labone"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror bindist"
+IUSE="minimal"
+
+QA_PREBUILT="*"
+
+RDEPEND=""
+
+S=${WORKDIR}/LabOneLinux64-${PV}
+
+src_install() {
+ local instPath=/opt/zi
+ local instrDir="LabOne64-${PV}"
+
+ if ! use minimal ; then
+
+ dodir ${instPath}/${instrDir}
+ for dir in API DataServer Documentation WebServer release_notes_16.12.txt ; do
+ cp -a "$dir" "${D}${instPath}/${instrDir}/" || die
+ done
+
+ dosym ../..${instPath}/${instrDir}/DataServer/ziServer /opt/bin/ziServer
+ dosym ../..${instPath}/${instrDir}/DataServer/ziDataServer /opt/bin/ziDataServer
+
+ echo "#!/bin/bash" > "${T}/startWebServer" || die
+ echo "${instPath}/${instrDir}/WebServer/ziWebServer -r ${instPath}/${instrDir}/WebServer/html --ip 127.0.0.1 --server-port 8004" >> "${T}/startWebServer" || die
+ chmod 755 "${T}/startWebServer" || die
+ exeinto /opt/bin
+ doexe "${T}/startWebServer"
+ elog For security reasons the startWebServer script listens on the localhost interface only.
+ else
+
+ insinto "${instPath}/${instrDir}/API/C/lib"
+ doins API/C/lib/*.so
+ insinto "${instPath}/${instrDir}/API/C/include"
+ doins API/C/lib/*.h
+
+ fi
+
+ dosym "../..${instPath}/${instrDir}/API/C/include/ziAPI.h" "usr/include/ziAPI.h"
+ dosym "../..${instPath}/${instrDir}/API/C/lib/libziAPI-linux64.so" "usr/$(get_libdir)/libziAPI-linux64.so"
+
+ # the udev integration
+
+ sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/config || die
+ insinto /etc/ziService
+ doins Installer/udev/config
+ sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/55-zhinst.rules || die
+ insinto /lib/udev/rules.d
+ doins Installer/udev/55-zhinst.rules
+ exeinto /opt/bin
+ doexe Installer/udev/ziService
+
+ # just to make sure
+ dosym ../../opt/bin/ziService usr/bin/ziService
+}
+
+pkg_prerm() {
+ if [[ -x /opt/bin/ziService ]]; then
+ einfo "Stopping ziService for safe unmerge"
+ /opt/bin/ziService stop
+ fi
+}
diff --git a/sci-electronics/labone/metadata.xml b/sci-electronics/labone/metadata.xml
new file mode 100644
index 000000000000..765a8e365b52
--- /dev/null
+++ b/sci-electronics/labone/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+</pkgmetadata>