diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2006-07-15 19:46:31 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2006-07-15 19:46:31 +0000 |
commit | 7f400ee605e75c716992baee7c0ae3ca0c4d74ff (patch) | |
tree | 7e2048c7c86e0f2d8700c598319d451da3186ae7 /dev-python/genetic | |
parent | drop [ -t ] check from ebeep/epause #139783 (diff) | |
download | historical-7f400ee605e75c716992baee7c0ae3ca0c4d74ff.tar.gz historical-7f400ee605e75c716992baee7c0ae3ca0c4d74ff.tar.bz2 historical-7f400ee605e75c716992baee7c0ae3ca0c4d74ff.zip |
A package for genetic algorithms in Python, will be used by sci-chemistry/pymss.
Package-Manager: portage-2.1.1_pre2-r8
Diffstat (limited to 'dev-python/genetic')
-rw-r--r-- | dev-python/genetic/ChangeLog | 12 | ||||
-rw-r--r-- | dev-python/genetic/Manifest | 20 | ||||
-rw-r--r-- | dev-python/genetic/files/0.1.1-import-future-at-beginning.patch | 20 | ||||
-rw-r--r-- | dev-python/genetic/files/digest-genetic-0.1.1 | 3 | ||||
-rw-r--r-- | dev-python/genetic/genetic-0.1.1.ebuild | 23 | ||||
-rw-r--r-- | dev-python/genetic/metadata.xml | 5 |
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..af6c2c961068 --- /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 656 RMD160 86fb441c3b922649653b74aa4ca23d0c885e8e70 SHA1 36ef2b338d06d02ceaf816ad40a389234730fd0c SHA256 fbe09d3a119206b43ec4589456d9caac6129ed380a92c6131bab7c814dc863e3 +MD5 dc197479799961a5ac1a749e63caecd9 genetic-0.1.1.ebuild 656 +RMD160 86fb441c3b922649653b74aa4ca23d0c885e8e70 genetic-0.1.1.ebuild 656 +SHA256 fbe09d3a119206b43ec4589456d9caac6129ed380a92c6131bab7c814dc863e3 genetic-0.1.1.ebuild 656 +MISC ChangeLog 472 RMD160 1a0426f60d2c6b1e38412c34618b29847d5d04d9 SHA1 def63f8122010163b09fde8521b7488ebba670ad SHA256 93a95b0c395c704910cf15f43c1ffac1b0f0c5657c0758e4a46d51f6d08d4b73 +MD5 d52c76fadf6ba2d329fbc861ab436586 ChangeLog 472 +RMD160 1a0426f60d2c6b1e38412c34618b29847d5d04d9 ChangeLog 472 +SHA256 93a95b0c395c704910cf15f43c1ffac1b0f0c5657c0758e4a46d51f6d08d4b73 ChangeLog 472 +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> |