summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/labone/labone-20.07.2325.ebuild')
-rw-r--r--sci-electronics/labone/labone-20.07.2325.ebuild83
1 files changed, 0 insertions, 83 deletions
diff --git a/sci-electronics/labone/labone-20.07.2325.ebuild b/sci-electronics/labone/labone-20.07.2325.ebuild
deleted file mode 100644
index 242175d..0000000
--- a/sci-electronics/labone/labone-20.07.2325.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# 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/sites/default/files/media/release_file/2020-09/LabOneLinux64-20.07.2325.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 Firmware release_notes_20.07.txt ; do
- mv "$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/include/*.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"
-
-
- # environment
-
- cat > "${T}/55-zhinst" <<ENTE
-HF2_DATA_SERVER_PORT=8005
-HF2_DATA_SERVER="/opt/bin/ziServer"
-HF2_DATA_SERVER_ARGS="--debug 7"
-LABONE_DATA_SERVER_PORT=8005
-LABONE_DATA_SERVER="/opt/bin/ziDataServer"
-LABONE_DATA_SERVER_ARGS="--debug 7"
-ENTE
-
- # the udev integration
-
- 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
-}