From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E4CC158091 for ; Tue, 14 Jun 2022 12:45:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FB5DE08DD; Tue, 14 Jun 2022 12:45:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 618B1E08C8 for ; Tue, 14 Jun 2022 12:45:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9CF3D341D09 for ; Tue, 14 Jun 2022 12:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E370951D for ; Tue, 14 Jun 2022 12:44:58 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1655210593.8e36d33965b58ab7e2bfbe9caf7ca2f0603d1097.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/indilib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/indilib/indilib-1.9.6-r1.ebuild X-VCS-Directories: sci-libs/indilib/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 8e36d33965b58ab7e2bfbe9caf7ca2f0603d1097 X-VCS-Branch: master Date: Tue, 14 Jun 2022 12:44:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35cb5028-039b-41cc-82ed-5a47437ef1c6 X-Archives-Hash: 2236a6ad5f199223c7d42f9fc16ece43 commit: 8e36d33965b58ab7e2bfbe9caf7ca2f0603d1097 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jun 14 10:13:59 2022 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 14 12:43:13 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e36d339 sci-libs/indilib: Use udev_reload, switch to media-libs/libjpeg-turbo Closes: https://bugs.gentoo.org/847643 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/indilib/indilib-1.9.6-r1.ebuild | 77 ++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/sci-libs/indilib/indilib-1.9.6-r1.ebuild b/sci-libs/indilib/indilib-1.9.6-r1.ebuild new file mode 100644 index 000000000000..9b77579efd30 --- /dev/null +++ b/sci-libs/indilib/indilib-1.9.6-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake udev + +DESCRIPTION="INDI Astronomical Control Protocol library" +HOMEPAGE="https://www.indilib.org/" +SRC_URI="https://github.com/${PN}/${PN/lib/}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P/lib/}" + +LICENSE="BSD GPL-2+ LGPL-2+ LGPL-2.1+" +SLOT="0/1" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="ogg rtlsdr test websocket" + +RESTRICT="!test? ( test )" + +RDEPEND=" + media-libs/libjpeg-turbo:= + net-misc/curl + sci-libs/cfitsio:= + sci-libs/fftw:3.0= + sci-libs/gsl:= + sci-libs/libnova:= + sys-libs/zlib + virtual/libusb:0 + ogg? ( + media-libs/libogg + media-libs/libtheora + ) + rtlsdr? ( net-wireless/rtl-sdr ) + websocket? ( dev-libs/boost:= ) +" +DEPEND="${RDEPEND} + kernel_linux? ( sys-kernel/linux-headers ) + test? ( >=dev-cpp/gtest-1.8.0 ) + websocket? ( dev-cpp/websocketpp ) +" + +src_configure() { + local mycmakeargs=( + -DINDI_BUILD_QT5_CLIENT=OFF + -DUDEVRULES_INSTALL_DIR="${EPREFIX}$(get_udevdir)"/rules.d + $(cmake_use_find_package ogg OggTheora) + $(cmake_use_find_package rtlsdr RTLSDR) + -DINDI_BUILD_UNITTESTS=$(usex test) + -DINDI_BUILD_WEBSOCKET=$(usex websocket) + ) + + cmake_src_configure +} + +src_test() { + local myctestargs=() + + if use ppc || use ppc64 || use sparc ; then + # Broken on big endian for quite some time. + # Reported upstream: file needs to be replaced w/ a normal library + # for b64. + # bug #763126 + myctestargs+=( + -E "(test_base64)" + ) + fi + + BUILD_DIR="${BUILD_DIR}"/test cmake_src_test +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}