summaryrefslogtreecommitdiff
blob: 05fa8f949e5afaab6ce5b0420f05f6c962183e48 (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit qt4

MY_PN="CandyStore"

DESCRIPTION="CandyStore is a post processor for CalculiX"
HOMEPAGE="http://fe-candy.de"
SRC_URI="http://fe-candy.de/${P}.zip"

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

DEPEND="x11-libs/libqglviewer
	|| ( x11-libs/qt-gui >=x11-libs/qt-4.3 )"

S=${WORKDIR}/${MY_PN}

src_compile() {
	eqmake4 ${MY_PN}.pro -o Makefile PREFIX=/usr
	emake || die "emake failed"
}

src_install() {
	dobin ${MY_PN} || die "installation failed"

	if use doc ; then
		dohtml -r html/* || die "installing html files failed"
		docinto examples
		dodoc test-files/* || die "installing examples failed"
	fi
}