summaryrefslogtreecommitdiff
path: root/dev-libs/kopeninghours
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-08-12 12:54:14 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-08-12 13:15:30 +0200
commit85f20a5da389f2ff0c07296a061ebcff1b291909 (patch)
tree9e10f098b81fffedf23863598397507853262874 /dev-libs/kopeninghours
parentfb3f6b5cee9b338299ddf0f02fd792a52d6d63d6 (diff)
downloadkde-85f20a5da389f2ff0c07296a061ebcff1b291909.tar.gz
kde-85f20a5da389f2ff0c07296a061ebcff1b291909.tar.bz2
kde-85f20a5da389f2ff0c07296a061ebcff1b291909.zip
dev-libs/kopeninghours: 22.08.0 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/kopeninghours')
-rw-r--r--dev-libs/kopeninghours/Manifest1
-rw-r--r--dev-libs/kopeninghours/kopeninghours-22.08.0.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/kopeninghours/Manifest b/dev-libs/kopeninghours/Manifest
index d6345ece149..e174729dbf3 100644
--- a/dev-libs/kopeninghours/Manifest
+++ b/dev-libs/kopeninghours/Manifest
@@ -1 +1,2 @@
DIST kopeninghours-22.07.90.tar.xz 70152 BLAKE2B bf3ebda796646ac0ab1c119978ab41ea6eef87d2a30e0c73e8abfb36a80a1b598a3352e3f3a7499d183817ce20dc4fe9cdae11a01ab79d2e98dfacb127080c95 SHA512 544ff7866830950f0641d03aeba4896fc9ad19ae042bc9bc54c979ecc869fa9a3bc50d7424e25e34b1c8833d73be1d48d285025a4e3322929efe02892ce29dac
+DIST kopeninghours-22.08.0.tar.xz 70136 BLAKE2B cc5b2f97a65487f97f702a86ec1ff3f7969cb7955b92280598a5ad04e6c225b0976c8b7e2a6122171917600100985b4292005467806fe6af1cbc8ffb17a0ef44 SHA512 436251958f0139a79dba0ea66db13265697aa0aa11c1da05ea8243ef61bdb34a134422214ec50fbed98f0f38c1f32f5196f1641cc358e2cccd9359978e3fce05
diff --git a/dev-libs/kopeninghours/kopeninghours-22.08.0.ebuild b/dev-libs/kopeninghours/kopeninghours-22.08.0.ebuild
new file mode 100644
index 00000000000..90195ba42de
--- /dev/null
+++ b/dev-libs/kopeninghours/kopeninghours-22.08.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 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=5.96.0
+QTMIN=5.15.5
+PYTHON_COMPAT=( python3_{8..11} )
+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="5"
+KEYWORDS="~amd64"
+IUSE="python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="
+ >=dev-libs/kpublictransport-${PVCUT}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5
+ >=kde-frameworks/kholidays-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ sys-libs/zlib
+ python? (
+ $(python_gen_cond_dep '
+ >=dev-libs/boost-1.70:=[python,${PYTHON_USEDEP}]
+ ')
+ )
+"
+RDEPEND="${DEPEND}
+ ${PYTHON_DEPS}
+ >=dev-qt/qtquickcontrols2-${QTMIN}:5
+"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-22.04.0-boostpython.patch )
+
+pkg_setup() {
+ ecm_pkg_setup
+ python_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBOOSTPYTHON_VERSION_MAJOR_MINOR=${EPYTHON}
+ $(cmake_use_find_package python Boost)
+ )
+ ecm_src_configure
+}
+
+src_install() {
+ ecm_src_install
+ python_optimize
+}