Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/xastir/, media-radio/xastir/files/
Date: Fri, 31 May 2019 12:11:18
Message-Id: 1559304602.a918142dc97bd41a33d038b6242c1d3e287f4e70.tomjbe@gentoo
1 commit: a918142dc97bd41a33d038b6242c1d3e287f4e70
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 31 12:10:02 2019 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Fri May 31 12:10:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a918142d
7
8 media-radio/xastir: Version bump
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
12
13 media-radio/xastir/Manifest | 1 +
14 media-radio/xastir/files/xastir-2.1.2-scripts.diff | 89 ++++++++++++++++++++++
15 media-radio/xastir/xastir-2.1.2.ebuild | 82 ++++++++++++++++++++
16 3 files changed, 172 insertions(+)
17
18 diff --git a/media-radio/xastir/Manifest b/media-radio/xastir/Manifest
19 index 9b0fbe3e783..b011e2bc3b5 100644
20 --- a/media-radio/xastir/Manifest
21 +++ b/media-radio/xastir/Manifest
22 @@ -1,2 +1,3 @@
23 DIST xastir-2.0.8.tar.gz 2697256 BLAKE2B 12a12219885d7923e3262494ac39b7b7f200118953b1e47ae25917f3f1732a1cff931de06462de7d5f1216c9b61561f8090fc49e18b40380eaa58b3559c5f123 SHA512 fd98a880392e9fcb049c6049ebc6a6a5e600571b7b59fd7061a72404abd68530ae6f152c9eabdc39be0458b33b363ce7fa3fdd5330003298bca8eaac62a6982f
24 DIST xastir-2.1.0.tar.gz 2996246 BLAKE2B c4b607f09a5cc52daa18ac5ac8c761cf99adc7ae7d61c481d56383ac8a62302b8ec96593a24a8f5870ec7b6aa12ca619f1b93954d120cceaa1126343e080517f SHA512 32c1297d6399c34078158853beba32a4d018d060088b014be004b0837a887c6360e417e1d59ed7865ea1caa3c07f59d7bb4ee3cf9c035e2aabf6ba4783e3d288
25 +DIST xastir-2.1.2.tar.gz 2724737 BLAKE2B 4b3fe45fb666b1c66f07f57b93f09ab0118daa266e5120ce089b3f95686fc7dc4e10148a2518f0bea9f4411a316db4f1137c898594489bda6c9198b4f34a95ef SHA512 6bfa759df34e68b6431cf5a5c2fe3a501284fac4039af2242c745645d6ccb3476d2f42bd4a8889c3ea01d70cad52d39aac3949d9d5b6cf2c0deff5aa06ffbe93
26
27 diff --git a/media-radio/xastir/files/xastir-2.1.2-scripts.diff b/media-radio/xastir/files/xastir-2.1.2-scripts.diff
28 new file mode 100644
29 index 00000000000..7b52c689560
30 --- /dev/null
31 +++ b/media-radio/xastir/files/xastir-2.1.2-scripts.diff
32 @@ -0,0 +1,89 @@
33 +# patch scripts location (bug #407185). partially backported from upstream.
34 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/coord-convert.pl Xastir-Release-2.1.2/scripts/coord-convert.pl
35 +--- Xastir-Release-2.1.2.orig/scripts/coord-convert.pl 2010-07-03 22:09:48.000000000 +0000
36 ++++ Xastir-Release-2.1.2/scripts/coord-convert.pl 2012-03-07 15:46:01.000000000 +0000
37 +@@ -26,7 +26,7 @@
38 + #
39 +
40 +
41 +-use lib "${prefix}/lib";
42 ++use lib /usr/share/xastir/scripts;
43 + use Coordinate; # WE7U's Coordinate.pm module
44 +
45 +
46 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/permutations.pl Xastir-Release-2.1.2/scripts/permutations.pl
47 +--- Xastir-Release-2.1.2.orig/scripts/permutations.pl 2010-07-03 22:09:48.000000000 +0000
48 ++++ Xastir-Release-2.1.2/scripts/permutations.pl 2012-03-07 15:42:34.000000000 +0000
49 +@@ -34,7 +34,7 @@
50 + #
51 +
52 +
53 +-use lib "/usr/local/lib";
54 ++use lib "/usr/share/xastir/scripts";
55 + use Coordinate; # WE7U's Coordinate.pm module
56 +
57 +
58 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/test_coord.pl Xastir-Release-2.1.2/scripts/test_coord.pl
59 +--- Xastir-Release-2.1.2.orig/scripts/test_coord.pl 2010-01-31 02:12:23.000000000 +0000
60 ++++ Xastir-Release-2.1.2/scripts/test_coord.pl 2012-03-07 15:42:34.000000000 +0000
61 +@@ -33,7 +33,7 @@
62 +
63 + #------------------------------------------------------------------------------------------------
64 +
65 +-use lib "/usr/local/lib";
66 ++use lib "/usr/share/xastir/scripts";
67 + use Coordinate; # Snag WE7U's Coordinate module
68 +
69 +
70 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/toporama250k.pl Xastir-Release-2.1.2/scripts/toporama250k.pl
71 +--- Xastir-Release-2.1.2.orig/scripts/toporama250k.pl 2010-01-31 02:12:23.000000000 +0000
72 ++++ Xastir-Release-2.1.2/scripts/toporama250k.pl 2012-03-07 15:46:49.000000000 +0000
73 +@@ -28,14 +28,14 @@
74 + # map files for the whole of Canada!
75 + #
76 + #
77 +-# - "cd /usr/local/share/xastir/maps"
78 ++# - "cd /usr/share/xastir/maps"
79 + #
80 + # - Assure you have write privileges in the directory above either
81 + # by becoming root using the "su" command, using "sudo", or
82 + # temporarily changing ownership and/or privileges on the
83 + # "maps" directory.
84 + #
85 +-# - "/usr/local/lib/xastir/toporama250k.pl"
86 ++# - "/usr/share/xastir/scripts/toporama250k.pl"
87 + #
88 + # - The script will create/populate this directory heirarchy:
89 + # .../maps/toporama/images/
90 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/toporama50k.pl Xastir-Release-2.1.2/scripts/toporama50k.pl
91 +--- Xastir-Release-2.1.2.orig/scripts/toporama50k.pl 2010-01-31 02:12:23.000000000 +0000
92 ++++ Xastir-Release-2.1.2/scripts/toporama50k.pl 2012-03-07 15:47:01.000000000 +0000
93 +@@ -27,14 +27,14 @@
94 + # map files for the whole of Canada!
95 + #
96 + #
97 +-# - "cd /usr/local/share/xastir/maps"
98 ++# - "cd /usr/share/xastir/maps"
99 + #
100 + # - Assure you have write privileges in the directory above either
101 + # by becoming root using the "su" command, using "sudo", or
102 + # temporarily changing ownership and/or privileges on the
103 + # "maps" directory.
104 + #
105 +-# - "/usr/local/lib/xastir/toporama50k.pl"
106 ++# - "/usr/share/xastir/scripts/toporama50k.pl"
107 + #
108 + # - The script will create/populate this directory heirarchy:
109 + # .../maps/toporama/images/
110 +diff -Nur -u Xastir-Release-2.1.2.orig/scripts/get-NWSdata.in Xastir-Release-2.1.2/scripts/get-NWSdata.in
111 +--- Xastir-Release-2.1.2.orig/scripts/get-NWSdata.in 2010-01-31 02:12:23.000000000 +0000
112 ++++ Xastir-Release-2.1.2/scripts/get-NWSdata.in 2012-03-07 15:47:01.000000000 +0000
113 +@@ -123,7 +123,7 @@
114 + echo
115 + echo $e.dbf
116 + # Run in a separate shell so we don't mess up the current directory for the -e test above
117 +- (cd /usr/local/share/xastir; /usr/local/bin/testdbfawk -D config -d Counties/$e.dbf 2>&1 | head -3 | tail -1)
118 ++ (cd /usr/share/xastir; /usr/bin/testdbfawk -D config -d Counties/$e.dbf 2>&1 | head -3 | tail -1)
119 +
120 + fi
121 + done
122
123 diff --git a/media-radio/xastir/xastir-2.1.2.ebuild b/media-radio/xastir/xastir-2.1.2.ebuild
124 new file mode 100644
125 index 00000000000..b9b5bdb7a8c
126 --- /dev/null
127 +++ b/media-radio/xastir/xastir-2.1.2.ebuild
128 @@ -0,0 +1,82 @@
129 +# Copyright 1999-2019 Gentoo Authors
130 +# Distributed under the terms of the GNU General Public License v2
131 +
132 +EAPI=7
133 +inherit autotools flag-o-matic toolchain-funcs
134 +
135 +MY_P=${PN/x/X}-Release-${PV}
136 +
137 +DESCRIPTION="X Amateur Station Tracking and Information Reporting"
138 +HOMEPAGE="http://xastir.org/"
139 +SRC_URI="https://github.com/Xastir/Xastir/archive/Release-${PV}.tar.gz
140 + -> ${P}.tar.gz"
141 +
142 +LICENSE="GPL-2"
143 +SLOT="0"
144 +KEYWORDS="~amd64 ~x86"
145 +IUSE="festival geotiff +graphicsmagick"
146 +
147 +DEPEND=">=x11-libs/motif-2.3:0
148 + x11-libs/libXt
149 + x11-libs/libX11
150 + x11-libs/libXpm
151 + x11-apps/xfontsel
152 + dev-libs/libpcre
153 + net-misc/curl
154 + sys-libs/db:4.8
155 + sci-libs/shapelib
156 + !graphicsmagick? ( <media-gfx/imagemagick-7:0=[-hdri,-q32] )
157 + graphicsmagick? ( media-gfx/graphicsmagick:=[-q32] )
158 + geotiff? ( sci-libs/proj
159 + sci-libs/libgeotiff:=
160 + media-libs/tiff:0 )
161 + festival? ( app-accessibility/festival )"
162 +RDEPEND="${DEPEND}"
163 +
164 +S="${WORKDIR}"/${MY_P}
165 +
166 +src_prepare() {
167 + eapply_user
168 +
169 + # fix script location (bug #407185)
170 + eapply "${FILESDIR}"/${PN}-2.1.2-scripts.diff
171 +
172 + # do not filter duplicate flags (see bug 411095)
173 + eapply -p0 "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff
174 +
175 + eautoreconf
176 +}
177 +
178 +src_configure() {
179 + # provide include path to GraphicsMagic for configure stage
180 + use graphicsmagick && append-cflags -I/usr/include/GraphicsMagick
181 + econf --with-pcre \
182 + --with-shapelib \
183 + --with-dbfawk \
184 + --without-ax25 \
185 + --without-gpsman \
186 + $(use_with !graphicsmagick imagemagick) \
187 + $(use_with graphicsmagick) \
188 + $(use_with geotiff libproj) \
189 + $(use_with geotiff) \
190 + $(use_with festival)
191 +}
192 +
193 +src_compile() {
194 + emake AR="$(tc-getAR)"
195 +}
196 +
197 +src_install() {
198 + emake DESTDIR="${D}" install
199 +
200 + rm -rf "${D}"/usr/share/doc/${PN}
201 + dodoc AUTHORS ChangeLog CONTRIBUTING.md FAQ README \
202 + README.Getting-Started README.MAPS README.OSM_maps
203 +}
204 +
205 +pkg_postinst() {
206 + elog "Kernel mode AX.25 and GPSman library not supported."
207 + elog
208 + elog "Remember you have to be root to add addditional scripts,"
209 + elog "maps and other configuration data under /usr/share/xastir."
210 +}