diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-27 03:59:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-27 03:59:18 +0000 |
commit | 063e5b486db858a2b1ecec798af89f5484d475bd (patch) | |
tree | 490932df05aadb9cbb3611e63a31507953ab5c91 /app-misc/ola/ola-0.10.9.ebuild | |
parent | a0953f7ac639d8e180f62ab3364ccf9af71f783d (diff) |
gentoo auto-resync : 27:02:2023 - 03:59:17
Diffstat (limited to 'app-misc/ola/ola-0.10.9.ebuild')
-rw-r--r-- | app-misc/ola/ola-0.10.9.ebuild | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/app-misc/ola/ola-0.10.9.ebuild b/app-misc/ola/ola-0.10.9.ebuild new file mode 100644 index 000000000000..5cdbca6899a9 --- /dev/null +++ b/app-misc/ola/ola-0.10.9.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit autotools python-single-r1 + +DESCRIPTION="Open Lighting Architecture, a framework for lighting control information" +HOMEPAGE="https://www.openlighting.org/ola/" +SRC_URI="https://github.com/OpenLightingProject/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples ftdi http osc python rdm-tests tcmalloc test usb zeroconf" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + rdm-tests? ( python )" + +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/protobuf:= + sys-apps/util-linux + sys-libs/ncurses + ftdi? ( dev-embedded/libftdi:1 ) + http? ( net-libs/libmicrohttpd:= ) + osc? ( media-libs/liblo ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/protobuf-python[${PYTHON_USEDEP}] + ') + ) + rdm-tests? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ') + ) + tcmalloc? ( dev-util/google-perftools:= ) + usb? ( virtual/libusb:1 ) + zeroconf? ( net-dns/avahi )" +DEPEND="${RDEPEND} + sys-kernel/linux-headers" +BDEPEND="sys-devel/bison + sys-devel/flex + virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + ) + test? ( + dev-util/cppunit + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + ') + ) + )" + +src_prepare() { + default + # Upstream recommends doing this even for tarball builds + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-fatal-warnings + --with-uucp-lock="/run" + $(use_enable doc doxygen-doc) + $(use_enable doc doxygen-dot) + $(use_enable examples) + $(use_enable ftdi libftdi) + $(use_enable http) + $(use_enable osc) + $(use_enable python python-libs) + $(use_enable rdm-tests) + $(use_enable tcmalloc) + $(use_enable test unittests) + $(use_enable usb libusb) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + default + use doc && emake doxygen-doc +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + if use doc; then + dodoc -r html + docompress -x /usr/share/doc/${PF}/html + fi + + if use examples && use python; then + docinto examples + python_fix_shebang python/examples/*.py + dodoc python/examples/*.py + docompress -x /usr/share/doc/${PF}/examples + fi +} |