1 |
commit: 3f7470626a6568307063d72d86551fbf1b94d12a |
2 |
Author: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 7 15:26:10 2018 +0000 |
4 |
Commit: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 15:26:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f747062 |
7 |
|
8 |
net-wireless/osmo-fl2k: initial commit |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-wireless/osmo-fl2k/Manifest | 1 + |
13 |
net-wireless/osmo-fl2k/metadata.xml | 8 +++++ |
14 |
net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild | 48 +++++++++++++++++++++++++++ |
15 |
net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild | 48 +++++++++++++++++++++++++++ |
16 |
4 files changed, 105 insertions(+) |
17 |
|
18 |
diff --git a/net-wireless/osmo-fl2k/Manifest b/net-wireless/osmo-fl2k/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..9c9acab7da8 |
21 |
--- /dev/null |
22 |
+++ b/net-wireless/osmo-fl2k/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST osmo-fl2k-0.1.1.tar.xz 59196 BLAKE2B 031b9bdf7f03f3e9c3bcb158bf5695b3771381d5cbabb94853580c57cf8a7bafcacba6168815b6ff46d6fb4e463ea6caff0e1d289692510801409d8b4cf28b72 SHA512 fb19c34919956970106fe7a69632e691f01caef3a1bc212501304f9d910dd08389f95b8d031b3336d009afc08744d846ea3bc349e1d9446bbfd13e11ec95ceff |
25 |
|
26 |
diff --git a/net-wireless/osmo-fl2k/metadata.xml b/net-wireless/osmo-fl2k/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..1570f891c6a |
29 |
--- /dev/null |
30 |
+++ b/net-wireless/osmo-fl2k/metadata.xml |
31 |
@@ -0,0 +1,8 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="project"> |
36 |
+ <email>radio@g.o</email> |
37 |
+ <name>Radio</name> |
38 |
+ </maintainer> |
39 |
+</pkgmetadata> |
40 |
|
41 |
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..8125eb474ee |
44 |
--- /dev/null |
45 |
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild |
46 |
@@ -0,0 +1,48 @@ |
47 |
+# Copyright 1999-2018 Gentoo Foundation |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=6 |
51 |
+ |
52 |
+inherit cmake-utils linux-info udev |
53 |
+ |
54 |
+DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs" |
55 |
+ |
56 |
+HOMEPAGE="https://osmocom.org/projects/osmo-fl2k/wiki" |
57 |
+ |
58 |
+if [[ ${PV} == "9999" ]]; then |
59 |
+ inherit git-r3 |
60 |
+ EGIT_REPO_URI="https://git.osmocom.org/osmo-fl2k" |
61 |
+else |
62 |
+ KEYWORDS="~amd64" |
63 |
+ SRC_URI="mirror://gentoo/${P}.tar.xz" |
64 |
+fi |
65 |
+ |
66 |
+LICENSE="GPL-2+" |
67 |
+SLOT="0" |
68 |
+ |
69 |
+IUSE="udev" |
70 |
+ |
71 |
+DEPEND="virtual/libusb:1" |
72 |
+RDEPEND="${DEPEND} |
73 |
+ media-sound/sox |
74 |
+ sys-apps/pv" |
75 |
+ |
76 |
+# continguous memory allocator can optionally be used for zero-copy transfer |
77 |
+# TODO: tell users to set CONFIG_CMA_SIZE_MBYTES or boot with cma=... parameter |
78 |
+CONFIG_CHECK="~CMA ~DMA_CMA" |
79 |
+ |
80 |
+src_configure() { |
81 |
+ # udev rules use wrong filename and would go to wrong directory anyway |
82 |
+ local mycmakeargs=( |
83 |
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
84 |
+ -DINSTALL_UDEV_RULES=OFF |
85 |
+ ) |
86 |
+ cmake-utils_src_configure |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ if use udev; then |
91 |
+ udev_newrules ${PN}.rules 99-${PN}.rules |
92 |
+ fi |
93 |
+ cmake-utils_src_install |
94 |
+} |
95 |
|
96 |
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..8125eb474ee |
99 |
--- /dev/null |
100 |
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild |
101 |
@@ -0,0 +1,48 @@ |
102 |
+# Copyright 1999-2018 Gentoo Foundation |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=6 |
106 |
+ |
107 |
+inherit cmake-utils linux-info udev |
108 |
+ |
109 |
+DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs" |
110 |
+ |
111 |
+HOMEPAGE="https://osmocom.org/projects/osmo-fl2k/wiki" |
112 |
+ |
113 |
+if [[ ${PV} == "9999" ]]; then |
114 |
+ inherit git-r3 |
115 |
+ EGIT_REPO_URI="https://git.osmocom.org/osmo-fl2k" |
116 |
+else |
117 |
+ KEYWORDS="~amd64" |
118 |
+ SRC_URI="mirror://gentoo/${P}.tar.xz" |
119 |
+fi |
120 |
+ |
121 |
+LICENSE="GPL-2+" |
122 |
+SLOT="0" |
123 |
+ |
124 |
+IUSE="udev" |
125 |
+ |
126 |
+DEPEND="virtual/libusb:1" |
127 |
+RDEPEND="${DEPEND} |
128 |
+ media-sound/sox |
129 |
+ sys-apps/pv" |
130 |
+ |
131 |
+# continguous memory allocator can optionally be used for zero-copy transfer |
132 |
+# TODO: tell users to set CONFIG_CMA_SIZE_MBYTES or boot with cma=... parameter |
133 |
+CONFIG_CHECK="~CMA ~DMA_CMA" |
134 |
+ |
135 |
+src_configure() { |
136 |
+ # udev rules use wrong filename and would go to wrong directory anyway |
137 |
+ local mycmakeargs=( |
138 |
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
139 |
+ -DINSTALL_UDEV_RULES=OFF |
140 |
+ ) |
141 |
+ cmake-utils_src_configure |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ if use udev; then |
146 |
+ udev_newrules ${PN}.rules 99-${PN}.rules |
147 |
+ fi |
148 |
+ cmake-utils_src_install |
149 |
+} |