diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 23:44:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 23:44:17 +0100 |
commit | fdca6388cf31827202fae75cae067c695bd09339 (patch) | |
tree | 5021150295c139ea6a808950a9e1928b8ef593b8 /dev-qt/qtlocation/qtlocation-5.15.9.ebuild | |
parent | b43fb9ec552fc1a84599161478d77c6716dd9e0a (diff) |
gentoo auto-resync : 13:04:2023 - 23:44:17
Diffstat (limited to 'dev-qt/qtlocation/qtlocation-5.15.9.ebuild')
-rw-r--r-- | dev-qt/qtlocation/qtlocation-5.15.9.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-qt/qtlocation/qtlocation-5.15.9.ebuild b/dev-qt/qtlocation/qtlocation-5.15.9.ebuild new file mode 100644 index 000000000000..3aa44e99e850 --- /dev/null +++ b/dev-qt/qtlocation/qtlocation-5.15.9.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} != *9999* ]]; then + QT5_KDEPATCHSET_REV=1 + MAPBOXGL_COMMIT=5a07e1967dcc925d9def47accadae991436b9686 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +inherit qt5-build + +DESCRIPTION="Location (places, maps, navigation) library for the Qt5 framework" +[[ ${QT5_BUILD_TYPE} == release ]] && +SRC_URI+=" https://invent.kde.org/qt/qt/${PN}-mapboxgl/-/archive/${MAPBOXGL_COMMIT}/${PN}-mapboxgl-${MAPBOXGL_COMMIT}.tar.gz -> ${PN}-mapboxgl-${PV}-${MAPBOXGL_COMMIT:0:8}.tar.gz" + +IUSE="" + +RDEPEND=" + dev-libs/icu:= + =dev-qt/qtcore-${QT5_PV}* + =dev-qt/qtdeclarative-${QT5_PV}* + =dev-qt/qtgui-${QT5_PV}* + =dev-qt/qtnetwork-${QT5_PV}* + =dev-qt/qtpositioning-${QT5_PV}*[qml] + =dev-qt/qtsql-${QT5_PV}* + sys-libs/zlib +" +DEPEND="${RDEPEND} + =dev-qt/qtconcurrent-${QT5_PV}* +" + +QT5_TARGET_SUBDIRS=( + src/3rdparty/clipper + src/3rdparty/poly2tri + src/3rdparty/clip2tri + src/3rdparty/mapbox-gl-native + src/location + src/imports/location + src/imports/locationlabs + src/plugins/geoservices +) + +if [[ ${QT5_BUILD_TYPE} == release ]]; then +src_prepare() { + rm -rf src/3rdparty/mapbox-gl-native/* || die + mv "${WORKDIR}"/${PN}-mapboxgl-${MAPBOXGL_COMMIT}/* src/3rdparty/mapbox-gl-native || die + qt5-build_src_prepare +} +fi + +src_configure() { + # src/plugins/geoservices requires files that are only generated when + # qmake is run in the root directory. Bug 633776. + mkdir -p "${QT5_BUILD_DIR}"/src/location || die + qt5_qmake "${QT5_BUILD_DIR}" + cp "${S}"/src/location/qtlocation-config.pri "${QT5_BUILD_DIR}"/src/location || die + qt5-build_src_configure +} |