summaryrefslogtreecommitdiff
path: root/sci-visualization/pythonprop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-03 20:27:24 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-03 20:27:24 +0000
commit27e5574c9ed56a2633e25f7fa8f591554266a1b4 (patch)
treeeafae39b8faa55ceb7cc8100d5d03a2dfc9b7842 /sci-visualization/pythonprop
parent5aede38e7304fc5c3bd8a2034b25758b15a19fa0 (diff)
gentoo auto-resync : 03:01:2023 - 20:27:24
Diffstat (limited to 'sci-visualization/pythonprop')
-rw-r--r--sci-visualization/pythonprop/Manifest5
-rw-r--r--sci-visualization/pythonprop/files/pythonprop-drop-portland.patch87
-rw-r--r--sci-visualization/pythonprop/metadata.xml2
-rw-r--r--sci-visualization/pythonprop/pythonprop-0.30.1.ebuild55
4 files changed, 147 insertions, 2 deletions
diff --git a/sci-visualization/pythonprop/Manifest b/sci-visualization/pythonprop/Manifest
index 6c31393529b0..4ecaf0255111 100644
--- a/sci-visualization/pythonprop/Manifest
+++ b/sci-visualization/pythonprop/Manifest
@@ -1,3 +1,6 @@
+AUX pythonprop-drop-portland.patch 4249 BLAKE2B 6b7d2ce79db62d6343f68685383e8e60b8a97ef7dc932719218c8078dac4a058b3fc36b21c0a0db0855a766fbe23d575cd6785511fce15d497cbb5a4964508ff SHA512 b03ac440ae831ca8525f39915c2dbca91858d3a284c9ae4f36b1ac27594e00aab02aa2d090c08d0aeee7e273548e769138fc3a965801d462c181a00cb87aa959
+DIST pythonprop-0.30.1.tar.gz 1141620 BLAKE2B 54554d1a50976aa0516e70ef6cabf8c8c8fe41dc15980d0d06defca2dbf722baa4e98dddb974ea0d6da18e3d634661c980685b89411e8de4cf1cded452bb60a1 SHA512 582442e95732c78b580eceaf8b9d4922a23e5b3c5652738b110a40e1b94f91196755fad6e00370328130acc608121961d4e449199610137a757b086b53184b43
DIST pythonprop-0.30.tar.gz 1141872 BLAKE2B 0703358221825bbeffb47cd5ff97a8de4c22ed9922347b96e359c7fbeffd6bae681a81d4938c03f4199ce583821d6e1006ce2e12aa718f50b5de69f2c0476a38 SHA512 421cade49a241d0dd38afa92e2c1874e2e6a0837ac7aeb9f4a294a2cec23e80e446e88a4de202de445cde73b9d816f4d6e487536be8c02017f1754c116fba310
EBUILD pythonprop-0.30-r1.ebuild 1192 BLAKE2B f70323a02dc0788af3450e74bae0ca963335d30b7d0811cbdaf0379d85679cb6b07bda3518a1e2a337d40bcd00ec0a3d57de88da6fe1338c4afcdfc92d3df26f SHA512 61d79c6c7bc14d10b0fd3591396bf5fb7bf32ad7b4afa2a2d2cf54a7fd75f2dbc4662f2df1ea8a9cb81c24ba307063e6bdcb92beeb2e6ecbc824bad5fd388209
-MISC metadata.xml 460 BLAKE2B 2fc78265ea1592a637191c799bd9547edf6fa2a4d4bafa2193d290c5992941251c1538e0b41929df07394644ef575aca50968a3517fc7f2ec2466dae30c4394e SHA512 71795b8277bfc20c6043cc30f20bd7f9a8f613752ea74c0f27e142c8b4746079b8df6bfe8587868f9581329a954e3a7bdb5dd5094ff5efef319ab4010a27eadc
+EBUILD pythonprop-0.30.1.ebuild 1268 BLAKE2B 63617bf46253385849d599ec0f53dfed42102a0c1150f021c797792b71cfd2fc9e40ff3b865fb8fce24e6eca2b66e5f12752a0db9f4fe50172e3d7adbb97546b SHA512 083d878df63e5da1fbad18ce184c0b4465eb4646b59425cb1cbc438d185938bdf52f86d37c3c7e190cc79aa925dba0563063340671bd1d4cb2f6d28804afd2b8
+MISC metadata.xml 464 BLAKE2B 51b9b066a69b6dbfb7eac1b069e1481106970d675c0ddafc8131551d4fe676cdda7828c36d50d30b82ea5a97d2f43385c0c420e1a843355dac09aa5b3eadbf93 SHA512 f10cc21761693cf0bd78c19283a8618c0fa7473bded1b87b5fa517ebd860d8d76977d78131af576b2d36cee6ef51d0788b151dbe89418efcd4bb64fc7acfdb92
diff --git a/sci-visualization/pythonprop/files/pythonprop-drop-portland.patch b/sci-visualization/pythonprop/files/pythonprop-drop-portland.patch
new file mode 100644
index 000000000000..5a6736b4624b
--- /dev/null
+++ b/sci-visualization/pythonprop/files/pythonprop-drop-portland.patch
@@ -0,0 +1,87 @@
+# Drop 'portland' colormap creation. It is done more than once and actual
+# matplotlib do not like redefinitions.
+diff --git a/src/pythonprop/voaAreaPlot.py b/src/pythonprop/voaAreaPlot.py
+index a0bd789..a3bdd48 100644
+--- a/src/pythonprop/voaAreaPlot.py
++++ b/src/pythonprop/voaAreaPlot.py
+@@ -94,7 +94,7 @@ class VOAAreaPlot:
+ vg_files = [1],
+ data_type = 1,
+ time_zone = 0,
+- color_map = 'portland',
++ color_map = 'jet',
+ face_colour = "white",
+ filled_contours = False,
+ plot_contours = False,
+@@ -145,8 +145,6 @@ class VOAAreaPlot:
+ # print "-180 < Latitude < 180.0, -90 < Longitude < 90"
+ # sys.exit(1)
+
+- portland = ListedColormap(["#0C3383", "#0b599b","#0a7fb4","#57a18f","#bec255","#f2c438","#f2a638","#ef8235","#e4502a","#d91e1e"])
+- plt.register_cmap(name='portland', cmap=portland)
+ colMap = color_map
+
+ projection = ccrs.PlateCarree()
+@@ -498,8 +496,8 @@ def main(in_file, datadir=None):
+ dest = "color_map",
+ default = 'jet',
+ choices = [ 'autumn', 'bone', 'cool', 'copper', 'gray', \
+- 'hot', 'hsv', 'jet', 'pink', 'spring','summer', 'winter', 'portland' ],
+- help=_("COLOURMAP - may be one of 'autumn', 'bone', 'cool', 'copper', 'gray', 'hot', 'hsv', 'jet', 'pink', 'spring', 'summer', 'winter' or 'portland'. Default = 'jet'"))
++ 'hot', 'hsv', 'jet', 'pink', 'spring','summer', 'winter' ],
++ help=_("COLOURMAP - may be one of 'autumn', 'bone', 'cool', 'copper', 'gray', 'hot', 'hsv', 'jet', 'pink', 'spring', 'summer' or 'winter'. Default = 'jet'"))
+ """
+ parser.add_argument("-n", "--interest",
+ dest = "poi_file",
+diff --git a/src/pythonprop/voaAreaPlotgui.py b/src/pythonprop/voaAreaPlotgui.py
+index c001397..9f75acc 100644
+--- a/src/pythonprop/voaAreaPlotgui.py
++++ b/src/pythonprop/voaAreaPlotgui.py
+@@ -84,8 +84,7 @@ class VOAAreaPlotGUI:
+ 'pink': _('pink'),
+ 'spring': _('spring'),
+ 'summer': _('summer'),
+- 'winter': _('winter'),
+- 'portland': _('portland')}
++ 'winter': _('winter')}
+
+ def __init__(self,
+ data_source_filename,
+diff --git a/src/pythonprop/voaP2PPlot.py b/src/pythonprop/voaP2PPlot.py
+index faf87e6..61fe9b9 100644
+--- a/src/pythonprop/voaP2PPlot.py
++++ b/src/pythonprop/voaP2PPlot.py
+@@ -136,8 +136,6 @@ class VOAP2PPlot:
+
+ self.image_defs = self.IMG_TYPE_DICT[self.data_type]
+ self.user_bands = user_bands
+- portland = ListedColormap(["#0C3383", "#0b599b","#0a7fb4","#57a18f","#bec255","#f2c438","#f2a638","#ef8235","#e4502a","#d91e1e"])
+- matplotlib.cm.register_cmap(name='portland', cmap=portland)
+
+ if plot_groups[0]=='a':
+ num_grp = self.df.get_number_of_groups()
+@@ -375,8 +373,8 @@ def main(data_file, datadir=None):
+ dest="color_map",
+ default='jet',
+ choices = [ 'autumn', 'bone', 'cool', 'copper', 'gray', \
+- 'hot', 'hsv', 'jet', 'pink', 'spring','summer', 'winter', 'portland' ],
+- help=_("COLOURMAP - may be one of 'autumn', 'bone', 'cool', 'copper', 'gray', 'hot', 'hsv', 'jet', 'pink', 'spring', 'summer', 'winter' or 'portland'. Default = 'jet'"))
++ 'hot', 'hsv', 'jet', 'pink', 'spring','summer', 'winter' ],
++ help=_("COLOURMAP - may be one of 'autumn', 'bone', 'cool', 'copper', 'gray', 'hot', 'hsv', 'jet', 'pink', 'spring', 'summer' or 'winter'. Default = 'jet'"))
+
+ parser.add_argument("-o", "--outfile",
+ dest="save_file",
+diff --git a/src/pythonprop/voaP2PPlotgui.py b/src/pythonprop/voaP2PPlotgui.py
+index e1c120b..0aca557 100644
+--- a/src/pythonprop/voaP2PPlotgui.py
++++ b/src/pythonprop/voaP2PPlotgui.py
+@@ -83,8 +83,7 @@ class VOAP2PPlotGUI:
+ 'pink': _('pink'),
+ 'spring': _('spring'),
+ 'summer': _('summer'),
+- 'winter': _('winter'),
+- 'portland': _('portland')}
++ 'winter': _('winter')}
+
+
+ def __init__(self, data_source_filename, parent = None, datadir=""):
diff --git a/sci-visualization/pythonprop/metadata.xml b/sci-visualization/pythonprop/metadata.xml
index 27c9a899306a..fbf434b3fa36 100644
--- a/sci-visualization/pythonprop/metadata.xml
+++ b/sci-visualization/pythonprop/metadata.xml
@@ -10,6 +10,6 @@
<name>Gentoo Electronics Project</name>
</maintainer>
<upstream>
- <remote-id type="sourceforge">pythonprop</remote-id>
+ <remote-id type="github">jawatson/pythonprop</remote-id>
</upstream>
</pkgmetadata>
diff --git a/sci-visualization/pythonprop/pythonprop-0.30.1.ebuild b/sci-visualization/pythonprop/pythonprop-0.30.1.ebuild
new file mode 100644
index 000000000000..55899af5d1bf
--- /dev/null
+++ b/sci-visualization/pythonprop/pythonprop-0.30.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Scripts to prepare and plot VOACAP propagation predictions"
+HOMEPAGE="https://www.qsl.net/h/hz1jw/pythonprop"
+SRC_URI="https://github.com/jawatson/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ ')
+ dev-python/cairocffi
+ sci-libs/cartopy[${PYTHON_SINGLE_USEDEP}]
+ sci-electronics/voacapl
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ app-text/rarian
+"
+
+PATCHES=( "${FILESDIR}/${PN}-drop-portland.patch" )
+
+src_prepare() {
+ eapply_user
+
+ eapply ${PATCHES[@]}
+
+ # drop building *.pdf files
+ sed -i -e "s#docs/user/help##g" Makefile.am || die
+ # do not call update_destop_database here
+ sed -ie "s/UPDATE_DESKTOP = /UPDATE_DESKTOP = # /g" data/Makefile.am || die
+ # fix Desktop Entry
+ sed -ie "s/HamRadio/HamRadio;/g" data/voacapgui.desktop.in || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ python_optimize
+}