aboutsummaryrefslogtreecommitdiff
blob: 96b39a12f48ce92224db9d9d8ca530f70979cfd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

MY_PN=${PN/tcd-editor/tideEditor}
MY_PV=${PV/_p/-r}
MY_SPV=$(get_version_component_range 1-3)
S=${WORKDIR}/${MY_PN}-${MY_SPV}

DESCRIPTION="Tide editor is a graphical editor for Tidal Constituent Databases."
HOMEPAGE="http://www.flaterco.com/xtide/"
SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_PN}-${MY_PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=">=sci-geosciences/libtcd-2.2.3
	=x11-libs/qt-3*"
RDEPEND="${DEPEND}"


src_compile() {
	sed -i \
		"s;\(#include <qlistbox.h>\);&1\n#include <qmetaobject.h>;" map.h
	MOC="/usr/qt/3/bin/moc" econf || die "econf failed"
	emake || die "emake failed"
}


src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
}