summaryrefslogtreecommitdiff
path: root/sci-misc/flashdot
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc/flashdot')
-rw-r--r--sci-misc/flashdot/Manifest6
-rw-r--r--sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch23
-rw-r--r--sci-misc/flashdot/flashdot-1.1.4-r1.ebuild35
-rw-r--r--sci-misc/flashdot/metadata.xml12
4 files changed, 76 insertions, 0 deletions
diff --git a/sci-misc/flashdot/Manifest b/sci-misc/flashdot/Manifest
new file mode 100644
index 000000000000..4a894d98127c
--- /dev/null
+++ b/sci-misc/flashdot/Manifest
@@ -0,0 +1,6 @@
+AUX flashdot-1.1.4-gsl-ocaml.patch 1045 SHA256 8d7d986b5759712f86f5b31ea90bec6b97667ae2707515a1c438bb104bed6d7b SHA512 010edd228c29189bb07eec81ec3b0ceb968ccfa99f6cf85d1d1b2b1b8b2af040b674e75fdf57662cdbb6ca076b9ea02d5164530ef91012bb3e9ea89de9457f0b WHIRLPOOL 6bf344ad289cad23e5bc0ced8ce0b37b61d29b88c8e9fa81df8ec5bf85446594a23713fb1ae499ce068b13a7db7f0f9dcbbeefe2639d12ae9f726acf0fbcf1eb
+DIST flashdot-1.1.4.tar.bz2 464763 SHA256 b43c05d2933c1381cfd5a0761250ce68ad0a138a150679df0bf7b80564c93439 SHA512 2c7f803ca002f8a2d9205a6148c3bf602aa79c04fb67444cdfb23626706777d8463739f119ff124b58f7dc30c75750f95045fab4059540936082cfda7deea8c0 WHIRLPOOL 7a0fcc64c5129fd8f85859068291401a19f16b80bbb11557186fe31ffb0a82efa7284a06b1da22f9e8fb77328f3bb64deb653f4ebe9fafbd1eb904ed7a10505b
+EBUILD flashdot-1.1.4-r1.ebuild 754 SHA256 6da6db3415d2e052afd8408dd84836d0a27c058abe10cb05d43d32e40f497824 SHA512 b27605e2c5a6e87d3dc1c63e96c10c73f32c5c1caf980def8fbe3759e7e75989dfc4c606c9f2c1ed1c81790fc89f707162aa0dbf0fe39e49dd17a354fee8a1cb WHIRLPOOL 08d59d095340f2863dd0267097f2d8954610c72b64796fcc4533cdc011eb6d7630a4020d0cc65582b9790d73e54008f2131c67fd0587a484f3aa892f5fb83202
+MISC ChangeLog 2973 SHA256 c64f5fda0bd7c5b85ed105c0410245787128fd797a38466438b9c21ad90b1c70 SHA512 8969277cbdb514a98605450a55266b6d6ecea56bbfb902faa52315fa1f0f86bf2e28b206445f9dc61b3ed8c2ab850cf6fae02ef779085638e34ac476cdde1c5c WHIRLPOOL 7b3e2ad552957eddb7b616e0cc7d16bc91df3ef4d5bf13f6b46f7fb297a9d578340ed4fe4504318c7de6618d28987ae04b69e66f2f270199f01269c63acdec10
+MISC ChangeLog-2015 562 SHA256 336891e9a37e90ccbf1b08ca2da0265cab072f5dc3ae10aa90296b7cd3f4ab60 SHA512 4c51cacdc677584f81799d5de53951907d7483b26456899711c50caeca6def9670705fba10464a148c67f552e956e0c176079caa40e02c440b14d01c15680114 WHIRLPOOL 38fc5cfd669714d9deff182d5050d4ee17dfcc5a2ccbbe54c18c7b26fc46ce9390909ec705bf64e73136b6bd64de9edf202dfcffe5c4f4744cc42ef3c6da035f
+MISC metadata.xml 423 SHA256 705d8d1d1fcd7368b90c4f386374c2d1c44853036564040a5112b253b1d3d28f SHA512 b0e5a076e61cb0563cf6a5d9dd5254d96c7c1a00cf1a9a92404757073faae35e902b8c18a311f4aabe6ff1c22eee9cdeace76037b1de5c75000c28e6bfa33ae4 WHIRLPOOL 3cdb26bd3c6882d030b571a28d1842514933c95ef555aafa843b5200ca9701ce85705e105890c27d77d1003e2e0f7ed5e2201e87d14f82d16ac6f2e4b9d29661
diff --git a/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch b/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch
new file mode 100644
index 000000000000..4e94e5b84eb1
--- /dev/null
+++ b/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch
@@ -0,0 +1,23 @@
+Fix errors caused by wrong parameter type:
+* File "mathexpr.ml", line 423, characters 55-56:
+* Error: This expression has type int but an expression was expected of type
+* float
+
+--- flashdot-1.1.4/mathexpr/mathexpr.ml
++++ flashdot-1.1.4/mathexpr/mathexpr.ml
+@@ -419,7 +419,6 @@
+ | "NegativeBinomial" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+ let n = float'_of_string (aod cont_type "N" "1.0") in
+- (*uncomment this for ocamlgsl > 0.5 ::::let n = int_of_float n in::::*)
+ fun () -> foi (Gsl_randist.negative_binomial rng p n)
+ | "Pascal" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+@@ -4094,7 +4093,6 @@
+ | "NegativeBinomialPDF" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+ let n = float'_of_string (aod cont_type "N" "1.0") in
+- (*uncomment this for ocamlgsl > 0.5 ::::let n = int_of_float n in::::*)
+ fun x -> Gsl_randist.negative_binomial_pdf (int_of_float x) p n
+ | "PascalPDF" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
diff --git a/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild b/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild
new file mode 100644
index 000000000000..97b4fd7fac5b
--- /dev/null
+++ b/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Generator for psychophysical experiments"
+HOMEPAGE="http://www.flashdot.info/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt"
+
+DEPEND="
+ >=dev-lang/ocaml-3.10[ocamlopt?]
+ dev-ml/gsl-ocaml
+ dev-ml/lablgl[glut]
+ dev-ml/ocamlsdl
+ x11-apps/xdpyinfo"
+RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${P}-gsl-ocaml.patch"
+)
+
+src_prepare() {
+ default
+ MAKEOPTS+=" -j1 VERSION=${PV}"
+ use ocamlopt || MAKEOPTS+=" TARGETS=flashdot_bytecode BYTECODENAME=flashdot"
+}
+
+src_install() {
+ emake DESTDIR="${D}" CALLMODE=script install
+}
diff --git a/sci-misc/flashdot/metadata.xml b/sci-misc/flashdot/metadata.xml
new file mode 100644
index 000000000000..391f2ee2700c
--- /dev/null
+++ b/sci-misc/flashdot/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+FlashDot is a program for generating and presenting visual perceptual experiments that require a high temporal
+precision.
+</longdescription>
+</pkgmetadata>