Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/qmapshack/, sci-geosciences/qmapshack/files/
Date: Mon, 06 May 2019 16:26:13
Message-Id: 1557159951.097b001971d868419e74df096a0e6989e3e1b63e.grozin@gentoo
1 commit: 097b001971d868419e74df096a0e6989e3e1b63e
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 6 16:25:51 2019 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Mon May 6 16:25:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=097b0019
7
8 sci-geosciences/qmapshack: bump to 1.13.0
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 sci-geosciences/qmapshack/Manifest | 1 +
14 sci-geosciences/qmapshack/files/FindPROJ4.cmake | 152 +++++++++++++++++++++
15 .../qmapshack/files/qmapshack-positioning.patch | 9 ++
16 sci-geosciences/qmapshack/qmapshack-1.13.0.ebuild | 49 +++++++
17 4 files changed, 211 insertions(+)
18
19 diff --git a/sci-geosciences/qmapshack/Manifest b/sci-geosciences/qmapshack/Manifest
20 index f38aefce0f4..11b1647491a 100644
21 --- a/sci-geosciences/qmapshack/Manifest
22 +++ b/sci-geosciences/qmapshack/Manifest
23 @@ -1,3 +1,4 @@
24 DIST qmapshack-1.12.0.tar.gz 12030329 BLAKE2B af641e76b00ee7dc7d964fd9f4ba75e51d7d6bcc4b33e020129181655371cda91f8ddffdcfd489f55228c22fc63416e6e5c8f4b1755a6a07e5832895a921afc7 SHA512 dac6081b37eab39431221acdd48a3e61876ff40e4f76aac7eed9232e839cabc69a099cb2e9e29fcc23cf439eaa8a3d1522be17e24c71e2b6d3f332eb3127efb5
25 DIST qmapshack-1.12.1.tar.gz 12033026 BLAKE2B e898507bad42a141f02cf8fd0338cdf9f39344b249318be29d1e6eb500a9e810496c6a790745cf50aec0025b5547be8382ef0c9eab2d780cbf63f9d29eb064a9 SHA512 c9b6ad0c7372cc4d992cee07d20ee0ad5779014ce6336644e13be705ec0bbed22d5f83e27473c2813c5bf13e49558686546c50fd597eb9ef2692c64933f94713
26 DIST qmapshack-1.12.3.tar.gz 12029443 BLAKE2B 8d7f117c8379f7181ce68f79f460f59342cf654179c8b85839fe003e06167765e3e2292e14b4bc71c3ba1aeb388fcbb77faccdd57748335c1df8500f9e52ba41 SHA512 01a2b73f2f432a24b614c4a325e0b0a2aaf5b6ef75c5a7fbeb2be341adc7c46faa71cf7e9f4fdeb769d546b7a760be553a38ac6cc1c5c2c2d044edd37f550a85
27 +DIST qmapshack-1.13.0.tar.gz 12323773 BLAKE2B ea9cc15376546af442c6874e9321dfda268f523edb9908418baa4b3286339b4274f3c4694bebe036fb24ea3af82da1195d323c5e7484ca49039b9a526c29fa12 SHA512 cdc876a73d855573854691e3ef1d685499c9da381eb028e4a6e80dcd243df68caa66c92057fc1b896fce2be20e6d2ca43499b0e6827f804f27a0e8cc3749a100
28
29 diff --git a/sci-geosciences/qmapshack/files/FindPROJ4.cmake b/sci-geosciences/qmapshack/files/FindPROJ4.cmake
30 new file mode 100644
31 index 00000000000..093deaa79ae
32 --- /dev/null
33 +++ b/sci-geosciences/qmapshack/files/FindPROJ4.cmake
34 @@ -0,0 +1,152 @@
35 +#.rst:
36 +# FindPROJ4
37 +# --------
38 +#
39 +# Find the proj includes and library.
40 +#
41 +# IMPORTED Targets
42 +# ^^^^^^^^^^^^^^^^
43 +#
44 +# This module defines :prop_tgt:`IMPORTED` target ``PROJ4::proj``,
45 +# if Proj.4 has been found.
46 +#
47 +# Result Variables
48 +# ^^^^^^^^^^^^^^^^
49 +#
50 +# This module defines the following variables:
51 +#
52 +# ::
53 +#
54 +# PROJ4_INCLUDE_DIRS - where to find proj_api.h, etc.
55 +# PROJ4_LIBRARIES - List of libraries when using libproj.
56 +# PROJ4_FOUND - True if libproj found.
57 +#
58 +# ::
59 +#
60 +# PROJ4_VERSION - The version of libproj found (x.y.z)
61 +# PROJ4_VERSION_MAJOR - The major version of libproj
62 +# PROJ4_VERSION_MINOR - The minor version of libproj
63 +# PROJ4_VERSION_PATCH - The patch version of libproj
64 +# PROJ4_VERSION_TWEAK - always 0
65 +# PROJ4_VERSION_COUNT - The number of version components, always 3
66 +#
67 +# Hints
68 +# ^^^^^
69 +#
70 +# A user may set ``PROJ4_ROOT`` to a libproj installation root to tell this
71 +# module where to look exclusively.
72 +
73 +#=============================================================================
74 +# Copyright 2016 Kai Pastor
75 +#
76 +#
77 +# This file was derived from CMake 3.5's module FindZLIB.cmake
78 +# which has the following terms:
79 +#
80 +# Copyright 2001-2011 Kitware, Inc.
81 +#
82 +# Redistribution and use in source and binary forms, with or without
83 +# modification, are permitted provided that the following conditions are
84 +# met:
85 +#
86 +# * Redistributions of source code must retain the above copyright notice,
87 +# this list of conditions and the following disclaimer.
88 +#
89 +# * Redistributions in binary form must reproduce the above copyright notice,
90 +# this list of conditions and the following disclaimer in the documentation
91 +# and/or other materials provided with the distribution.
92 +#
93 +# * The names of Kitware, Inc., the Insight Consortium, or the names of
94 +# any consortium members, or of any contributors, may not be used to
95 +# endorse or promote products derived from this software without
96 +# specific prior written permission.
97 +#
98 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
99 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
100 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
101 +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
102 +# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
103 +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
104 +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
105 +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
106 +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
107 +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
108 +#=============================================================================
109 +
110 +# Search PROJ4_ROOT exclusively if it is set.
111 +if(PROJ4_ROOT)
112 + set(_PROJ4_SEARCH PATHS ${PROJ4_ROOT} NO_DEFAULT_PATH)
113 +else()
114 + set(_PROJ4_SEARCH)
115 +endif()
116 +
117 +find_path(PROJ4_INCLUDE_DIR NAMES proj_api.h ${_PROJ4_SEARCH} PATH_SUFFIXES include)
118 +mark_as_advanced(PROJ4_INCLUDE_DIR)
119 +
120 +if(PROJ4_INCLUDE_DIR AND EXISTS "${PROJ4_INCLUDE_DIR}/proj_api.h")
121 + file(STRINGS "${PROJ4_INCLUDE_DIR}/proj_api.h" PROJ4_H REGEX "^#define PJ_VERSION [0-9]+$")
122 +
123 + string(REGEX REPLACE "^.*PJ_VERSION ([0-9]).*$" "\\1" PROJ4_VERSION_MAJOR "${PROJ4_H}")
124 + string(REGEX REPLACE "^.*PJ_VERSION [0-9]([0-9]).*$" "\\1" PROJ4_VERSION_MINOR "${PROJ4_H}")
125 + string(REGEX REPLACE "^.*PJ_VERSION [0-9][0-9]([0-9]).*$" "\\1" PROJ4_VERSION_PATCH "${PROJ4_H}")
126 + set(PROJ4_VERSION "${PROJ4_VERSION_MAJOR}.${PROJ4_VERSION_MINOR}.${PROJ4_VERSION_PATCH}")
127 + set(PROJ4_VERSION_COUNT 3)
128 +endif()
129 +
130 +# Allow PROJ4_LIBRARY to be set manually, as the location of the proj library
131 +if(NOT PROJ4_LIBRARY)
132 + set(PROJ4_NAMES proj)
133 + set(PROJ4_NAMES_DEBUG projd)
134 + if(WIN32 AND DEFINED PROJ4_VERSION_MAJOR AND DEFINED PROJ4_VERSION_MINOR)
135 + list(APPEND PROJ4_NAMES proj_${PROJ4_VERSION_MAJOR}_${PROJ4_VERSION_MINOR})
136 + list(APPEND PROJ4_NAMES projd_${PROJ4_VERSION_MAJOR}_${PROJ4_VERSION_MINOR})
137 + endif()
138 + find_library(PROJ4_LIBRARY_RELEASE NAMES ${PROJ4_NAMES} ${_PROJ4_SEARCH} PATH_SUFFIXES lib)
139 + find_library(PROJ4_LIBRARY_DEBUG NAMES ${PROJ4_NAMES_DEBUG} ${_PROJ4_SEARCH} PATH_SUFFIXES lib)
140 + include(SelectLibraryConfigurations)
141 + select_library_configurations(PROJ4)
142 +endif()
143 +
144 +# handle the QUIETLY and REQUIRED arguments and set PROJ4_FOUND to TRUE if
145 +# all listed variables are TRUE
146 +include(FindPackageHandleStandardArgs)
147 +find_package_handle_standard_args(PROJ4
148 + REQUIRED_VARS
149 + PROJ4_LIBRARY
150 + PROJ4_INCLUDE_DIR
151 + VERSION_VAR
152 + PROJ4_VERSION
153 +)
154 +
155 +if(PROJ4_FOUND)
156 + set(PROJ4_INCLUDE_DIRS ${PROJ4_INCLUDE_DIR})
157 +
158 + if(NOT PROJ4_LIBRARIES)
159 + set(PROJ4_LIBRARIES ${PROJ4_LIBRARY})
160 + endif()
161 +
162 + if(NOT TARGET PROJ4::proj)
163 + add_library(PROJ4::proj UNKNOWN IMPORTED)
164 + set_target_properties(PROJ4::proj PROPERTIES
165 + INTERFACE_INCLUDE_DIRECTORIES "${PROJ4_INCLUDE_DIRS}")
166 +
167 + if(PROJ4_LIBRARY_RELEASE)
168 + set_property(TARGET PROJ4::proj APPEND PROPERTY
169 + IMPORTED_CONFIGURATIONS RELEASE)
170 + set_target_properties(PROJ4::proj PROPERTIES
171 + IMPORTED_LOCATION_RELEASE "${PROJ4_LIBRARY_RELEASE}")
172 + endif()
173 +
174 + if(PROJ4_LIBRARY_DEBUG)
175 + set_property(TARGET PROJ4::proj APPEND PROPERTY
176 + IMPORTED_CONFIGURATIONS DEBUG)
177 + set_target_properties(PROJ4::proj PROPERTIES
178 + IMPORTED_LOCATION_DEBUG "${PROJ4_LIBRARY_DEBUG}")
179 + endif()
180 +
181 + if(NOT PROJ4_LIBRARY_RELEASE AND NOT PROJ4_LIBRARY_DEBUG)
182 + set_property(TARGET PROJ4::proj APPEND PROPERTY
183 + IMPORTED_LOCATION "${PROJ4_LIBRARY}")
184 + endif()
185 + endif()
186 +endif()
187
188 diff --git a/sci-geosciences/qmapshack/files/qmapshack-positioning.patch b/sci-geosciences/qmapshack/files/qmapshack-positioning.patch
189 new file mode 100644
190 index 00000000000..c0f13fc884e
191 --- /dev/null
192 +++ b/sci-geosciences/qmapshack/files/qmapshack-positioning.patch
193 @@ -0,0 +1,9 @@
194 +diff -U2 qmapshack-1.13.0.orig/CMakeLists.txt qmapshack-1.13.0/CMakeLists.txt
195 +--- qmapshack-1.13.0.orig/CMakeLists.txt 2019-04-08 18:08:10.000000000 +0200
196 ++++ qmapshack-1.13.0/CMakeLists.txt 2019-05-06 23:19:15.330580322 +0200
197 +@@ -131,4 +131,5 @@
198 + find_package(Qt5LinguistTools REQUIRED)
199 + find_package(Qt5PrintSupport REQUIRED)
200 ++find_package(Qt5Positioning REQUIRED)
201 + find_package(Qt5UiTools REQUIRED)
202 + find_package(Qt5Network REQUIRED)
203
204 diff --git a/sci-geosciences/qmapshack/qmapshack-1.13.0.ebuild b/sci-geosciences/qmapshack/qmapshack-1.13.0.ebuild
205 new file mode 100644
206 index 00000000000..a1e08508c62
207 --- /dev/null
208 +++ b/sci-geosciences/qmapshack/qmapshack-1.13.0.ebuild
209 @@ -0,0 +1,49 @@
210 +# Copyright 1999-2019 Gentoo Authors
211 +# Distributed under the terms of the GNU General Public License v2
212 +
213 +EAPI=6
214 +
215 +inherit cmake-utils xdg-utils gnome2-utils
216 +
217 +DESCRIPTION="GPS mapping utility"
218 +HOMEPAGE="https://bitbucket.org/maproom/qmapshack/wiki/Home"
219 +SRC_URI="https://bitbucket.org/maproom/${PN}/downloads/${P}.tar.gz"
220 +LICENSE="GPL-3+"
221 +SLOT="0"
222 +KEYWORDS="~amd64 ~x86"
223 +IUSE=""
224 +RDEPEND="dev-qt/qtwebengine:5[widgets]
225 + dev-qt/qtdeclarative:5[widgets]
226 + dev-qt/qtprintsupport:5
227 + dev-qt/qtpositioning:5
228 + dev-qt/qtdbus:5
229 + dev-qt/qttest:5
230 + dev-qt/designer:5
231 + dev-qt/qtnetwork:5[ssl]
232 + dev-qt/qtsql:5
233 + dev-libs/quazip
234 + >=sci-geosciences/routino-3.1.1
235 + sci-libs/gdal
236 + >=sci-libs/proj-5.0.0
237 + sci-libs/alglib"
238 +DEPEND="${RDEPEND}
239 + dev-qt/linguist-tools:5"
240 +
241 +PATCHES=( "${FILESDIR}"/${PN}-positioning.patch )
242 +
243 +src_prepare() {
244 + default
245 + cp "${FILESDIR}"/FindPROJ4.cmake cmake/Modules/ || die
246 +}
247 +
248 +pkg_postinst() {
249 + xdg_desktop_database_update
250 + xdg_mimeinfo_database_update
251 + gnome2_icon_cache_update
252 +}
253 +
254 +pkg_postrm() {
255 + xdg_desktop_database_update
256 + xdg_mimeinfo_database_update
257 + gnome2_icon_cache_update
258 +}