summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-07-15 19:46:31 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-07-15 19:46:31 +0000
commite9bce343a3b2b4eda7dee6be17d38d55c36d0763 (patch)
tree6d016d3c77a8fb543a93fba8ee0afdf1a37a20de /dev-python/genetic
parentdrop [ -t ] check from ebeep/epause #139783 (diff)
downloadgentoo-2-e9bce343a3b2b4eda7dee6be17d38d55c36d0763.tar.gz
gentoo-2-e9bce343a3b2b4eda7dee6be17d38d55c36d0763.tar.bz2
gentoo-2-e9bce343a3b2b4eda7dee6be17d38d55c36d0763.zip
A package for genetic algorithms in Python, will be used by sci-chemistry/pymss.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'dev-python/genetic')
-rw-r--r--dev-python/genetic/ChangeLog12
-rw-r--r--dev-python/genetic/Manifest20
-rw-r--r--dev-python/genetic/files/0.1.1-import-future-at-beginning.patch20
-rw-r--r--dev-python/genetic/files/digest-genetic-0.1.13
-rw-r--r--dev-python/genetic/genetic-0.1.1.ebuild23
-rw-r--r--dev-python/genetic/metadata.xml5
6 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/genetic/ChangeLog b/dev-python/genetic/ChangeLog
new file mode 100644
index 000000000000..2e3d92c14b2f
--- /dev/null
+++ b/dev-python/genetic/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-python/genetic
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/genetic/ChangeLog,v 1.1 2006/07/15 19:46:31 dberkholz Exp $
+
+*genetic-0.1.1 (15 Jul 2006)
+
+ 15 Jul 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/0.1.1-import-future-at-beginning.patch, +metadata.xml,
+ +genetic-0.1.1.ebuild:
+ A package for genetic algorithms in Python, will be used by
+ sci-chemistry/pymss.
+
diff --git a/dev-python/genetic/Manifest b/dev-python/genetic/Manifest
new file mode 100644
index 000000000000..c3d23a04faf9
--- /dev/null
+++ b/dev-python/genetic/Manifest
@@ -0,0 +1,20 @@
+AUX 0.1.1-import-future-at-beginning.patch 891 RMD160 b72515e1be88359c7ba6de93fa937b9b61a6b38f SHA1 1c914299d016e53f10597dfed10723a4d1c9bb51 SHA256 f0de94e49985b56151ea30080735e3b484b676bb0a1ba9d95c4c1ddd36e9e943
+MD5 1c0cbc420313809823e7ba1ffee107a7 files/0.1.1-import-future-at-beginning.patch 891
+RMD160 b72515e1be88359c7ba6de93fa937b9b61a6b38f files/0.1.1-import-future-at-beginning.patch 891
+SHA256 f0de94e49985b56151ea30080735e3b484b676bb0a1ba9d95c4c1ddd36e9e943 files/0.1.1-import-future-at-beginning.patch 891
+DIST Genetic-0.1.1.tar.gz 31357 RMD160 b0245974ced97f8b3537ac8159f9b4c91a76f7fb SHA1 6aed7c1b8ae3513be12b4cdc0cd308a7414aaad0 SHA256 53678276ff5f0ae3e26c59e9cc6cd064ce6a46640f39f7ce9542d5c3c6bed570
+EBUILD genetic-0.1.1.ebuild 552 RMD160 d2c1821c758104cd7bba4bc645d5a63a825b3e73 SHA1 e86e197e875eba08c7caa6c6fcc8c9ef343c4abd SHA256 283a585aa587ab70ffaa9d82dcf4d48bded98be42a7925b0c7b0bf3366d5fc72
+MD5 8f63964ad1d21e62b506aa56acaae0dd genetic-0.1.1.ebuild 552
+RMD160 d2c1821c758104cd7bba4bc645d5a63a825b3e73 genetic-0.1.1.ebuild 552
+SHA256 283a585aa587ab70ffaa9d82dcf4d48bded98be42a7925b0c7b0bf3366d5fc72 genetic-0.1.1.ebuild 552
+MISC ChangeLog 379 RMD160 bba0d20c40e707bdf07e1a1c2aaa9962eca7b88a SHA1 ae27c357a627409dd637d6302882b006f6a10407 SHA256 58b81f0d47b35178b9cee3229c9238cbf4bdf3aed09eb62e7665f0db06586e08
+MD5 7756f3ef601e4cd1ecc0f04110c17d43 ChangeLog 379
+RMD160 bba0d20c40e707bdf07e1a1c2aaa9962eca7b88a ChangeLog 379
+SHA256 58b81f0d47b35178b9cee3229c9238cbf4bdf3aed09eb62e7665f0db06586e08 ChangeLog 379
+MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
+SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
+MD5 42083ff07d5c393c60d9752a887adebb files/digest-genetic-0.1.1 238
+RMD160 eb138a790dca38179baacb333b2982cfbe796631 files/digest-genetic-0.1.1 238
+SHA256 119e19df92515a59084ef51c1f1c6ad48c7bf2baae66a58f6df6d258f319b794 files/digest-genetic-0.1.1 238
diff --git a/dev-python/genetic/files/0.1.1-import-future-at-beginning.patch b/dev-python/genetic/files/0.1.1-import-future-at-beginning.patch
new file mode 100644
index 000000000000..eeeca54c4dd6
--- /dev/null
+++ b/dev-python/genetic/files/0.1.1-import-future-at-beginning.patch
@@ -0,0 +1,20 @@
+diff -urN Genetic-0.1.1.orig/demo/demo_circle.py Genetic-0.1.1/demo/demo_circle.py
+--- Genetic-0.1.1.orig/demo/demo_circle.py 2006-07-15 12:39:09.000000000 -0700
++++ Genetic-0.1.1/demo/demo_circle.py 2006-07-15 12:39:26.000000000 -0700
+@@ -6,6 +6,8 @@
+ # MutableOrderList extends the Mutable class and can be used as a value for a
+ # gene, instead of a float or anything. Here we call this list "order"
+
++from __future__ import nested_scopes
++
+ def journey_distance(order):
+ # order is : [first_city, second_city, ...]
+ return reduce(operator.add, map(lambda cityA, cityB: math.sqrt((cityA.x - cityB.x) ** 2 + (cityA.y - cityB.y) ** 2), order, order[1:] + [order[0]]))
+@@ -21,7 +23,6 @@
+ This demo search the smaller circle that contains all the given points.
+ """
+
+-from __future__ import nested_scopes
+
+ import random, string, math, Tkinter
+ from genetic import organism, lifecycle
diff --git a/dev-python/genetic/files/digest-genetic-0.1.1 b/dev-python/genetic/files/digest-genetic-0.1.1
new file mode 100644
index 000000000000..15ea8a82d30e
--- /dev/null
+++ b/dev-python/genetic/files/digest-genetic-0.1.1
@@ -0,0 +1,3 @@
+MD5 d178f233fe7bc480339051e0d23cb9fe Genetic-0.1.1.tar.gz 31357
+RMD160 b0245974ced97f8b3537ac8159f9b4c91a76f7fb Genetic-0.1.1.tar.gz 31357
+SHA256 53678276ff5f0ae3e26c59e9cc6cd064ce6a46640f39f7ce9542d5c3c6bed570 Genetic-0.1.1.tar.gz 31357
diff --git a/dev-python/genetic/genetic-0.1.1.ebuild b/dev-python/genetic/genetic-0.1.1.ebuild
new file mode 100644
index 000000000000..cc07206e6316
--- /dev/null
+++ b/dev-python/genetic/genetic-0.1.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/genetic/genetic-0.1.1.ebuild,v 1.1 2006/07/15 19:46:31 dberkholz Exp $
+
+inherit distutils eutils
+
+MY_PN="${PN/#g/G}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="A package for genetic algorithms in Python"
+HOMEPAGE="http://home.gna.org/oomadness/en/genetic/"
+SRC_URI="http://download.gna.org/oomadness/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RDEPEND=""
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${PV}-import-future-at-beginning.patch
+}
diff --git a/dev-python/genetic/metadata.xml b/dev-python/genetic/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/dev-python/genetic/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>