summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-misc/zygrib/files/zygrib-8.0.1-libs.patch4
-rw-r--r--app-misc/zygrib/zygrib-8.0.1-r1.ebuild29
2 files changed, 16 insertions, 17 deletions
diff --git a/app-misc/zygrib/files/zygrib-8.0.1-libs.patch b/app-misc/zygrib/files/zygrib-8.0.1-libs.patch
index b1a8937cc3cf..41df41830d9d 100644
--- a/app-misc/zygrib/files/zygrib-8.0.1-libs.patch
+++ b/app-misc/zygrib/files/zygrib-8.0.1-libs.patch
@@ -1,5 +1,5 @@
---- src/zyGrib.pro.orig 2017-01-16 21:55:32.459388028 +0100
-+++ src/zyGrib.pro 2017-01-16 22:17:18.509256966 +0100
+--- a/src/zyGrib.pro 2017-01-16 21:55:32.459388028 +0100
++++ b/src/zyGrib.pro 2017-01-16 22:17:18.509256966 +0100
@@ -8,7 +8,7 @@
TARGET = zyGrib
diff --git a/app-misc/zygrib/zygrib-8.0.1-r1.ebuild b/app-misc/zygrib/zygrib-8.0.1-r1.ebuild
index 06c11e2312ca..68598cab4728 100644
--- a/app-misc/zygrib/zygrib-8.0.1-r1.ebuild
+++ b/app-misc/zygrib/zygrib-8.0.1-r1.ebuild
@@ -1,11 +1,10 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-
-inherit eutils qmake-utils
+EAPI=7
MY_PN="zyGrib"
+inherit desktop eutils qmake-utils
DESCRIPTION="GRIB File Viewer - Weather data visualization"
HOMEPAGE="http://www.zygrib.org/"
@@ -14,15 +13,14 @@ HOMEPAGE="http://www.zygrib.org/"
#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? (
+ 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"
+LICENSE="GPL-3 public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+maps"
@@ -40,20 +38,21 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
+PATCHES=( "${FILESDIR}/${P}-libs.patch" )
+
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
+ sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile || die
+ sed -i "s,QMAKE=/usr/bin/qmake,QMAKE=$(qt5_get_bindir)/qmake," Makefile || die
+ sed -i "/QWTDIR/d" Makefile || die
#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"
+ sed -i '/^DEFS=/ s/-DUSE_JPEG2000//' src/g2clib/makefile || die
+ sed -i '/^LIBS +=/ s/-ljasper//' src/zyGrib.pro || die
default
}
src_install() {
default
- rm zyGrib
+ rm zyGrib || die
doicon -s 32 "${DISTDIR}/zygrib-icon.png"
make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
domenu "${FILESDIR}/zygrib.desktop"
@@ -62,7 +61,7 @@ src_install() {
insinto "/opt/${MY_PN}"
doins -r "${WORKDIR}/data"
insinto "/opt/${MY_PN}/data/gis"
- gzip "${WORKDIR}"/*.txt
+ gzip "${WORKDIR}"/*.txt || die
doins "${WORKDIR}"/*.txt.gz
fi
}