/[gentoo-x86]/app-misc/zygrib/zygrib-6.2.3.ebuild
Gentoo

Contents of /app-misc/zygrib/zygrib-6.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 11 11:21:28 2014 UTC (5 years, 4 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Pin dev-qt/qtsvg to SLOT 4.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/zygrib/zygrib-6.2.3.ebuild,v 1.2 2014/06/25 16:43:25 mschiff Exp $
4
5 EAPI=5
6
7 inherit eutils qt4-r2
8
9 MY_PN="zyGrib"
10
11 DESCRIPTION="GRIB File Viewer - Weather data visualization"
12 HOMEPAGE="http://www.zygrib.org/"
13 SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
14 http://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png
15 maps? (
16 http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
17 http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
18 http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
19 http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
20 )"
21
22 LICENSE="GPL-3"
23 SLOT="0"
24 KEYWORDS="~amd64 ~x86"
25 IUSE="+maps"
26
27 DEPEND="app-arch/bzip2
28 dev-qt/qtsvg:4
29 sci-libs/libnova
30 sci-libs/proj
31 sys-libs/zlib
32 x11-libs/qwt:6"
33
34 RDEPEND="${DEPEND}"
35
36 S="${WORKDIR}/${MY_PN}-${PV}"
37
38 src_prepare() {
39 sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile
40 }
41
42 src_install() {
43 default
44 rm zyGrib
45 doicon -s 32 "${DISTDIR}/zygrib-icon.png"
46 make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
47 domenu "${FILESDIR}/zygrib.desktop"
48
49 if use maps; then
50 insinto "/opt/${MY_PN}"
51 doins -r "${WORKDIR}/data"
52 insinto "/opt/${MY_PN}/data/gis"
53 gzip "${WORKDIR}"/*.txt
54 doins "${WORKDIR}"/*.txt.gz
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20