mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-07 12:01:54 +02:00
uhd: usrp drivers, etc
This commit is contained in:
parent
c7f6e4f613
commit
633d4f7ad7
2 changed files with 56 additions and 0 deletions
3
net-wireless/uhd/Manifest
Normal file
3
net-wireless/uhd/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
DIST EttusResearch-UHD-Mirror-3.4.2.tar.gz 6218344 RMD160 0ab25ead71e1f04db24faeb8e793ecad4526f499 SHA1 480aba2574a979150290d7d5fdb37067bf7e305a SHA256 f8a58f61039a3ea6bdb9b862b6eca08d692801df17e0d966f543a2ed39736a4d
|
||||
DIST uhd-images_003.004.002-release.tar.gz 6936128 RMD160 4424fe31d3bafdb9c1fca6ea057448c418c9233f SHA1 ce31c279b8aab6b1e42b9941a683dfd19796edc2 SHA256 2c708a0dd8d87a3a247ab7b06437d6d1d0ed1b83ec5e447ced409cedc2a61158
|
||||
EBUILD uhd-3.4.2.ebuild 1600 RMD160 3dc790938c187bce4ebef3320dda528984ce743d SHA1 5b033f9aefb1a7d524ec77d5305e2416413376cf SHA256 10015502e73c6e15347e9c13e7c04e287895c3ecc3170f84a8af5f6b587f6e9c
|
||||
53
net-wireless/uhd/uhd-3.4.2.ebuild
Normal file
53
net-wireless/uhd/uhd-3.4.2.ebuild
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
inherit versionator python
|
||||
|
||||
DESCRIPTION=""
|
||||
HOMEPAGE="http://code.ettus.com/redmine/ettus/projects/uhd/wiki"
|
||||
|
||||
SRC_URI="https://github.com/EttusResearch/UHD-Mirror/tarball/release_00$(get_version_component_range 1)_00$(get_version_component_range 2)_00$(get_version_component_range 3) -> EttusResearch-UHD-Mirror-$(get_version_component_range 1).$(get_version_component_range 2).$(get_version_component_range 3).tar.gz \
|
||||
http://files.ettus.com/binaries/maint_images/uhd-images_00$(get_version_component_range 1).00$(get_version_component_range 2).00$(get_version_component_range 3)-release.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}"/EttusResearch-UHD-Mirror-ad12df0
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND="dev-util/cmake
|
||||
dev-libs/libusb:1
|
||||
dev-libs/boost
|
||||
dev-python/cheetah"
|
||||
RDEPEND="dev-libs/libusb:1
|
||||
dev-libs/boost"
|
||||
|
||||
src_configure() {
|
||||
cd "${S}"/host
|
||||
mkdir build
|
||||
cd build
|
||||
use amd64 && cmake ../ -DCMAKE_INSTALL_PREFIX="${ED}"/usr -DLIB_SUFFIX=64
|
||||
use x86 && cmake ../ -DCMAKE_INSTALL_PREFIX="${ED}"/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/host/build
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/host/build
|
||||
emake install
|
||||
mv "${WORKDIR}"/uhd-images_00$(get_version_component_range 1).00$(get_version_component_range 2).00$(get_version_component_range 3)-release/share/uhd/images "${ED}"/usr/share/uhd/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}"/host/build
|
||||
emake test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
cp /usr/share/uhd/utils/uhd-usrp.rules /lib/udev/rules.d/99-uhd-usrp.rules
|
||||
}
|
||||
Loading…
Reference in a new issue