/[gentoo-x86]/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild
Gentoo

Contents of /net-wireless/rtl-sdr/rtl-sdr-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Jul 6 21:22:19 2014 UTC (4 years, 5 months ago) by zerochaos
Branch: MAIN
Changes since 1.6: +5 -6 lines
version bump

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

1 zerochaos 1.7 # Copyright 1999-2014 Gentoo Foundation
2 chithanh 1.1 # Distributed under the terms of the GNU General Public License v2
3 zerochaos 1.7 # $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.6 2013/06/28 22:13:36 zerochaos Exp $
4 chithanh 1.1
5 chithanh 1.3 EAPI=5
6 zerochaos 1.5
7 zerochaos 1.6 inherit autotools
8 chithanh 1.1
9     DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
10     HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
11 chithanh 1.3
12     if [[ ${PV} == 9999* ]]; then
13 zerochaos 1.7 inherit git-r3
14 chithanh 1.3 SRC_URI=""
15     EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
16     KEYWORDS=""
17     else
18 zerochaos 1.7 SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
19 zerochaos 1.4 KEYWORDS="~amd64 ~arm ~x86"
20 chithanh 1.3 fi
21 chithanh 1.1
22     LICENSE="GPL-2"
23     SLOT="0"
24     IUSE=""
25    
26     RDEPEND="virtual/libusb:1"
27     DEPEND="${RDEPEND}"
28    
29 chithanh 1.2 DOCS=( ${PN}.rules )
30    
31 chithanh 1.3 src_unpack() {
32     if [[ ${PV} == 9999* ]]; then
33 zerochaos 1.7 git-r3_src_unpack
34 chithanh 1.3 else
35     default
36     fi
37     }
38    
39 chithanh 1.1 src_prepare() {
40     eautoreconf
41     }
42 chithanh 1.2
43 zerochaos 1.6 pkg_postinst() {
44     local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules )
45     if [[ ! -f ${rulesfiles} ]]; then
46     elog "By default, only users in the usb group can capture."
47     elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
48     elog "Or the device can be WORLD readable and writable by installing ${PN}.rules"
49     elog "from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
50     fi
51 chithanh 1.2 }

  ViewVC Help
Powered by ViewVC 1.1.20