/[gentoo-x86]/net-libs/libhackrf/libhackrf-2014.08.1.ebuild
Gentoo

Contents of /net-libs/libhackrf/libhackrf-2014.08.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 28 20:15:57 2014 UTC (6 years, 3 months ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
version bump

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

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-libs/libhackrf/libhackrf-9999.ebuild,v 1.5 2014/08/28 17:07:36 zerochaos Exp $
4
5 EAPI=5
6
7 inherit cmake-utils udev
8
9 DESCRIPTION="library for communicating with HackRF SDR platform"
10 HOMEPAGE="http://greatscottgadgets.com/hackrf/"
11
12 if [[ ${PV} == "9999" ]] ; then
13 EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
14 inherit git-2
15 KEYWORDS=""
16 EGIT_SOURCEDIR="${WORKDIR}/hackrf"
17 S="${WORKDIR}/hackrf/host/libhackrf"
18 else
19 S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
20 SRC_URI="mirror://sourceforge/hackrf/hackrf-${PV}.tar.xz"
21 KEYWORDS="~amd64 ~arm ~ppc ~x86"
22 fi
23
24 LICENSE="BSD"
25 SLOT="0/${PV}"
26 IUSE=""
27
28 DEPEND="virtual/libusb:1"
29 RDEPEND="${DEPEND}"
30
31 src_prepare() {
32 sed -i 's#plugdev#usb#' 53-hackrf.rules
33 }
34
35 src_install() {
36 cmake-utils_src_install
37 udev_dorules 53-hackrf.rules
38 }
39
40 pkg_postinst() {
41 einfo "Users in the usb group can use hackrf."
42 }

  ViewVC Help
Powered by ViewVC 1.1.20