Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ola/
Date: Sun, 26 Feb 2023 22:03:19
Message-Id: 1677448989.72ba2fe5d4f79e637fdace7e0b3ff9559b682373.marecki@gentoo
1 commit: 72ba2fe5d4f79e637fdace7e0b3ff9559b682373
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 26 22:02:25 2023 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 26 22:03:09 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72ba2fe5
7
8 app-misc/ola: add 0.10.9
9
10 Closes: https://bugs.gentoo.org/896592
11 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
12
13 app-misc/ola/Manifest | 1 +
14 app-misc/ola/ola-0.10.9.ebuild | 110 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/app-misc/ola/Manifest b/app-misc/ola/Manifest
18 index 8994df22e307..c98814f9b31a 100644
19 --- a/app-misc/ola/Manifest
20 +++ b/app-misc/ola/Manifest
21 @@ -1 +1,2 @@
22 DIST ola-0.10.8.tar.gz 2552023 BLAKE2B b4fa7e36e2b907e8f0ea16ef089607fc223afc543752a03740fd1d525062ea676d2f392bb623804543827d6f5ac6078c469a3edcb4321bca9a454b1c219f9c89 SHA512 78ef8cc7f8e8d0b1d15bbb305d99a589fce82e07e89ca3bf2466bef8cdc1b18f590fc8dcbf29fc5af2349e0721c832f525fd665d62498907554ee742d79cd3d2
23 +DIST ola-0.10.9.tar.gz 2578760 BLAKE2B 8cace370b21788d0fe65e56d33fdc9436a5103837d370e3e7e07b43318d4ec3b29536b55c4b117f515a4698ebab88f58718759a0cf9a00f79d0b839e7a79d581 SHA512 e8e2f4249d6e1f63f6c36ae548d9e3a82080f0da82829f923ba6b4d63685fb89f9baccf4588fd6fcbf756708d91e27d022c0d623e7c03c84ec058e7dc7c46bdf
24
25 diff --git a/app-misc/ola/ola-0.10.9.ebuild b/app-misc/ola/ola-0.10.9.ebuild
26 new file mode 100644
27 index 000000000000..5cdbca6899a9
28 --- /dev/null
29 +++ b/app-misc/ola/ola-0.10.9.ebuild
30 @@ -0,0 +1,110 @@
31 +# Copyright 1999-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +
38 +inherit autotools python-single-r1
39 +
40 +DESCRIPTION="Open Lighting Architecture, a framework for lighting control information"
41 +HOMEPAGE="https://www.openlighting.org/ola/"
42 +SRC_URI="https://github.com/OpenLightingProject/${PN}/releases/download/${PV}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2+ LGPL-2.1+"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="doc examples ftdi http osc python rdm-tests tcmalloc test usb zeroconf"
48 +
49 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
50 + rdm-tests? ( python )"
51 +
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="dev-libs/protobuf:=
55 + sys-apps/util-linux
56 + sys-libs/ncurses
57 + ftdi? ( dev-embedded/libftdi:1 )
58 + http? ( net-libs/libmicrohttpd:= )
59 + osc? ( media-libs/liblo )
60 + python? (
61 + ${PYTHON_DEPS}
62 + $(python_gen_cond_dep '
63 + dev-python/protobuf-python[${PYTHON_USEDEP}]
64 + ')
65 + )
66 + rdm-tests? (
67 + $(python_gen_cond_dep '
68 + dev-python/numpy[${PYTHON_USEDEP}]
69 + ')
70 + )
71 + tcmalloc? ( dev-util/google-perftools:= )
72 + usb? ( virtual/libusb:1 )
73 + zeroconf? ( net-dns/avahi )"
74 +DEPEND="${RDEPEND}
75 + sys-kernel/linux-headers"
76 +BDEPEND="sys-devel/bison
77 + sys-devel/flex
78 + virtual/pkgconfig
79 + doc? (
80 + app-doc/doxygen
81 + media-gfx/graphviz
82 + )
83 + test? (
84 + dev-util/cppunit
85 + python? (
86 + ${PYTHON_DEPS}
87 + $(python_gen_cond_dep '
88 + dev-python/numpy[${PYTHON_USEDEP}]
89 + dev-python/protobuf-python[${PYTHON_USEDEP}]
90 + ')
91 + )
92 + )"
93 +
94 +src_prepare() {
95 + default
96 + # Upstream recommends doing this even for tarball builds
97 + eautoreconf
98 +}
99 +
100 +src_configure() {
101 + local myeconfargs=(
102 + --disable-fatal-warnings
103 + --with-uucp-lock="/run"
104 + $(use_enable doc doxygen-doc)
105 + $(use_enable doc doxygen-dot)
106 + $(use_enable examples)
107 + $(use_enable ftdi libftdi)
108 + $(use_enable http)
109 + $(use_enable osc)
110 + $(use_enable python python-libs)
111 + $(use_enable rdm-tests)
112 + $(use_enable tcmalloc)
113 + $(use_enable test unittests)
114 + $(use_enable usb libusb)
115 + )
116 + econf "${myeconfargs[@]}"
117 +}
118 +
119 +src_compile() {
120 + default
121 + use doc && emake doxygen-doc
122 +}
123 +
124 +src_install() {
125 + default
126 +
127 + find "${ED}" -name '*.la' -delete || die
128 +
129 + if use doc; then
130 + dodoc -r html
131 + docompress -x /usr/share/doc/${PF}/html
132 + fi
133 +
134 + if use examples && use python; then
135 + docinto examples
136 + python_fix_shebang python/examples/*.py
137 + dodoc python/examples/*.py
138 + docompress -x /usr/share/doc/${PF}/examples
139 + fi
140 +}