Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsbabel/
Date: Fri, 28 May 2021 01:14:42
Message-Id: 1622164462.26a3ddf088c3363bbe4d9ffaec95c25f70bb7024.sam@gentoo
1 commit: 26a3ddf088c3363bbe4d9ffaec95c25f70bb7024
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 28 01:14:22 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 28 01:14:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26a3ddf0
7
8 sci-geosciences/gpsbabel: sync live ebuild
9
10 Bug: https://bugs.gentoo.org/689586
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild | 22 ++++--
14 sci-geosciences/gpsbabel/gpsbabel-9999.ebuild | 96 ++++++++------------------
15 2 files changed, 45 insertions(+), 73 deletions(-)
16
17 diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild
18 index 51a9005c067..d4975828466 100644
19 --- a/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild
20 +++ b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27 @@ -10,13 +10,21 @@ MY_P="${PN}_${MY_PV}"
28
29 DESCRIPTION="GPS waypoints, tracks and routes converter"
30 HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel"
31 -SRC_URI="
32 - https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz
33 - doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )"
34 +if [[ ${PV} == 9999 ]] ; then
35 + inherit git-r3
36 + EGIT_REPO_URI="https://github.com/gpsbabel/gpsbabel.git"
37 + SRC_URI="doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )"
38 +else
39 + SRC_URI="
40 + https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_${MY_PV}.tar.gz
41 + doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )
42 + "
43 + KEYWORDS="~amd64 ~ppc ~x86"
44 + S="${WORKDIR}/gpsbabel-gpsbabel_${MY_PV}"
45 +fi
46
47 LICENSE="GPL-2"
48 SLOT="0"
49 -KEYWORDS="~amd64 ~ppc ~x86"
50 IUSE="doc"
51
52 DEPEND="
53 @@ -37,8 +45,8 @@ BDEPEND="
54 RDEPEND="${DEPEND}"
55
56 PATCHES=(
57 - "${FILESDIR}"/${P}-xmldoc.patch
58 - "${FILESDIR}"/${P}-use_system_shapelib.patch
59 + "${FILESDIR}"/${PN}-1.7.0-xmldoc.patch
60 + "${FILESDIR}"/${PN}-1.7.0-use_system_shapelib.patch
61 )
62
63 S="${WORKDIR}/${PN}-${MY_P}"
64
65 diff --git a/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild b/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild
66 index 5a4fa28eacd..d4975828466 100644
67 --- a/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild
68 +++ b/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild
69 @@ -1,15 +1,15 @@
70 -# Copyright 1999-2020 Gentoo Authors
71 +# Copyright 1999-2021 Gentoo Authors
72 # Distributed under the terms of the GNU General Public License v2
73
74 EAPI=7
75
76 -MY_PV=${PV//./_}
77 -inherit autotools desktop qmake-utils
78 +inherit qmake-utils
79 +
80 +MY_PV="${PV//./_}"
81 +MY_P="${PN}_${MY_PV}"
82
83 DESCRIPTION="GPS waypoints, tracks and routes converter"
84 HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel"
85 -LICENSE="GPL-2"
86 -
87 if [[ ${PV} == 9999 ]] ; then
88 inherit git-r3
89 EGIT_REPO_URI="https://github.com/gpsbabel/gpsbabel.git"
90 @@ -23,84 +23,56 @@ else
91 S="${WORKDIR}/gpsbabel-gpsbabel_${MY_PV}"
92 fi
93
94 +LICENSE="GPL-2"
95 SLOT="0"
96 -IUSE="doc +gui"
97 +IUSE="doc"
98
99 +DEPEND="
100 + dev-libs/expat
101 + dev-qt/qtcore:5
102 + sci-libs/shapelib:=
103 + sys-libs/zlib
104 + virtual/libusb:0
105 +"
106 BDEPEND="
107 + virtual/pkgconfig
108 doc? (
109 app-text/docbook-xml-dtd:4.1.2
110 dev-lang/perl
111 dev-libs/libxslt
112 )
113 - gui? ( dev-qt/linguist-tools:5 )
114 "
115 -RDEPEND="
116 - dev-libs/expat
117 - dev-qt/qtcore:5
118 - sci-libs/shapelib:=
119 - sys-libs/zlib[minizip]
120 - virtual/libusb:0
121 - gui? (
122 - dev-qt/qtgui:5
123 - dev-qt/qtnetwork:5
124 - dev-qt/qtwebchannel:5
125 - dev-qt/qtwebengine:5[widgets]
126 - dev-qt/qtwidgets:5
127 - dev-qt/qtxml:5
128 - )
129 -"
130 -DEPEND="${RDEPEND}"
131 -
132 -DOCS=( AUTHORS README.{contrib,igc,mapconverter,md,xmapwpt} )
133 +RDEPEND="${DEPEND}"
134
135 PATCHES=(
136 - "${FILESDIR}"/${PN}-1.5.4-disable_statistic_uploading.patch
137 - "${FILESDIR}"/${PN}-1.6.0-disable_update_check.patch
138 - "${FILESDIR}"/${PN}-1.5.4-disable_version_check.patch
139 - "${FILESDIR}"/${PN}-9999-use_system_shapelib.patch
140 - "${FILESDIR}"/${PN}-9999-xmldoc.patch
141 + "${FILESDIR}"/${PN}-1.7.0-xmldoc.patch
142 + "${FILESDIR}"/${PN}-1.7.0-use_system_shapelib.patch
143 )
144
145 -RESTRICT="test" # bug 421699
146 +S="${WORKDIR}/${PN}-${MY_P}"
147
148 src_prepare() {
149 default
150
151 - # remove bundled libs and cleanup
152 - rm -r shapelib || die
153 -
154 - if use doc; then
155 - cp "${DISTDIR}/gpsbabel.org-style3.css" . || die
156 - fi
157 + # ensure bundled libs are not used
158 + rm -r shapelib zlib || die
159 + # remove prerequisite zlib/zlib.h
160 + sed -i -e "s: zlib\/[a-z]*\.h::g" Makefile.in || die
161 + # remove failing test (fixed by f91d28bf)
162 + rm testo.d/arc-project.test || die
163
164 - eautoreconf
165 + use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}"
166 }
167
168 src_configure() {
169 - local myeconfargs=(
170 - $(use_with doc doc doc/manual)
171 - LRELEASE=$(qt5_get_bindir)/lrelease
172 - LUPDATE=$(qt5_get_bindir)/lupdate
173 - QMAKE=$(qt5_get_bindir)/qmake
174 + econf \
175 + $(use_with doc doc "${S}"/doc/manual) \
176 + QMAKE=$(qt5_get_bindir)/qmake \
177 --with-zlib=system
178 - )
179 - econf "${myeconfargs[@]}"
180 -
181 - if use gui; then
182 - pushd gui > /dev/null || die
183 - $(qt5_get_bindir)/lrelease *.ts || die
184 - eqmake5
185 - popd > /dev/null
186 - fi
187 }
188
189 src_compile() {
190 default
191 - if use gui; then
192 - pushd gui > /dev/null || die
193 - emake
194 - popd > /dev/null
195 - fi
196
197 if use doc; then
198 perl xmldoc/makedoc || die
199 @@ -109,15 +81,7 @@ src_compile() {
200 }
201
202 src_install() {
203 - use doc && local HTML_DOCS=( ${PN}.html ${PN}.org-style3.css )
204 + use doc && HTML_DOCS=( "${S}"/${PN}.html "${S}"/${PN}.org-style3.css )
205
206 default
207 -
208 - if use gui; then
209 - dobin gui/objects/gpsbabelfe
210 - insinto /usr/share/${PN}/translations/
211 - doins gui/gpsbabel*_*.qm
212 - newicon gui/images/appicon.png ${PN}.png
213 - make_desktop_entry gpsbabelfe ${PN} ${PN} "Science;Geoscience"
214 - fi
215 }