# 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' }