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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 25 18:51:22 2015 UTC (4 years, 11 months ago) by mschiff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -2 lines
Fix build and readd keywords

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/zygrib/zygrib-7.0.0.ebuild,v 1.2 2015/03/25 15:05:32 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 sed -i 's,QMAKE=/usr/bin/qmake-qt4,QMAKE=/usr/bin/qmake,' Makefile
41 }
42
43 src_install() {
44 default
45 rm zyGrib
46 doicon -s 32 "${DISTDIR}/zygrib-icon.png"
47 make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
48 domenu "${FILESDIR}/zygrib.desktop"
49
50 if use maps; then
51 insinto "/opt/${MY_PN}"
52 doins -r "${WORKDIR}/data"
53 insinto "/opt/${MY_PN}/data/gis"
54 gzip "${WORKDIR}"/*.txt
55 doins "${WORKDIR}"/*.txt.gz
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20