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