diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-05-23 18:17:39 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-05-23 18:17:39 +0000 |
commit | d5e6fdf6fe97e5de530807609ff9a32c7212b9b7 (patch) | |
tree | bdca87b79c50defc6927e4b508b2fdbe1bef2fbc /sci-mathematics/fann | |
parent | The glint driver is broken completely currently (diff) | |
download | historical-d5e6fdf6fe97e5de530807609ff9a32c7212b9b7.tar.gz historical-d5e6fdf6fe97e5de530807609ff9a32c7212b9b7.tar.bz2 historical-d5e6fdf6fe97e5de530807609ff9a32c7212b9b7.zip |
Version bump, beta recommended by upstream, closing bug #199785.
Package-Manager: portage-2.1.5.2
Diffstat (limited to 'sci-mathematics/fann')
-rw-r--r-- | sci-mathematics/fann/ChangeLog | 11 | ||||
-rw-r--r-- | sci-mathematics/fann/Manifest | 9 | ||||
-rw-r--r-- | sci-mathematics/fann/fann-2.1.0_beta.ebuild | 74 | ||||
-rw-r--r-- | sci-mathematics/fann/files/fann-2.1.0_beta-benchmark.patch | 80 | ||||
-rw-r--r-- | sci-mathematics/fann/files/fann-2.1.0_beta-examples.patch | 23 | ||||
-rw-r--r-- | sci-mathematics/fann/files/fann-2.1.0_beta-python.patch | 20 | ||||
-rw-r--r-- | sci-mathematics/fann/metadata.xml | 18 |
7 files changed, 223 insertions, 12 deletions
diff --git a/sci-mathematics/fann/ChangeLog b/sci-mathematics/fann/ChangeLog index 4173941956f2..6c6942e807f8 100644 --- a/sci-mathematics/fann/ChangeLog +++ b/sci-mathematics/fann/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-mathematics/fann # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fann/ChangeLog,v 1.11 2008/05/12 13:10:17 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fann/ChangeLog,v 1.12 2008/05/23 18:17:38 bicatali Exp $ + +*fann-2.1.0_beta (23 May 2008) + + 23 May 2008; SĂ©bastien Fabbro <bicatali@gentoo.org> + +files/fann-2.1.0_beta-benchmark.patch, + +files/fann-2.1.0_beta-examples.patch, + +files/fann-2.1.0_beta-python.patch, metadata.xml, + +fann-2.1.0_beta.ebuild: + Version bump, beta recommended by upstream, closing bug #199785. 12 May 2008; Markus Dittrich <markusle@gentoo.org> fann-1.2.0.ebuild, fann-1.2.0-r1.ebuild, fann-2.0.0.ebuild: diff --git a/sci-mathematics/fann/Manifest b/sci-mathematics/fann/Manifest index d0f30c8dd752..f968c9b24f22 100644 --- a/sci-mathematics/fann/Manifest +++ b/sci-mathematics/fann/Manifest @@ -2,10 +2,15 @@ AUX fann-1.2.0-r1.patch 14130 RMD160 b6cf23f60464efb330af374cbce21825f79f051c SH AUX fann-1.2.0-setup.py 1503 RMD160 5577f9ca2845e09454ced87df38eabe8e164bfc0 SHA1 e70764a15c23b8b958b309b029586ba9ea129a87 SHA256 2b77107528c369fbf557b5c502bea17fdea2144d9a8caa906a1c531bc348adba AUX fann-2.0.0-benchmark.patch 1986 RMD160 9660044ab4fadc476cda8653ad171ef7b0d5e1e5 SHA1 43645f9e1a198040d7c63d2da7755696087f07bc SHA256 ba4dd808fc66dd7fadb61e82ff12fdb6841c56e70c3d17a6a5e8d316e4d79b66 AUX fann-2.0.0-shared-libs-gentoo.patch 1193 RMD160 b7e70b62187fe81363406fad1cabffbd9c98349c SHA1 c2d27d013e11d7bf0098dccf6ad619a32d25a1c8 SHA256 788faf6fde0ee954581b95e2630b265aeb3e88c3bb2fd696bc98e470b87b30f3 +AUX fann-2.1.0_beta-benchmark.patch 2862 RMD160 338c32d701cb483bb2c9d9676accb83d4f1b1d19 SHA1 87d2deb97b938052b19391693c7ccada416a5e47 SHA256 f12c6649d9eff5aa4c0e565f9c404c1be8101e7ded91da862df82fe499e1c5f4 +AUX fann-2.1.0_beta-examples.patch 923 RMD160 7379369370db10635234f7245f4636969e495259 SHA1 7ae0e2e060a5cc0da212c5310293a3e1e6e81d5d SHA256 a52427363d169d1ff20b4167db41c098bc41e6c2d5f7dfac1bf6389fc0342c58 +AUX fann-2.1.0_beta-python.patch 750 RMD160 1609d02da5096c2fc3404f2747f55261faba58bd SHA1 9cf261f3733be27a49e8bcebf0879347fb7b1d6a SHA256 94490da5c5b6216c97e987965b92347e3d5125ea32a9aaa62cd8b584036f9a01 DIST fann-1.2.0.tar.bz2 2082660 RMD160 672dd909d05f3a42517f938f6145c81ab421adeb SHA1 b3ffe2bef832256b89af80a4843f760ed2d63fca SHA256 3ddd93bfc0dfbe1a223edcf86e79b4a325e966ffbafa000bd0c86d25fdf717b1 DIST fann-2.0.0.tar.bz2 2310853 RMD160 9d7268eaf06ab177eafb72359a1cf73a70e5a886 SHA1 af4d4efe2362e68929bee73cde85bca10c48df43 SHA256 762a1313a9b935300cb66ebf052d469d04823ca721fe6dd2a49c01e13e8ab30a +DIST fann-2.1.0beta.zip 4033198 RMD160 f0d5366547a1f3998246b9ffec9c9a65ec70fa9e SHA1 ee86afbb9787cd41a42e07db2a9bc10699b555f6 SHA256 c24171b5b9c87946bd2f50045cc8dbd0121629fe426615501db14e6043e4a141 EBUILD fann-1.2.0-r1.ebuild 1862 RMD160 aa89ffe947dccaebb49fb7e88d5749cc65ea49b8 SHA1 c14db4e8af9db7137946488bee1a979142901e63 SHA256 03804e12df7316004db80e3d46e248e48c47cd01229bc05194db670c1e048193 EBUILD fann-1.2.0.ebuild 1841 RMD160 e23101e9811ed1e66de163df0cfb74fc2cdd9b90 SHA1 0067e4bfa322929874ea13d45cc6aa2928acaddd SHA256 8efcf206644124e6bc13711386d545316ff054a9bd7393256c5f8561834635e4 EBUILD fann-2.0.0.ebuild 1838 RMD160 2dd97d2396b1937461060a7b832ca7cfb536b6a5 SHA1 30252e4366a99e7b57950a98681e0d222b8d7b01 SHA256 7cdf98b489d3ffda3e2c19c0b98cf64191640c2b281b8f72bb2b11e0c4000577 -MISC ChangeLog 1969 RMD160 6e05fa3dab48be7262f63526684b9932979ff5a1 SHA1 b0497eff81b728219daf5be7b804e8f88f9ba3ea SHA256 901eef11351881638331bab31a244a127602e6ab874eb0a6e5914c6c5e8dc11c -MISC metadata.xml 643 RMD160 61b3ae59ede7fc938b2d0db3ab938d5c7c1a89d4 SHA1 d508eed27842ebf2f6e1284c88106ffdb3c001ac SHA256 f0225c318a45203347920ea563a1f79247b5a158ce1c422ea027899cf3c4c837 +EBUILD fann-2.1.0_beta.ebuild 1966 RMD160 412a7a41371ebe22607462d6fe2bc3b2c5b18b3a SHA1 c5d5882e0676d1ead0863d9361c6aa5d3074342c SHA256 893e14a3f0bbede475495a820a6cfa510f6e7ad6565de9fe38dc69f5a3b73449 +MISC ChangeLog 2287 RMD160 5d631cae9e8d52f67ccb87e14f1489d9fbe7b686 SHA1 099cd16f3ca56ef24b19d1f8be384de3e65b5a45 SHA256 b30b734c23e71e7290d939e55a1ed30ad44a7ab05965937493bf9144350fd411 +MISC metadata.xml 658 RMD160 25e209eb45899500179b5f893cc72ca41ab2370a SHA1 0c05318426869d997f382e37c9a9a5371123b052 SHA256 003060bd03fae3d61eeffbe23a4b181b905761a9e21bb1482fdec962e099641b diff --git a/sci-mathematics/fann/fann-2.1.0_beta.ebuild b/sci-mathematics/fann/fann-2.1.0_beta.ebuild new file mode 100644 index 000000000000..e7380eafe309 --- /dev/null +++ b/sci-mathematics/fann/fann-2.1.0_beta.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fann/fann-2.1.0_beta.ebuild,v 1.1 2008/05/23 18:17:38 bicatali Exp $ + +inherit eutils python + +MY_P=${P/_/} +DESCRIPTION="Fast Artificial Neural Network Library" +HOMEPAGE="http://leenissen.dk/fann/" +SRC_URI="mirror://sourceforge/fann/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc python" + +RDEPEND="python? ( virtual/python )" +DEPEND="${RDEPEND} + python? ( dev-lang/swig ) + app-arch/unzip" + + +S="${WORKDIR}/${P/_beta/}" +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-python.patch + epatch "${FILESDIR}"/${P}-benchmark.patch + epatch "${FILESDIR}"/${P}-examples.patch +} + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" + if use python; then + cd "${S}"/python + python_version + emake PYTHON_VERSION="${PYVER}" || die "emake python failed" + fi +} + +src_test() { + cd "${S}"/examples + emake CFLAGS="${CFLAGS} -I../src/include -L../src/.libs" \ + || die "emake examples failed" + LD_LIBRARY_PATH="../src/.libs" emake runtest || die "tests failed" + emake clean + if use python; then + cd "${S}"/python + emake test || die "failed tests for python wrappers" + fi +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" + + if use doc; then + dodoc doc/*.txt || die "failed to install docs" + insinto /usr/share/doc/${PF} + doins doc/fann_en.pdf || die "failed to install reference manual" + doins -r examples || die "failed to install examples" + doins -r benchmarks || die "failed to install benchmarks" + fi + + if use python; then + cd "${S}"/python + emake install ROOT="${D}" || die "failed to install python wrappers" + if use doc; then + insinto /usr/share/doc/${PF}/examples/python + doins -r examples || die "failed to install python examples" + fi + fi +} diff --git a/sci-mathematics/fann/files/fann-2.1.0_beta-benchmark.patch b/sci-mathematics/fann/files/fann-2.1.0_beta-benchmark.patch new file mode 100644 index 000000000000..60933e5e361f --- /dev/null +++ b/sci-mathematics/fann/files/fann-2.1.0_beta-benchmark.patch @@ -0,0 +1,80 @@ +--- benchmarks/Makefile.orig 2008-04-22 10:16:48.664395478 +0000 ++++ benchmarks/Makefile 2008-04-22 10:59:59.815994915 +0000 +@@ -1,43 +1,35 @@ +-# The jneural library (http://voltar-confed.org/jneural/) and lwneuralnet library (http://sourceforge.net/projects/lwneuralnet/) needs to be installed in order to run the benchmarks +- +-GCC = gcc +-G++ = g++ ++# The jneural library (http://voltar-confed.org/jneural/) and lwneuralnet library (http://sourceforge.net/projects/lwneuralnet/) needs to be installed in order to run the benchmarks with EXTRA_NEURALS + + TARGETS = quality quality_fixed performance performance_fixed shuffle parity two-spirals + +-CFLAGS = -O3 -finline-functions -funroll-loops -Werror +- + LFLAGS = -lm +- +-JNEURALDIR = ../../libraries/jneural/ +- +-LWNNDIR = ../../libraries/lwneuralnet-0.8/source/ ++#EXTRA_NEURALS="-llwneuralnet -ljneural -DJNEURAL" + + all: $(TARGETS) + + quality: quality.cc +- $(G++) $(CFLAGS) $(LFLAGS) -I$(JNEURALDIR)include/ -L$(JNEURALDIR) -I$(LWNNDIR) -L$(LWNNDIR) $< -o $@ -lfloatfann -llwneuralnet -ljneural -lfl ++ $(CXX) $(CXXFLAGS) $(LFLAGS) $< -o $@ -lfloatfann -lfl $(EXTRA_NEURALS) + + quality_fixed: quality_fixed.c +- $(GCC) $(CFLAGS) $(LFLAGS) $< -o $@ -lfixedfann ++ $(CC) $(CFLAGS) $(LFLAGS) $< -o $@ -lfixedfann + + quality_fixed_debug: quality_fixed.c +- $(GCC) -ggdb -lm -DDEBUG -Wall -ansi -I../src/ -I../src/include/ ../src/fixedfann.c $< -o $@ ++ $(CC) -ggdb -lm -DDEBUG -Wall -ansi -I../src/ -I../src/include/ ../src/fixedfann.c $< -o $@ + + performance: performance.cc +- $(G++) $(CFLAGS) $(LFLAGS) -I$(JNEURALDIR)include/ -L$(JNEURALDIR) -I$(LWNNDIR) -L$(LWNNDIR) $< -o $@ -lfloatfann -llwneuralnet -ljneural -lfl ++ $(CXX) $(CXXFLAGS) $(LFLAGS) $< -o $@ -lfloatfann -lfl $(EXTRA_NEURALS) + + performance_fixed: performance.cc +- $(G++) $(CFLAGS) $(LFLAGS) -DFIXEDFANN $< -o $@ -lfixedfann ++ $(CXX) $(CXXFLAGS) $(LFLAGS) -DFIXEDFANN $< -o $@ -lfixedfann + + shuffle: shuffle.c +- $(GCC) $(CFLAGS) $(LFLAGS) $< -o $@ -lfloatfann ++ $(CC) $(CFLAGS) $(LFLAGS) $< -o $@ -lfloatfann + + two-spirals: two-spirals.c +- $(GCC) $(CFLAGS) $(LFLAGS) $< -o $@ ++ $(CC) $(CFLAGS) $(LFLAGS) $< -o $@ + + parity: parity.c +- $(GCC) $(CFLAGS) $(LFLAGS) $< -o $@ ++ $(CC) $(CFLAGS) $(LFLAGS) $< -o $@ + + clean: + rm -rf -- $(TARGETS) *~ +--- benchmarks/performance.cc.orig 2008-04-22 10:24:38.604894867 +0000 ++++ benchmarks/performance.cc 2008-04-22 10:26:57.436806446 +0000 +@@ -19,9 +19,6 @@ + + //uncomment lines below to benchmark the libraries + +-#define JNEURAL +-#define LWNN +- + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +--- benchmarks/quality.cc.orig 2008-04-22 10:59:27.814171235 +0000 ++++ benchmarks/quality.cc 2008-04-22 10:59:39.570841209 +0000 +@@ -19,9 +19,6 @@ + + //uncomment lines below to benchmark the libraries + +-#define JNEURAL +-#define LWNN +- + #include <stdio.h> + #include <stdlib.h> + #include <string.h> diff --git a/sci-mathematics/fann/files/fann-2.1.0_beta-examples.patch b/sci-mathematics/fann/files/fann-2.1.0_beta-examples.patch new file mode 100644 index 000000000000..45bfdd02b384 --- /dev/null +++ b/sci-mathematics/fann/files/fann-2.1.0_beta-examples.patch @@ -0,0 +1,23 @@ +--- examples/Makefile.orig 2008-04-22 10:15:42.500625020 +0000 ++++ examples/Makefile 2008-04-22 10:16:40.563933859 +0000 +@@ -1,18 +1,16 @@ + # This makefile is on purpose not made with configure, to show how to use the library + # The make file requires that the fann library is installed (see ../README) + +-GCC=gcc +- + TARGETS = xor_train xor_test xor_test_fixed simple_train steepness_train simple_test robot mushroom cascade_train scaling_test scaling_train + DEBUG_TARGETS = xor_train_debug xor_test_debug xor_test_fixed_debug cascade_train_debug + + all: $(TARGETS) + + %: %.c Makefile +- $(GCC) -O3 $< -o $@ -lm -lfann ++ $(CC) $(CFLAGS) $< -o $@ -lm -lfann + + %_fixed: %.c Makefile +- $(GCC) -O3 -DFIXEDFANN $< -o $@ -lm -lfixedfann ++ $(CC) $(CFLAGS) -DFIXEDFANN $< -o $@ -lm -lfixedfann + + clean: + rm -f $(TARGETS) $(DEBUG_TARGETS) xor_fixed.data *.net *~ *.obj *.exe *.tds noscale.txt withscale.txt scale_test_results.txt diff --git a/sci-mathematics/fann/files/fann-2.1.0_beta-python.patch b/sci-mathematics/fann/files/fann-2.1.0_beta-python.patch new file mode 100644 index 000000000000..6c6a68201b59 --- /dev/null +++ b/sci-mathematics/fann/files/fann-2.1.0_beta-python.patch @@ -0,0 +1,20 @@ +--- python/setup.py.orig 2008-04-22 10:11:05.284827392 +0000 ++++ python/setup.py 2008-04-22 10:13:21.668599460 +0000 +@@ -9,7 +9,7 @@ + import os
+
+ NAME='pyfann'
+-VERSION='2.0.0'
++VERSION='2.1.0'
+
+ LONG_DESCRIPTION="""\
+ Fast Artificial Neural Network Library implements multilayer
+@@ -42,7 +42,7 @@ + py_modules=['pyfann.libfann'],
+ ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'],
+ include_dirs=['../src/include'],
+- extra_objects=['../src/doublefann.o'],
++ extra_objects=['../src/.libs/doublefann.o'],
+ define_macros=[("SWIG_COMPILE",None)]
+ ),
+ ]
diff --git a/sci-mathematics/fann/metadata.xml b/sci-mathematics/fann/metadata.xml index f535a709598f..971b62a31019 100644 --- a/sci-mathematics/fann/metadata.xml +++ b/sci-mathematics/fann/metadata.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>sci-mathematics</herd> - <longdescription lang="en"> - Fast Artificial Neural Network Library implements multilayer artificial - neural networks in C with support for both fully connected and sparsely - connected networks. Cross-platform execution in both fixed and floating - point are supported. It includes a framework for easy handling of - training data sets. It is easy to use, versatile, well documented, and - fast. Delphi, PHP, Python and other bindings are available. - </longdescription> + <herd>sci-mathematics</herd> + <longdescription lang="en"> + Fast Artificial Neural Network Library implements multilayer artificial + neural networks in C with support for both fully connected and sparsely + connected networks. Cross-platform execution in both fixed and floating + point are supported. It includes a framework for easy handling of + training data sets. It is easy to use, versatile, well documented, and + fast. Delphi, PHP, Python and other bindings are available. + </longdescription> </pkgmetadata> |