diff --git a/dev-libs/kopeninghours/Manifest b/dev-libs/kopeninghours/Manifest index 491a3f12de5ae..57f6b524a27ba 100644 --- a/dev-libs/kopeninghours/Manifest +++ b/dev-libs/kopeninghours/Manifest @@ -1 +1,2 @@ DIST kopeninghours-25.12.2.tar.xz 76276 BLAKE2B eec4357168600071eaa8ca98eb3dbddb5a72048fed4fc81ad5c23d6ed420b52a5c2c54af6a6c97bc3f2493be9ad78d620e2c056065312c5f3542ff78abe03b6c SHA512 06ac04362793bc244efe587fab1d30e7bc27e4924a4e7ecb3693f5406430be1239d657ad08547b03a4452c5e49a598423c091affeb5239b1f5c8eb372e4765f1 +DIST kopeninghours-25.12.3.tar.xz 76264 BLAKE2B a0d65d2df77b078110f1fdf2b3984b47024ed905e05ccd0828a85e9e7e9b2795a2ef5c1b5d8bcc6308bc3508e2f8cff6abd8b79d12e075f8a88fe8ffa2320244 SHA512 e8f6bc1128528e929f0548a3d00550d08817c6cb0f0015ebbffbc4ac583a12946bc00753017d909a19e943cee773ae167038b52aae5c6662a496e10fdf2a7fde diff --git a/dev-libs/kopeninghours/kopeninghours-25.12.3.ebuild b/dev-libs/kopeninghours/kopeninghours-25.12.3.ebuild new file mode 100644 index 0000000000000..a614285344d2d --- /dev/null +++ b/dev-libs/kopeninghours/kopeninghours-25.12.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_QTHELP="true" +ECM_TEST="true" +PVCUT=$(ver_cut 1-3) +KFMIN=6.22.0 +QTMIN=6.10.1 +PYTHON_COMPAT=( python3_{11..13} ) +inherit ecm gear.kde.org python-single-r1 + +DESCRIPTION="Library for parsing and evaluating OSM opening hours expressions" +HOMEPAGE="https://api.kde.org/kopeninghours/html/index.html +https://invent.kde.org/libraries/kopeninghours" + +LICENSE="LGPL-2+" +SLOT="6/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm64" +IUSE="python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + >=dev-libs/kpublictransport-${PVCUT}:6= + >=dev-qt/qtdeclarative-${QTMIN}:6 + >=kde-frameworks/kholidays-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + virtual/zlib:= + python? ( + $(python_gen_cond_dep ' + >=dev-libs/boost-1.70:=[python,${PYTHON_USEDEP}] + ') + ) +" +RDEPEND="${DEPEND} + ${PYTHON_DEPS} +" +BDEPEND=" + app-alternatives/lex + app-alternatives/yacc +" + +PATCHES=( "${FILESDIR}/${PN}-25.12.0-cmake-minreqver-3.10.patch" ) + +src_configure() { + local mycmakeargs=( + -DPython_LIBRARY=$(python_get_library_path) + -DPython_INCLUDE_DIR=$(python_get_includedir) + $(cmake_use_find_package python Boost) + ) + ecm_src_configure +} + +src_install() { + ecm_src_install + use python && python_optimize +}