diff options
Diffstat (limited to 'dev-libs')
| -rw-r--r-- | dev-libs/kopeninghours/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/kopeninghours/kopeninghours-22.08.1.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/kopeninghours/Manifest b/dev-libs/kopeninghours/Manifest new file mode 100644 index 00000000000..66cf395a4c3 --- /dev/null +++ b/dev-libs/kopeninghours/Manifest @@ -0,0 +1 @@ +DIST kopeninghours-22.08.1.tar.xz 70136 BLAKE2B 331228455ef21a2995e6258b397e34272bee81f78f80b3140e9f5a917971dbba0156fa5562777dd99c9adc8337d781de005958e282eb06af0040a97e9f5fd9c1 SHA512 839333b2cb1a730be9a2a75a73fe93a6098d7d48151a72f683e6e2dc2bb01ce5001d0ae611a7a4c45751c01a0755043ff7f7b4639cb53c146947c706fc58ca2e diff --git a/dev-libs/kopeninghours/kopeninghours-22.08.1.ebuild b/dev-libs/kopeninghours/kopeninghours-22.08.1.ebuild new file mode 100644 index 00000000000..90195ba42de --- /dev/null +++ b/dev-libs/kopeninghours/kopeninghours-22.08.1.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 +} |
