You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.8 KiB
47 lines
1.8 KiB
10 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/net-wireless/uhd/uhd-3.8.2.ebuild,v 1.1 2015/02/17 03:32:12 zerochaos Exp $
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
PYTHON_COMPAT=( python2_7 )
|
||
10 years ago
|
inherit versionator python-single-r1 gnome2-utils cmake-utils multilib
|
||
10 years ago
|
|
||
|
DESCRIPTION="Universal Software Radio Peripheral (USRP) Hardware Driver"
|
||
|
HOMEPAGE="http://code.ettus.com/redmine/ettus/projects/uhd/wiki"
|
||
|
|
||
|
image_version=uhd-images_00$(get_version_component_range 1).00$(get_version_component_range 2).00$(get_version_component_range 3)-release
|
||
|
SRC_URI="https://github.com/EttusResearch/uhd/archive/release_00$(get_version_component_range 1)_00$(get_version_component_range 2)_00$(get_version_component_range 3).tar.gz -> EttusResearch-UHD-$(get_version_component_range 1).$(get_version_component_range 2).$(get_version_component_range 3).tar.gz \
|
||
10 years ago
|
http://files.ettus.com/binaries/images/${image_version}.zip"
|
||
10 years ago
|
#https://github.com/EttusResearch/UHD-Mirror/tags
|
||
10 years ago
|
#http://files.ettus.com/binaries/images/
|
||
10 years ago
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
10 years ago
|
S="${WORKDIR}"/uhd-release_00$(get_version_component_range 1)_00$(get_version_component_range 2)_00$(get_version_component_range 3)/host
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0/1"
|
||
|
IUSE=""
|
||
|
RDEPEND="virtual/libusb:1
|
||
10 years ago
|
dev-lang/orc
|
||
|
dev-libs/boost:=
|
||
|
sys-libs/ncurses
|
||
|
"
|
||
10 years ago
|
DEPEND="${RDEPEND}
|
||
10 years ago
|
dev-python/cheetah
|
||
|
app-arch/unzip"
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
10 years ago
|
gnome2_environment_reset #534582
|
||
|
|
||
10 years ago
|
#this may not be needed in 3.4.3 and above, please verify
|
||
10 years ago
|
sed -i 's#SET(PKG_LIB_DIR ${PKG_DATA_DIR})#SET(PKG_LIB_DIR ${LIBRARY_DIR}/uhd)#g' CMakeLists.txt || die
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cmake-utils_src_install
|
||
|
python_fix_shebang "${ED}"/usr/$(get_libdir)/${PN}/utils/
|
||
|
insinto /lib/udev/rules.d/
|
||
|
doins "${S}"/utils/uhd-usrp.rules
|
||
|
insinto /usr/share/${PN}
|
||
|
doins -r "${WORKDIR}"/"${image_version}"/share/uhd/images
|
||
|
}
|