blob: 13963ff9be90884fe7e78d4de55e4a726311adec (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/flashdot/flashdot-1.1.4.ebuild,v 1.2 2011/02/25 09:59:31 tomka Exp $
EAPI=2
DESCRIPTION="Generator for psychophysical experiments"
HOMEPAGE="http://www.flashdot.info/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="+ocamlopt"
DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]
dev-ml/ocamlsdl
dev-ml/ocamlgsl
dev-ml/lablgl[glut]
x11-apps/xdpyinfo"
RDEPEND="${DEPEND}"
MAKEOPTS="-j1 VERSION=${PV}"
use ocamlopt || MAKEOPTS="${MAKEOPTS} TARGETS=flashdot_bytecode BYTECODENAME=flashdot"
src_compile() {
emake ${MAKEOPTS} || die "emake failed"
}
src_install() {
emake ${MAKEOPTS} DESTDIR="${D}" CALLMODE=script install || die "install failed"
}
|