/[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.8 - (show annotations) (download)
Tue Dec 23 18:17:11 2014 UTC (3 years, 7 months ago) by tomjbe
Branch: MAIN
Changes since 1.7: +6 -1 lines
Fix docdir (bug 533330)

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x762053D5)

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-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.7 2014/07/06 21:22:19 zerochaos Exp $
4
5 EAPI=5
6
7 inherit autotools
8
9 DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
10 HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
11
12 if [[ ${PV} == 9999* ]]; then
13 inherit git-r3
14 SRC_URI=""
15 EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
16 KEYWORDS=""
17 else
18 SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
19 KEYWORDS="~amd64 ~arm ~x86"
20 fi
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 IUSE=""
25
26 RDEPEND="virtual/libusb:1"
27 DEPEND="${RDEPEND}"
28
29 DOCS=( ${PN}.rules )
30
31 src_unpack() {
32 if [[ ${PV} == 9999* ]]; then
33 git-r3_src_unpack
34 else
35 default
36 fi
37 }
38
39 src_prepare() {
40 sed -i "s:pkgdocdir:docdir:g" Makefile.am || die
41 eautoreconf
42 }
43
44 src_configure() {
45 econf --docdir="/usr/share/doc/${PF}"
46 }
47
48 pkg_postinst() {
49 local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules )
50 if [[ ! -f ${rulesfiles} ]]; then
51 elog "By default, only users in the usb group can capture."
52 elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
53 elog "Or the device can be WORLD readable and writable by installing ${PN}.rules"
54 elog "from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20