diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-15 13:48:31 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-15 14:27:23 +0200 |
commit | 07f31ec11b316ddbf5e2424491647b36d2ad0316 (patch) | |
tree | b332d3cb9530e532ccb300d61b5939910bf4703f /app-misc/zygrib | |
parent | dev-vcs/tig: arm stable (bug #732290) (diff) | |
download | gentoo-07f31ec11b316ddbf5e2424491647b36d2ad0316.tar.gz gentoo-07f31ec11b316ddbf5e2424491647b36d2ad0316.tar.bz2 gentoo-07f31ec11b316ddbf5e2424491647b36d2ad0316.zip |
app-misc/zygrib: EAPI-7 bump, add several missing || die
Pushing this plus 2 follow-up commits per maintainer timeout on existing bugs.
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-misc/zygrib')
-rw-r--r-- | app-misc/zygrib/files/zygrib-8.0.1-libs.patch | 4 | ||||
-rw-r--r-- | app-misc/zygrib/zygrib-8.0.1-r1.ebuild | 29 |
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 } |