1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
8 PYTHON_MODNAME="openopt"
14 DESCRIPTION="A python module for numerical optimization"
15 HOMEPAGE="http://openopt.org"
16 SRC_URI="http://openopt.org/images/3/33/${MY_PN}.zip"
20 KEYWORDS="~amd64 ~x86"
23 RDEPEND="dev-python/numpy"
25 dev-python/setuptools"
26 RESTRICT_PYTHON_ABIS="2.4 3.*"
31 sed -i -e 's/find_packages()/find_packages(exclude=["openopt.examples", "openopt.tests"])/' setup.py || die
38 insinto /usr/share/${PF}/examples
39 doins -r openopt/examples/* || die