Remove dev-db/mariadb-sha2-functions
[portage-overlay.git] / sci-electronics / picoscope / picoscope-6.10.1.4.13.ebuild
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/sks/sks-1.1.4-r1.ebuild,v 1.2 2013/12/13 09:29:03 patrick Exp $
4
5 EAPI=5
6
7 inherit rpm user udev
8
9 DESCRIPTION="PicoScope is the standard in PC Oscilloscope software"
10 HOMEPAGE="http://www.picotech.com/picoscope-oscilloscope-software.html"
11 MY_V=(${PV//./ })
12 MY_PV=${MY_V[0]}"."${MY_V[1]}"."${MY_V[2]}"-"${MY_V[3]}"r"${MY_V[4]}
13 SRC_URI="http://labs.picotech.com/rpm/noarch/picoscope-${MY_PV}.noarch.rpm"
14 LICENSE="PICO"
15 SLOT="0"
16 KEYWORDS="~amd64"
17 IUSE=""
18
19 CDEPEND=""
20 DEPEND="${CDEPEND}"
21 RDEPEND="
22         dev-lang/mono
23         dev-dotnet/atk-sharp
24         dev-dotnet/gdk-sharp
25         dev-dotnet/glib-sharp
26         dev-dotnet/gtk-dotnet-sharp
27         dev-dotnet/gtk-sharp
28         dev-libs/libusb
29         dev-libs/picoipp
30         dev-libs/usbdrdaq
31         dev-libs/plcm3
32         dev-libs/usbpt104
33         ${CDEPEND}"
34
35 S="${WORKDIR}/"
36
37 pkg_setup() 
38 {
39         ebegin "Creating named group"
40         enewgroup pico
41 }
42
43 pkg_postinst() {
44         elog "Please note that you will have to install the corresponding driver"
45         elog "for your device. Consult dev-libs/psXXXX packages corresponding"
46         elog "to your device. You may get some help determining which driver to"
47         elog "pull in at: http://www.picotech.com/linux.html"
48         elog "Note that you have to be either root or member of the group pico to"
49         elog "be able to use picoscope devices. You can add a user to the pico group"
50         elog "using usermod -a -G pico <username>"
51 }
52
53 src_unpack()
54 {
55     rpm_src_unpack ${A}
56 }
57
58 src_install()
59 {
60         insinto "/opt"
61         doins -r opt/*
62         fperms 755 "/opt/picoscope/bin/picoscope"
63         udev_dorules "${FILESDIR}/95-pico.rules"
64         domenu "${FILESDIR}/picoscope.desktop"
65 }