diff options
Diffstat (limited to 'dev-libs/kopeninghours')
-rw-r--r-- | dev-libs/kopeninghours/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/kopeninghours/kopeninghours-23.04.0.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/kopeninghours/Manifest b/dev-libs/kopeninghours/Manifest index af5d879a653e..0cfbb701512c 100644 --- a/dev-libs/kopeninghours/Manifest +++ b/dev-libs/kopeninghours/Manifest @@ -1,4 +1,6 @@ AUX kopeninghours-22.04.0-boostpython.patch 3555 BLAKE2B 1d22b48e5574ffada0b89a0828bf5258321b57161061534939e95256ab3501a887a026231568e09b1d20499238284107c34c6835d33853096be62e1345356cde SHA512 562b30fe66a9e8904e79c95496c4b06e50dbbb8d328db93a655ffa7f8829ff70bc8a6b0ee7beb7840e7046b74d4d858265ec67703c6317c3fe4c87b54b40a349 DIST kopeninghours-22.12.3.tar.xz 71072 BLAKE2B f86ca120035da5eb01736ea6dd5e35ed6f961a0d5cfe7af4b8d13b4a00b80b3252a39996efdb039a10a1e5d44fc33a57133ac5c75444d866e5f8a6c2e778e2ed SHA512 c8f87eb7398f8aff8de74b86dbc33fd50d90485dca4fb1e8bd87d4d697bb9f3670bca7ab11baf47ce5186fcb7067ae74efdbd20896d5a4e0b84c15edafd31dce +DIST kopeninghours-23.04.0.tar.xz 71432 BLAKE2B bbdbb315613d0e7564bf6c9a97747625e4379c88bad69ad34e558138864f1cd8fd318230b0f97fa4cad9c01d3a3db92d45f136073f433f2031dc3777c94a3c39 SHA512 572d755e79da4f1568d6f26f038781981d4bb845f07cb944014fe9d0e39aed013e380825eb88170d23487d3d07edb69945fe4ab0933a13cf1e4b9c3a711367b0 EBUILD kopeninghours-22.12.3.ebuild 1273 BLAKE2B 41773d6d9d359f5b1e2da210058404a64fba2d191eb9d29568e7a4aff2ef9f1da4a31cc4dc512f15f07f9b66e35203499a096314ed70cbfb7908a6bb908412a6 SHA512 3fd00e177e1ce2e22ec1849bc8196e957ea4aef10ad4fbbe0c5485a02783aa314bf67754939c96f790a31d501f4cc0f7009061e932e0aa690f5b022188a4469a +EBUILD kopeninghours-23.04.0.ebuild 1273 BLAKE2B ae4cba8bc047330c52fc7b3626dd6fde37e0a4f1100e593ffa8ae9f0885f612c14834accb8a499e97421d77eb66253f21e593dcd4bc5521e563834c1e2de3a35 SHA512 7c283c352fbaa3abce5e649ef6e0917afd4f5ebc42683e0f7088e9e55224f6351541ef834cfb359368c5977be6b31ee7cb699fba5368b5afa26001d7c2d5a0c3 MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6 diff --git a/dev-libs/kopeninghours/kopeninghours-23.04.0.ebuild b/dev-libs/kopeninghours/kopeninghours-23.04.0.ebuild new file mode 100644 index 000000000000..bafa38060372 --- /dev/null +++ b/dev-libs/kopeninghours/kopeninghours-23.04.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 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.104.0 +QTMIN=5.15.5 +PYTHON_COMPAT=( python3_{9..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 +} |