blob: 9a889fdc9321e88c5d3f3ebb51443d2f5a748ab5 (
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
42
43
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/kseg/kseg-0.403.ebuild,v 1.5 2008/07/27 22:21:48 carlo Exp $
EAPI=1
inherit eutils qt3
DESCRIPTION="Interactive geometry program for exploring Euclidean geometry"
HOMEPAGE="http://www.mit.edu/~ibaran/kseg.html"
SRC_URI="http://www.mit.edu/~ibaran/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
IUSE="examples"
DEPEND="x11-libs/qt:3"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
# Fix silly hardcoded help file path and CCFLAGS.
#epatch ${FILESDIR}/${P}-gentoo.patch
sed -i -e "s|KSEG_HELP_DIR|${PF}/help|" main.cpp
}
src_compile() {
"${QTDIR}"/bin/qmake QMAKE="${QTDIR}"/bin/qmake || die 'qmake failed.'
emake || die 'emake failed.'
}
src_install() {
exeinto /usr/bin
doexe kseg
dodoc AUTHORS README README.translators VERSION
insinto /usr/share/doc/${PF}/help
doins *.html *.qm
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins examples/*
fi
}
|