summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2023-12-20 15:45:22 -0500
committerRick Farina <zerochaos@gentoo.org>2023-12-20 15:47:15 -0500
commit04f21bc5e9ab20d7ee579d4afda1dcd5723d9b72 (patch)
treeaa521f7efdfc8da25e786e6465339ca2e7e7a2f8 /net-wireless
parentmedia-video/libva-utils: Version bump to 2.20.1 (diff)
downloadgentoo-04f21bc5e9ab20d7ee579d4afda1dcd5723d9b72.tar.gz
gentoo-04f21bc5e9ab20d7ee579d4afda1dcd5723d9b72.tar.bz2
gentoo-04f21bc5e9ab20d7ee579d4afda1dcd5723d9b72.zip
net-wireless/osmo-fl2k: add 0.2.0
Migrate to new upstream git service. Closes: https://bugs.gentoo.org/861959 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/osmo-fl2k/Manifest1
-rw-r--r--net-wireless/osmo-fl2k/osmo-fl2k-0.2.0.ebuild62
-rw-r--r--net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild6
3 files changed, 66 insertions, 3 deletions
diff --git a/net-wireless/osmo-fl2k/Manifest b/net-wireless/osmo-fl2k/Manifest
index acd1b0033b76..9ec521c5c58a 100644
--- a/net-wireless/osmo-fl2k/Manifest
+++ b/net-wireless/osmo-fl2k/Manifest
@@ -1 +1,2 @@
DIST osmo-fl2k-0.1.1.tar.gz 68811 BLAKE2B 6c1b602b47d5e0816d93750e0470ed4530e587341f28e2e93c3aef634d7108b981cc4a96b758d72796316f15e4401ef746b91a983f374e63103ac76d8b7168c1 SHA512 55b384e18cfa5a1ab660860874cc6f6256b812ee867c863b6cd12c67cfc3517632469fc1ed6b83a35c956aa5371e1198634a52b292b109da828bee60c23f5140
+DIST osmo-fl2k-0.2.0.tar.gz 73276 BLAKE2B c15613ec0bdc3ec28a55892a893e0bc8fc397ab916f66bbc50a04c2ae12ef749e9c78906d66c3499c3d5cf5b711d7742cec8ca014099f4815e9690643922f4d7 SHA512 3b419869edecd3b64ec26212007be379154b93470305d3f125b4723bbbafc012eba32a414ebd84c5e0e9019a8079f4c1ddea7d0e6d108cc8628ce0e5e3e8755a
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-0.2.0.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-0.2.0.ebuild
new file mode 100644
index 000000000000..4f95c0da4bf9
--- /dev/null
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-0.2.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic 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://gitea.osmocom.org/sdr/osmo-fl2k"
+else
+ KEYWORDS="~amd64"
+ SRC_URI="https://gitea.osmocom.org/sdr/osmo-fl2k/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}"
+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
+ )
+ #https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653
+ replace-flags -O0 -O2
+ replace-flags -Os -O2
+ cmake_src_configure
+}
+
+src_install() {
+ if use udev; then
+ udev_newrules ${PN}.rules 99-${PN}.rules
+ fi
+ cmake_src_install
+ # https://bugs.gentoo.org/727984
+ # No obvious way to prevent build
+ find "${ED}" -name libosmo-fl2k.a -delete
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild
index 04d502092441..4f95c0da4bf9 100644
--- a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild
@@ -10,11 +10,11 @@ HOMEPAGE="https://osmocom.org/projects/osmo-fl2k/wiki"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
- EGIT_REPO_URI="https://git.osmocom.org/osmo-fl2k"
+ EGIT_REPO_URI="https://gitea.osmocom.org/sdr/osmo-fl2k"
else
KEYWORDS="~amd64"
- SRC_URI="https://git.osmocom.org/osmo-fl2k/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/v${PV}"
+ SRC_URI="https://gitea.osmocom.org/sdr/osmo-fl2k/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}"
fi
LICENSE="GPL-2+"