From 3f7470626a6568307063d72d86551fbf1b94d12a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ch=C3=AD-Thanh=20Christopher=20Nguy=E1=BB=85n?= Date: Mon, 7 May 2018 17:26:10 +0200 Subject: [PATCH] net-wireless/osmo-fl2k: initial commit Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- net-wireless/osmo-fl2k/Manifest | 1 + net-wireless/osmo-fl2k/metadata.xml | 8 ++++ net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild | 48 +++++++++++++++++++ net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild | 48 +++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 net-wireless/osmo-fl2k/Manifest create mode 100644 net-wireless/osmo-fl2k/metadata.xml create mode 100644 net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild create mode 100644 net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild diff --git a/net-wireless/osmo-fl2k/Manifest b/net-wireless/osmo-fl2k/Manifest new file mode 100644 index 000000000000..9c9acab7da82 --- /dev/null +++ b/net-wireless/osmo-fl2k/Manifest @@ -0,0 +1 @@ +DIST osmo-fl2k-0.1.1.tar.xz 59196 BLAKE2B 031b9bdf7f03f3e9c3bcb158bf5695b3771381d5cbabb94853580c57cf8a7bafcacba6168815b6ff46d6fb4e463ea6caff0e1d289692510801409d8b4cf28b72 SHA512 fb19c34919956970106fe7a69632e691f01caef3a1bc212501304f9d910dd08389f95b8d031b3336d009afc08744d846ea3bc349e1d9446bbfd13e11ec95ceff diff --git a/net-wireless/osmo-fl2k/metadata.xml b/net-wireless/osmo-fl2k/metadata.xml new file mode 100644 index 000000000000..1570f891c6a3 --- /dev/null +++ b/net-wireless/osmo-fl2k/metadata.xml @@ -0,0 +1,8 @@ + + + + + radio@gentoo.org + Radio + + diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild new file mode 100644 index 000000000000..8125eb474ee7 --- /dev/null +++ b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils linux-info udev + +DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs" + +HOMEPAGE="https://osmocom.org/projects/osmo-fl2k/wiki" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.osmocom.org/osmo-fl2k" +else + KEYWORDS="~amd64" + SRC_URI="mirror://gentoo/${P}.tar.xz" +fi + +LICENSE="GPL-2+" +SLOT="0" + +IUSE="udev" + +DEPEND="virtual/libusb:1" +RDEPEND="${DEPEND} + media-sound/sox + sys-apps/pv" + +# continguous memory allocator can optionally be used for zero-copy transfer +# TODO: tell users to set CONFIG_CMA_SIZE_MBYTES or boot with cma=... parameter +CONFIG_CHECK="~CMA ~DMA_CMA" + +src_configure() { + # udev rules use wrong filename and would go to wrong directory anyway + local mycmakeargs=( + -DLIB_INSTALL_DIR="/usr/$(get_libdir)" + -DINSTALL_UDEV_RULES=OFF + ) + cmake-utils_src_configure +} + +src_install() { + if use udev; then + udev_newrules ${PN}.rules 99-${PN}.rules + fi + cmake-utils_src_install +} diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild new file mode 100644 index 000000000000..8125eb474ee7 --- /dev/null +++ b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils linux-info udev + +DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs" + +HOMEPAGE="https://osmocom.org/projects/osmo-fl2k/wiki" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.osmocom.org/osmo-fl2k" +else + KEYWORDS="~amd64" + SRC_URI="mirror://gentoo/${P}.tar.xz" +fi + +LICENSE="GPL-2+" +SLOT="0" + +IUSE="udev" + +DEPEND="virtual/libusb:1" +RDEPEND="${DEPEND} + media-sound/sox + sys-apps/pv" + +# continguous memory allocator can optionally be used for zero-copy transfer +# TODO: tell users to set CONFIG_CMA_SIZE_MBYTES or boot with cma=... parameter +CONFIG_CHECK="~CMA ~DMA_CMA" + +src_configure() { + # udev rules use wrong filename and would go to wrong directory anyway + local mycmakeargs=( + -DLIB_INSTALL_DIR="/usr/$(get_libdir)" + -DINSTALL_UDEV_RULES=OFF + ) + cmake-utils_src_configure +} + +src_install() { + if use udev; then + udev_newrules ${PN}.rules 99-${PN}.rules + fi + cmake-utils_src_install +} -- 2.26.2