aboutsummaryrefslogtreecommitdiff
blob: affd775b9374bfd4f18f59269cd7a9515577b1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )

inherit distutils-r1

MY_PN="PuLP"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Create MPS/LP files, call solvers, and present results"
HOMEPAGE="http://pulp-or.googlecode.com/"
SRC_URI="mirror://pypi/P/PuLP/${MY_P}.zip"

LICENSE="BSD-2"
KEYWORDS="~amd64"
SLOT="0"
IUSE="examples"

DEPEND="dev-python/setuptools"
RDEPEND="
	dev-python/setuptools
	dev-python/pyparsing
	sci-libs/coinor-cbc
	>=sci-mathematics/glpk-4.35"

S="${WORKDIR}/${MY_P}"

python_prepare_all() {
	rm -rf ./src/pulp/solverdir/cbc* || die
	distutils-r1_python_prepare_all
}

pyhton_install_all() {
	distutils-r1_python_install_all
	if use examples; then
		insinto /usr/share/doc/"${PF}"/
		doins -r examples
	fi
}