summaryrefslogtreecommitdiff
blob: c716a143503032b11540a98905a447deeae821bd (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
36
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=1

inherit cmake-utils eutils versionator

MY_P=${PN}-$(replace_version_separator 3 -)
DESCRIPTION="A lattice solver"
HOMEPAGE="http://czlug.icis.pcz.pl/~zygmunt/programs/KRT/"
SRC_URI="http://czlug.icis.pcz.pl/~zygmunt/public/programs/${MY_P}.tar.bz2"

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

DEPEND="x11-libs/qt-gui:4
	x11-libs/qt-opengl:4"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${PN}

src_install() {
	_check_build_dir
	dobin "${CMAKE_BUILD_DIR}"/${PN} || die

	if use examples; then
		docinto examples
		dodoc example/* || die
	fi

	doicon "${FILESDIR}"/${PN}.xpm || die
	make_desktop_entry ${PN} ${PN} ${PN} 'Education;Science;Engineering'
}