summaryrefslogtreecommitdiff
blob: 984e9480d4970876a334de3e8306d57e7692badc (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
35
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/kunit/kunit-0.5-r1.ebuild,v 1.1 2008/10/24 13:03:51 markusle Exp $

inherit eutils

DESCRIPTION="An excellent qt-based unit conversion tool"
SRC_URI="http://www.netmeister.org/apps/${P}.tar.gz"
HOMEPAGE="http://www.netmeister.org/apps/kunit/"

KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
LICENSE="GPL-2"
SLOT="0"

DEPEND="=x11-libs/qt-3*"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-gcc4.3.patch
}

src_compile() {
	cd kunit
	emake LFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \
			CXXFLAGS="${CXXFLAGS}" || die "emake failed"
}

src_install() {
	dobin kunit/kunit
	dodoc AUTHORS README
	dohtml kunit/docs/*
	make_desktop_entry kunit KUnit kunit Utility
}