blob: 41c327138b692128680c734e673c9374c05f0948 (
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
37
38
39
40
41
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/fung-calc/fung-calc-1.3.2b.ebuild,v 1.12 2008/08/16 11:26:27 markusle Exp $
inherit kde eutils flag-o-matic
IUSE="arts opengl"
DESCRIPTION="Scientific Graphing Calculator"
HOMEPAGE="http://fung-calc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
DEPEND=">=sys-libs/zlib-1
>=media-libs/libpng-1.2
>=media-libs/jpeg-6
opengl? ( virtual/opengl
virtual/glut )"
need-kde 3.1
need-qt 3.1
src_unpack() {
kde_src_unpack
epatch "${FILESDIR}"/${PN}-fPIC
epatch "${FILESDIR}"/${PN}-gcc34-fix
epatch "${FILESDIR}"/${P}-gcc4.3.patch
use arts || epatch "${FILESDIR}"/${P}-configure.patch
}
src_compile() {
kde_src_compile myconf
use opengl || myconf="${myconf} --disable-glgraph"
# use kde || myconf="${myconf} --disable-kde-app"
kde_src_compile configure make
}
|