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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.8 2014/12/23 18:17:11 tomjbe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.9 2015/03/21 20:15:48 zerochaos Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit autotools 7inherit cmake-utils multilib
8 8
9DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver" 9DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
10HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr" 10HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
11 11
12if [[ ${PV} == 9999* ]]; then 12if [[ ${PV} == 9999* ]]; then
21 21
22LICENSE="GPL-2" 22LICENSE="GPL-2"
23SLOT="0" 23SLOT="0"
24IUSE="" 24IUSE=""
25 25
26RDEPEND="virtual/libusb:1" 26DEPEND="virtual/libusb:1"
27DEPEND="${RDEPEND}" 27RDEPEND="${DEPEND}"
28
29DOCS=( ${PN}.rules )
30 28
31src_unpack() { 29src_unpack() {
32 if [[ ${PV} == 9999* ]]; then 30 if [[ ${PV} == 9999* ]]; then
33 git-r3_src_unpack 31 git-r3_src_unpack
34 else 32 else
35 default 33 default
36 fi 34 fi
37} 35}
38 36
39src_prepare() {
40 sed -i "s:pkgdocdir:docdir:g" Makefile.am || die
41 eautoreconf
42}
43
44src_configure() { 37src_configure() {
45 econf --docdir="/usr/share/doc/${PF}" 38 #the udev rules are 666, we don't want that
39 mycmakeargs=(
40 -DINSTALL_UDEV_RULES=OFF
41 -DDETACH_KERNEL_DRIVER=ON
42 -DLIB_INSTALL_DIR=/usr/$(get_libdir)
43 )
44 cmake-utils_src_configure
46} 45}
47 46
48pkg_postinst() { 47pkg_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." 48 elog "Only users in the usb group can capture."
52 elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login." 49 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} 50}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20