# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-plugins/google-talkplugin/google-talkplugin-3.5.1.0.ebuild,v 1.1 2012/08/26 04:27:39 ottxor Exp $

EAPI=4

inherit eutils unpacker

VERSION_TAG="CI14A"
MY_PV="${PV}.${VERSION_TAG}"

SRC_URI="amd64? ( http://bitscope.com/download/files/${PN}_${MY_PV}_amd64.deb )
         x86? ( http://bitscope.com/download/files/${PN}_${MY_PV}_i386.deb )"

DESCRIPTION="BitScope Voltage and Frequency Meter. BitScope Meter is a frequency and voltage meter designed for use with the BitScope PC oscilloscopes. BitScope Meter displays voltage and frequency measurements, and displays several periods of the captured waveform."

HOMEPAGE="http://www.bitscope.com/software/meter"
IUSE=""
SLOT="0"

KEYWORDS="-* ~amd64 ~x86"
LICENSE=""
RESTRICT=""

RDEPEND=">=dev-libs/atk-1.29.3
    sys-libs/glibc
	>=x11-libs/cairo-1.2.4
	>=dev-libs/glib-2.12.0
	>=x11-libs/gtk+-2.8.0
	>=x11-libs/pango-1.14.0
	x11-libs/libX11"

S=${WORKDIR}/${MY_P}

src_unpack() {
    unpack ${A} ./data.tar.gz
}

src_install() {
	dobin usr/bin/bitscope-meter
	dobin usr/bin/start-bitscope-meter
	dodoc -r usr/share/doc/bitscope-meter/*
	doicon usr/share/pixmaps/bitscope-meter.png
	make_desktop_entry bitscope-meter "BitScope Meter" bitscope-meter Education
}