public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/zygrib/files/, app-misc/zygrib/
Date: Mon, 16 Jan 2017 23:48:38 +0000 (UTC)	[thread overview]
Message-ID: <1484610484.60a4e4fed9d7555953a3a5bbde337350658008eb.mschiff@gentoo> (raw)

commit:     60a4e4fed9d7555953a3a5bbde337350658008eb
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 16 23:42:58 2017 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Mon Jan 16 23:48:04 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60a4e4fe

app-misc/zygrib: add new version

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-misc/zygrib/Manifest                      |  1 +
 app-misc/zygrib/files/zygrib-8.0.1-libs.patch | 20 ++++++++
 app-misc/zygrib/zygrib-8.0.1.ebuild           | 67 +++++++++++++++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/app-misc/zygrib/Manifest b/app-misc/zygrib/Manifest
index ffa43cb..4579a5b 100644
--- a/app-misc/zygrib/Manifest
+++ b/app-misc/zygrib/Manifest
@@ -1,5 +1,6 @@
 DIST zygrib-6.2.3.tgz 15256377 SHA256 f4086211e13d1e285a8228c98f568c8472031361b72c6d4e5327e67a57693cee SHA512 f838611aa2dd4544c353bd25c7450a1cb805ea5ec8fb6bc3ebd1b7d3a46c87034fef4151fd0c39f9587fb433fdc2ccab3f1b321724e398135f5e71cdccf65bef WHIRLPOOL b0a3c9521f4eb62511e464e87de2dd293e92e03d884e7c47a79f1151d2ca79f922b0098882b34c62ba6c67ce4cb1107dea4fb44b0b557a796d76259edc22dd40
 DIST zygrib-7.0.0.tgz 15287496 SHA256 b60c1a318ba6afb4aec3ad1c241cfd6282e4fb5a34962c43fa2fb99aae1b9f53 SHA512 ae6e279b874aca510ccf91fecab06ce155427edd6a45844ef1053617512fd81e110f2338c22b10879c8e93dab226cfcdf58bf0270e4ed83931369c51b8869399 WHIRLPOOL ba9a0aac64b4a62e3d619e571f1dce404790dab4992d66ec77d3316ab34f5649b1228f5ed5b8078f6845dc5a0874be6b7959db1a1e374461dae5e07e63f46282
+DIST zygrib-8.0.1.tgz 19759812 SHA256 9c0490cbec74cea6d3c8f150bc745cb4c48f04969e10e91579fe01e56b9830f8 SHA512 bb7146289d0966a174e0d888d6edc2830a2399f9cf51eb439371d90656fb9529fb08eebde8ea74f21f3c2aa7e625a258a318b9388523636815c8348269adb73d WHIRLPOOL a296954d30581e031fbbea31bc4ec72126dc3cfaae1750fe751d87e3aa677dcf9b360c9fe08f338493f29790e8e16681a977fc2c0158033ec6b3342abe38e9e4
 DIST zygrib-cities_0-300.txt.gz 517620 SHA256 443015f38acbe3cc972b04b80b0011c53bae939dcf1c23a2f1e4eb344048444b SHA512 f3c51e600e21d082759d3cf71c48742896e8cf3838e08c57eefa312ac7ef2dd1f23cbf02e9374aa9779be4bc5c04fd2748ef814b5b4b40b9d24fe4f1f5de4d80 WHIRLPOOL 41433660c8044f8f970acac4e4cc0754fc6ffa313bb1ca4ea06475760bf50423f8244d8efd56d31f796da2768fb0886f94afd07d1441f66e822717315c036da3
 DIST zygrib-cities_1k-3k.txt.gz 495119 SHA256 08a4071b0044d20410c894bab11fcaf05533d3d8299233b91430b8f8eafe1ce1 SHA512 010d6688b9c381f0ace549c53a45f8bd43f1d6846dc01241ab7bfdf30b0629f39ef2a9a715c55a534634ad8480bc2edc2796a09f0c369406027f35f6b4ba8c08 WHIRLPOOL 05a03c46932ab2911a33644050d16837879765db362ecad63ae6dbc5674e9c0974a66d0f58133c05294f8b46f46fa1e5b2af326161f7cfe2e7aa08b2e314e7c0
 DIST zygrib-cities_300-1k.txt.gz 512733 SHA256 6fb04f9c27420ec6f4793be4842a6e6831ee1219d1834a8c1c7d67c3c19cafd0 SHA512 f22f10c5d4d011593cf658acc2b2bdb6678d9ad26be0dfab67e2e6546439adc2c5a26d04889ddfd3544dbd2ff4d52e1d17e7d4b7d929e589fe55ceb6c0dc4112 WHIRLPOOL 2642614d918ac091aca958143aee686dc077ca020962db224713507a6453ebf48fdc16b92b58560746b10edc5041814628f238fc42105e0bf473d871c474258b

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 00000000..3aa7446
--- /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 -ljasper  # respect order!
+ 
+ # ----------------------------------------------------

diff --git a/app-misc/zygrib/zygrib-8.0.1.ebuild b/app-misc/zygrib/zygrib-8.0.1.ebuild
new file mode 100644
index 00000000..f8dd599
--- /dev/null
+++ b/app-misc/zygrib/zygrib-8.0.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+
+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
+	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
+}


             reply	other threads:[~2017-01-16 23:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-16 23:48 Marc Schiffbauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-07 23:49 [gentoo-commits] repo/gentoo:master commit in: app-misc/zygrib/files/, app-misc/zygrib/ Marc Schiffbauer
2020-07-15 12:28 Andreas Sturmlechner
2020-07-15 12:28 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484610484.60a4e4fed9d7555953a3a5bbde337350658008eb.mschiff@gentoo \
    --to=mschiff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox