summaryrefslogtreecommitdiff
path: root/dev-libs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/kopeninghours/Manifest1
-rw-r--r--dev-libs/kopeninghours/kopeninghours-21.12.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/kopeninghours/Manifest b/dev-libs/kopeninghours/Manifest
index 6fdbe18aad5..ce0b82b6041 100644
--- a/dev-libs/kopeninghours/Manifest
+++ b/dev-libs/kopeninghours/Manifest
@@ -1 +1,2 @@
DIST kopeninghours-21.11.90.tar.xz 67308 BLAKE2B b9e6596b4ad31b9e62a3cec11d0fb31c554746839f9c346e7ec8969d313abd3bda270a8b934bb82b1e527b8f49cd3f82523ac163803df3e54d48039c84118d6d SHA512 b713da8afe9e2c6b9dd61840fca716ecc5eeeb9285ad0b60ab1f02048c04eed5c62c70cd261ee5d069d2212475af04dc9ec181d37018b1915355eaf2080c2fab
+DIST kopeninghours-21.12.0.tar.xz 67300 BLAKE2B 975955c4004d9bde614facfa2673175134b75273fd2a590fb73c854c51a133b407dea4e9700e0b14bc4f509997de9ba293dcd5ff95ffc675effd7bb7c5727438 SHA512 c250371832a771b94cc785c03a0fbf8565fd578c862f9f251fbc616d283d6a7940183dd329976cb90da8d0a565f564626a5beb05c22badfbef824d0167b5dd5e
diff --git a/dev-libs/kopeninghours/kopeninghours-21.12.0.ebuild b/dev-libs/kopeninghours/kopeninghours-21.12.0.ebuild
new file mode 100644
index 00000000000..63717fe0623
--- /dev/null
+++ b/dev-libs/kopeninghours/kopeninghours-21.12.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_QTHELP="true"
+ECM_TEST="true"
+KDE_GEAR="true"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.88.0
+QTMIN=5.15.2
+PYTHON_COMPAT=( python3_{8..10} )
+inherit ecm 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}-21.03.90-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
+}