/[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.4 - (show annotations) (download)
Wed Jun 5 02:30:45 2013 UTC (5 years, 4 months ago) by zerochaos
Branch: MAIN
Changes since 1.3: +3 -3 lines
upstream made a snapshot, and I added an ~arm keyword

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

1 # Copyright 1999-2013 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.3 2013/06/01 12:56:33 chithanh Exp $
4
5 EAPI=5
6 inherit autotools
7
8 DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
9 HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
10
11 if [[ ${PV} == 9999* ]]; then
12 inherit git-2
13 SRC_URI=""
14 EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
15 KEYWORDS=""
16 else
17 SRC_URI="mirror://gentoo/${P}.tar.xz"
18 KEYWORDS="~amd64 ~arm ~x86"
19 fi
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 IUSE=""
24
25 RDEPEND="virtual/libusb:1"
26 DEPEND="${RDEPEND}"
27
28 DOCS=( ${PN}.rules )
29
30 src_unpack() {
31 if [[ ${PV} == 9999* ]]; then
32 git-2_src_unpack
33 else
34 default
35 mv ${PN} ${P} || die
36 fi
37 }
38
39 src_prepare() {
40 eautoreconf
41 }
42
43 pkg_postinst() {
44 local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules )
45 if [[ ! -f ${rulesfiles} ]]; then
46 elog "In order to allow users outside the usb group to capture samples, install"
47 elog "${PN}.rules from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20