summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/digilent-waveforms/digilent-waveforms-3.14.3.ebuild')
-rw-r--r--sci-electronics/digilent-waveforms/digilent-waveforms-3.14.3.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/sci-electronics/digilent-waveforms/digilent-waveforms-3.14.3.ebuild b/sci-electronics/digilent-waveforms/digilent-waveforms-3.14.3.ebuild
new file mode 100644
index 0000000..548a282
--- /dev/null
+++ b/sci-electronics/digilent-waveforms/digilent-waveforms-3.14.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN=${PN//-/.}
+
+DESCRIPTION="Digilent WaveForms Application, Runtime, and SDK"
+HOMEPAGE="https://reference.digilentinc.com/reference/software/adept/start"
+SRC_URI="https://s3-us-west-2.amazonaws.com/digilent/Software/Waveforms2015/${PV}/${MY_PN}_${PV}_amd64.deb"
+
+LICENSE="Digilent-EULA"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtscript:5[scripttools]
+ sci-electronics/digilent-adept-runtime"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+QA_PREBUILT="*"
+RESTRICT="strip"
+
+src_unpack() {
+ default
+ mkdir "${S}"
+ cd "${S}"
+ tar xzf "${WORKDIR}/data.tar.gz" \
+ --exclude="usr/share/lintian" \
+ --exclude="usr/lib/digilent/waveforms/qtlibs"
+}
+
+src_install() {
+ dobin usr/bin/*
+
+ doheader -r usr/include/digilent
+
+ dolib.so usr/lib/libdwf.so
+ dolib.so usr/lib/libdwf.so.3
+ dolib.so usr/lib/libdwf.so.3.10.9
+
+ for manpage in usr/share/man/man1/*.gz; do
+ gunzip "$manpage"
+ doman "${manpage/.gz/}"
+ done
+
+ (
+ insinto /usr/lib
+ doins -r usr/lib/digilent
+
+ chmod +x "${ED}/usr/lib/digilent/waveforms/waveforms"
+ chmod +x "${ED}/usr/lib/digilent/waveforms/waveforms.sh"
+ )
+
+ (
+ insinto /usr/share
+ doins -r usr/share/digilent
+ )
+}