diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pygene | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pygene')
-rw-r--r-- | dev-python/pygene/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pygene/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/pygene/pygene-0.2.1-r1.ebuild | 41 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pygene/Manifest b/dev-python/pygene/Manifest new file mode 100644 index 000000000000..fee680f9bf34 --- /dev/null +++ b/dev-python/pygene/Manifest @@ -0,0 +1,3 @@ +DIST pygene-0.2.1.tar.gz 147178 BLAKE2B 267eac7130bf402dc5f4a0a2c1c31365437cbcef81fdf3baea0ac289fe412920947e182ed2b72687a42d37ebc0458c24dbb828bf99963f50aebc5a896083ec7a SHA512 4f6b32c4e17e85d80530f8f3d94f9726bb5adb80933aa39948ae3824effa780d333ef01ac4a304e63345314a298edd31aa687c6e6947486e74efafa6678951c7 +EBUILD pygene-0.2.1-r1.ebuild 1006 BLAKE2B f7767f6bf4cf7a3b9aa8006f4705f765647cc168ec80183d85e93d05580de094c2f33a7dd5791cbc11897f318bb400536293c8a7a076b550d711297ab49b46ce SHA512 65df6f6d820da5412988bfd0cdecd9b23a9b96142fb5836b99895ee572795f66aa8c2794c774bb3a79150ebc90559defc0063f6ea90c2023753a5ac910f93f5a +MISC metadata.xml 240 BLAKE2B 41e6a4d9da33dab2decc5ff419924f382a8f64d27a81fdb97576db8c6cf125be95911747946ec8be1b453f56617fef1084f5947f84b50a8db419d46df2ae8a0f SHA512 9c23321eaa853f851bf00195ea64ac2ba093e516f9b57855ee5aa58fbb1988130c9f0c17c2a9ce9fae4ee033e0a28a70c868e0f5acdfa1dd316ab533c5279d59 diff --git a/dev-python/pygene/metadata.xml b/dev-python/pygene/metadata.xml new file mode 100644 index 000000000000..7f4f33c6dbc9 --- /dev/null +++ b/dev-python/pygene/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/pygene/pygene-0.2.1-r1.ebuild b/dev-python/pygene/pygene-0.2.1-r1.ebuild new file mode 100644 index 000000000000..8f7505711f59 --- /dev/null +++ b/dev-python/pygene/pygene-0.2.1-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Simple python genetic algorithms programming library" +HOMEPAGE="http://www.freenet.org.nz/python/pygene/" +SRC_URI="http://www.freenet.org.nz/python/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +DEPEND="doc? ( >=dev-python/epydoc-2.1-r2[${PYTHON_USEDEP}] )" +RDEPEND="examples? ( >=dev-python/pyfltk-1.1.2:0[${PYTHON_USEDEP}] )" + +python_prepare_all() { + if use examples; then + mkdir examples || die + mv demo*.py salesman.gif examples || die + fi + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + epydoc -n "pygene - Python genetic algorithms" -o doc pygene \ + || die "Generation of documentation failed" + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} |