diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/zygrib | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/zygrib')
-rw-r--r-- | app-misc/zygrib/Manifest | 10 | ||||
-rw-r--r-- | app-misc/zygrib/files/zygrib-8.0.1-libs.patch | 20 | ||||
-rw-r--r-- | app-misc/zygrib/files/zygrib.desktop | 11 | ||||
-rw-r--r-- | app-misc/zygrib/metadata.xml | 10 | ||||
-rw-r--r-- | app-misc/zygrib/zygrib-8.0.1-r1.ebuild | 67 |
5 files changed, 118 insertions, 0 deletions
diff --git a/app-misc/zygrib/Manifest b/app-misc/zygrib/Manifest new file mode 100644 index 000000000000..c9d78b9e1a26 --- /dev/null +++ b/app-misc/zygrib/Manifest @@ -0,0 +1,10 @@ +AUX zygrib-8.0.1-libs.patch 628 BLAKE2B 44c0df4defbc2fd847e30a4fc3b8bee017a6b9419e25a43462a02bc8da6748f19692d305476443d2f8d6fcc65b8cb50f524792ea3033e19aecacbfc922937164 SHA512 c63d9c04ea2615179ebe6d7f627c4f5db39e757e6b8758da515f04cbd02263155729628d59625604cf2d6fef359d28446a40d4ebe2c7ae16752c9e1deaf8fb07 +AUX zygrib.desktop 210 BLAKE2B 0e340f8c9ae1da700e694ac2c0a973fc00264c4981376fd0aa67587a248f27f0940a80c9937cc71d52b42429d9ec891f3837344730706ca1adab4237d8df464d SHA512 fd88b992d248d0ad01374f291d792682e6ee2b5625fc792ba002f2d912bd2982c8d20aeb9bed5cf5e43a92344f1c580573e4bcf0f949cd6cebc09eff6e407b9d +DIST zygrib-8.0.1.tgz 19759812 BLAKE2B f7f73cb54b18e510b0097fae27400efef081fb66f2bf361d5929d69c69087107ecb1d88fe83495571fe85edbd2464910776797e5c6700505acac9585951f0854 SHA512 bb7146289d0966a174e0d888d6edc2830a2399f9cf51eb439371d90656fb9529fb08eebde8ea74f21f3c2aa7e625a258a318b9388523636815c8348269adb73d +DIST zygrib-cities_0-300.txt.gz 517620 BLAKE2B 74916674c84b171d34f882d15a244349940e2ccad5e408f7420484b400357945cc78339c2db70eb05b428f35f4b35695b9ec655a42a23779f66649e1b7432274 SHA512 f3c51e600e21d082759d3cf71c48742896e8cf3838e08c57eefa312ac7ef2dd1f23cbf02e9374aa9779be4bc5c04fd2748ef814b5b4b40b9d24fe4f1f5de4d80 +DIST zygrib-cities_1k-3k.txt.gz 495119 BLAKE2B 16bfe2d5ff4c67c8e9858fa352aea23ae13ffa7668183d0cb3fe5e98cc6683e8a969c802c9297a29e9773dd471f233a900f2fca2e5e58f4090e0999107e9a72c SHA512 010d6688b9c381f0ace549c53a45f8bd43f1d6846dc01241ab7bfdf30b0629f39ef2a9a715c55a534634ad8480bc2edc2796a09f0c369406027f35f6b4ba8c08 +DIST zygrib-cities_300-1k.txt.gz 512733 BLAKE2B 2e480411ab8278c57f1368e809166820d9e1f5bf931e6eaf053a2448ec808b2b60d20ad5d5517cc590fc0c3c074b41a5b388856ea6145d5f6f5938d0ed50967e SHA512 f22f10c5d4d011593cf658acc2b2bdb6678d9ad26be0dfab67e2e6546439adc2c5a26d04889ddfd3544dbd2ff4d52e1d17e7d4b7d929e589fe55ceb6c0dc4112 +DIST zygrib-icon.png 851 BLAKE2B 15a300726e4ee486aa49116fe7ca74b655fe316ef0c1fee116e83cd949d273744d7e76ed3f4d847a40d74e6bbaa0d3ace71fea2ad7cd86f041576b6ab986c698 SHA512 9f36e96be1efa5df558321b631b43a7496ec812e76eb1eb5392b1a0afdec782f427b9d0b697102a661258ac1edd00b4bb0a84788c73e1fcd5f16584ad566fe5b +DIST zygrib-maps2.4.tgz 105735981 BLAKE2B b3d666481d374cadc50ec979ed8a2ed9920bd80e2bf8a01dd2aded8a39df12e335515e84e666aeb8b01f37bc37126016bf8dc63d90a0492903c6436cf5c56a87 SHA512 0f10786ef81141299fd9550e36d976ce126b0d3523b56c10b19a839d56e17697ac93915b46f31d6691950f1e6d13c368fa1d198a5e2d830768fcb9e63034b487 +EBUILD zygrib-8.0.1-r1.ebuild 1983 BLAKE2B ed86ab57f6deb0cb36dc6ff4c18861742aa7ba91f188f74bd88b36327e998c616e4ec4f57b3e11a7bc6182db5d4c636a2d5cb2541871ad38fe4fa13323add507 SHA512 7729495b44ce3b8593eb1556cd33fe8151126360abcfc5943ebc301a56a7d02fd71aa4c6f0e83ce034c845fe56a35a74ec5b8d3a13bfd00fb10fe7f2edbde3a8 +MISC metadata.xml 337 BLAKE2B a1b4c21642a4ff8aef04e1d25f90b11c1b0917fc53fe706cfc56b4c2d6516a235d76d034a68393c472ba79b571c06be45b199083f29da867dd35170e0c639be1 SHA512 6d74d0109440f945eb9e224b5a81773348490beaa1f01e394749966e74b4d59b25c39a5e51c4de33bbaaf1ea4c3a59ef8d839d47fd66ddaeb01b075008e3356d diff --git a/app-misc/zygrib/files/zygrib-8.0.1-libs.patch b/app-misc/zygrib/files/zygrib-8.0.1-libs.patch new file mode 100644 index 000000000000..b1a8937cc3cf --- /dev/null +++ b/app-misc/zygrib/files/zygrib-8.0.1-libs.patch @@ -0,0 +1,20 @@ +--- src/zyGrib.pro.orig 2017-01-16 21:55:32.459388028 +0100 ++++ src/zyGrib.pro 2017-01-16 22:17:18.509256966 +0100 +@@ -8,7 +8,7 @@ + TARGET = zyGrib + + DEPENDPATH += . util map GUI +-INCLUDEPATH += . util map GUI curvedrawer qwt-6.1.3/src g2clib ++INCLUDEPATH += . util map GUI curvedrawer /usr/include/qwt6 g2clib + + # ---------------------------------------------------- + # platform specific +@@ -35,7 +35,7 @@ + } + } + +-LIBS += -lbz2 -lz -lproj -lnova -Lqwt-6.1.3/lib/ -lqwt ++LIBS += -lbz2 -lz -lproj -lnova -lqwt6-qt5 + LIBS += -Lg2clib -lg2c -lpng # respect order! + + # ---------------------------------------------------- diff --git a/app-misc/zygrib/files/zygrib.desktop b/app-misc/zygrib/files/zygrib.desktop new file mode 100644 index 000000000000..92873a1b87a5 --- /dev/null +++ b/app-misc/zygrib/files/zygrib.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=zyGrib +GenericName=GRIB File Viewer +Comment=Weather data visualization +Exec=/usr/bin/zygrib +Terminal=false +X-MultipleArgs=false +Icon=zygrib +Type=Application +Categories=Network; diff --git a/app-misc/zygrib/metadata.xml b/app-misc/zygrib/metadata.xml new file mode 100644 index 000000000000..e3915286eb21 --- /dev/null +++ b/app-misc/zygrib/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mschiff@gentoo.org</email> + </maintainer> + <use> + <flag name="maps">Installs additional GSHHS maps for high resolution coastline data and cities</flag> + </use> +</pkgmetadata> diff --git a/app-misc/zygrib/zygrib-8.0.1-r1.ebuild b/app-misc/zygrib/zygrib-8.0.1-r1.ebuild new file mode 100644 index 000000000000..8f7ba814d570 --- /dev/null +++ b/app-misc/zygrib/zygrib-8.0.1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils qmake-utils + +MY_PN="zyGrib" + +DESCRIPTION="GRIB File Viewer - Weather data visualization" +HOMEPAGE="http://www.zygrib.org/" +# zygrib.org has a DDoS protection and only allowd interactive downloads, +# so we mirror the tarball... +#SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz +SRC_URI="https://dev.gentoo.org/~mschiff/distfiles/${MY_PN}-${PV}.tgz -> ${P}.tgz + https://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png + maps? ( + http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz + http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz + http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz + http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz + )" + +LICENSE="GPL-3 + public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+maps" + +DEPEND="app-arch/bzip2 + dev-qt/qtsvg:5 + media-libs/libpng:* + sci-libs/libnova + sci-libs/proj + sys-libs/zlib + x11-libs/qwt:6[qt5(+)]" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile + sed -i "s,QMAKE=/usr/bin/qmake,QMAKE=$(qt5_get_bindir)/qmake," Makefile + sed -i "/QWTDIR/d" Makefile + #use jpeg2k || sed -i '/^DEFS=/ s/-DUSE_JPEG2000//' src/g2clib/makefile + sed -i '/^DEFS=/ s/-DUSE_JPEG2000//' src/g2clib/makefile + sed -i '/^LIBS +=/ s/-ljasper//' src/zyGrib.pro + epatch "${FILESDIR}/${P}-libs.patch" + default +} + +src_install() { + default + rm zyGrib + doicon -s 32 "${DISTDIR}/zygrib-icon.png" + make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}" + domenu "${FILESDIR}/zygrib.desktop" + + if use maps; then + insinto "/opt/${MY_PN}" + doins -r "${WORKDIR}/data" + insinto "/opt/${MY_PN}/data/gis" + gzip "${WORKDIR}"/*.txt + doins "${WORKDIR}"/*.txt.gz + fi +} |