commit: bf0631c84041dc0d13515bc1e860472c596523e1 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Thu Jun 26 20:55:49 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Jun 26 20:59:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf0631c8
sci-libs/indilib: add 2.1.4 Closes: https://bugs.gentoo.org/959087 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> sci-libs/indilib/Manifest | 1 + sci-libs/indilib/files/indilib-2.1.4-cmake4.patch | 38 +++++++++++ sci-libs/indilib/indilib-2.1.4.ebuild | 80 +++++++++++++++++++++++ 3 files changed, 119 insertions(+) diff --git a/sci-libs/indilib/Manifest b/sci-libs/indilib/Manifest index 9d75aa855006..2c4f591e5a52 100644 --- a/sci-libs/indilib/Manifest +++ b/sci-libs/indilib/Manifest @@ -1 +1,2 @@ DIST indilib-2.1.2.1.tar.gz 2941118 BLAKE2B 43928220243867a2c648855a38de3c3e49c754b135694215b24ddda6b71eb8a421a1d11dd199b5df9adcedb8c63de46288a8fe246f4ba27adfd6e98c38d825a2 SHA512 b59b23a26509922fae33d6080510a7fdce170baa59d86f5abbb955313e0a62d45f489b08021144a44cc0ca1d172825a6b524c778bb2bb24148b246e574fc0918 +DIST indilib-2.1.4.tar.gz 2980502 BLAKE2B 6722c012fcb212a5f228bfe8ee46d6f71a228840041d059dee4520bf1d1a69e4ab0b5256b51b8dc79fe1b01dfab1c4c970f111b56305556297b677395fd336b6 SHA512 df6df30d5451431394d719930546a8bd4fd398bdf30e2afd5e1c5b5b73aa9ecbca629f555d1dc7d8d53c8211b22ca242ec7e9846f01d1ed2bf9bac151190cb99 diff --git a/sci-libs/indilib/files/indilib-2.1.4-cmake4.patch b/sci-libs/indilib/files/indilib-2.1.4-cmake4.patch new file mode 100644 index 000000000000..59caa7f2818d --- /dev/null +++ b/sci-libs/indilib/files/indilib-2.1.4-cmake4.patch @@ -0,0 +1,38 @@ +https://github.com/indilib/indi/pull/2249 + +From 5069792abd3dfd7fa84c2a0cece848d45b111bb5 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <[email protected]> +Date: Thu, 26 Jun 2025 22:50:00 +0200 +Subject: [PATCH] Fix build with CMake-4 + +Compatibility with CMake < 3.5 has been removed from CMake 4. + +Signed-off-by: Andreas Sturmlechner <[email protected]> +--- + integs/CMakeLists.txt | 2 +- + test/CMakeLists.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/integs/CMakeLists.txt b/integs/CMakeLists.txt +index 9afe7c102..366be9c90 100644 +--- a/integs/CMakeLists.txt ++++ b/integs/CMakeLists.txt +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED (VERSION 3.0) ++cmake_minimum_required(VERSION 3.13) + + FIND_PACKAGE (GTest REQUIRED) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 35bf91219..5dd12bc0d 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED (VERSION 3.0) ++cmake_minimum_required(VERSION 3.13) + + FIND_PACKAGE (GMock REQUIRED) + +-- +2.50.0 + diff --git a/sci-libs/indilib/indilib-2.1.4.ebuild b/sci-libs/indilib/indilib-2.1.4.ebuild new file mode 100644 index 000000000000..cc11f331a022 --- /dev/null +++ b/sci-libs/indilib/indilib-2.1.4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2025 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" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/cpp-httplib:= + dev-cpp/nlohmann_json + dev-libs/libev + 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:1 + ogg? ( + media-libs/libogg + media-libs/libtheora:= + ) + rtlsdr? ( net-wireless/rtl-sdr:= ) +" +DEPEND="${RDEPEND} + kernel_linux? ( sys-kernel/linux-headers ) + test? ( >=dev-cpp/gtest-1.8.0 ) +" + +PATCHES=( "${FILESDIR}/${P}-cmake4.patch" ) # bug 959087, pending upstream + +src_configure() { + local mycmakeargs=( + -DINDI_SYSTEM_HTTPLIB=ON + -DINDI_SYSTEM_JSONLIB=ON + -DINDI_BUILD_QT5_CLIENT=OFF + -DINDI_BUILD_SHARED=ON + -DINDI_BUILD_STATIC=OFF + -DINDI_BUILD_XISF=OFF # not packaged + -DUDEVRULES_INSTALL_DIR="${EPREFIX}$(get_udevdir)"/rules.d + -DINDI_BUILD_EXAMPLES=OFF # nothing is installed + $(cmake_use_find_package ogg OggTheora) + $(cmake_use_find_package rtlsdr RTLSDR) + -DINDI_BUILD_UNITTESTS=$(usex test) + -DINDI_BUILD_INTEGTESTS=$(usex test) + ) + + cmake_src_configure +} + +src_test() { + # Unit tests + BUILD_DIR="${BUILD_DIR}"/test cmake_src_test + + # Integration tests + # They fail in parallel because they try to bind to the same port more + # than once. + BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1 +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}
