mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
dev-python/cvxopt: version bump
Package-Manager: Portage-2.3.4, Repoman-2.3.2
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST cvxopt-1.1.6.tar.gz 3352996 SHA256 7b4ccf3ed896dde6624623431c0b1f5e32d874384329ed716f51babcbf416227 SHA512 b9f5fd7870412423b60068d205efb99d3630012509cb659fb67a10d6175906768846d7c906cf2fcac4be29afd558619b71e2dca730041329195a2365dd1d722c WHIRLPOOL d43cf090ee0396a77851fb71e6e34c980152bccdd5fdb3ecc53d0a464a505ac87a1e7198d313ec669443970bcf8a2d616f03c2f861b7df2f620bd583a97ea140
|
||||
DIST cvxopt-1.1.8.tar.gz 5354013 SHA256 c96f8d01ae31a5bdec36a65b0587f50cfbf8139335adb70442350a8042da2025 SHA512 fdf047f203275e687c51b88575639ab0383207f8748969939ecf2939f9a2acc9f5d0e97c68377466fce81eb979b5eb058834f75134cc56df5dbb01805cb98c93 WHIRLPOOL 65c8a246e03a7136c2bce3c7ef831f9f82c4cc84b7a1e5db6a2643127ea9164c35782fb1013c0eaf7ac190d036887a131c705fa56b78bda179792eca9d016d8b
|
||||
DIST cvxopt-1.1.9.tar.gz 1872932 SHA256 09997fec809179c9bb9fe8cdd202ad6ecb675f890658219022f492e0797122ee SHA512 bb0982cd1489157df4c7cd0dd92bf83b1692dc3a27d6b9a7a465dda9f9daea4ea5ef69e48642a879d036679bd0b0fe0dfd782433ce4cc570e90e11823733e58b WHIRLPOOL c9ba8b674dbcf1799a99559f3794db2cf8f57f5584865294fea5ee6932d59a9d9980e10197e8e4cd291d591bad9d92b24737a909b5bac6f6617597afa057c171
|
||||
|
||||
104
dev-python/cvxopt/cvxopt-1.1.9.ebuild
Normal file
104
dev-python/cvxopt/cvxopt-1.1.9.ebuild
Normal file
@@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit distutils-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Python package for convex optimization"
|
||||
HOMEPAGE="http://cvxopt.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc +dsdp examples fftw +glpk gsl"
|
||||
|
||||
RDEPEND="
|
||||
virtual/blas
|
||||
virtual/lapack
|
||||
sci-libs/amd:0=
|
||||
sci-libs/cholmod:0=
|
||||
sci-libs/colamd:0=
|
||||
sci-libs/suitesparseconfig:0=
|
||||
sci-libs/umfpack:0=
|
||||
dsdp? ( sci-libs/dsdp:0= )
|
||||
fftw? ( sci-libs/fftw:3.0= )
|
||||
glpk? ( >=sci-mathematics/glpk-4.49:0= )
|
||||
gsl? ( sci-libs/gsl:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
python_prepare_all(){
|
||||
pkg_libs() {
|
||||
$(tc-getPKG_CONFIG) --libs-only-l $* | \
|
||||
sed -e 's:[ ]-l*\(pthread\|m\)\([ ]\|$\)::g' -e 's:[ ]*$::' | \
|
||||
tr ' ' '\n' | sort -u | sed -e "s:^-l\(.*\):\1:g" | \
|
||||
tr '\n' ';' | sed -e 's:;$::'
|
||||
}
|
||||
pkg_libdir() {
|
||||
$(tc-getPKG_CONFIG) --libs-only-L $* | \
|
||||
sed -e 's:[ ]*$::' | \
|
||||
tr ' ' '\n' | sort -u | sed -e "s:^-L\(.*\):\1:g" | \
|
||||
tr '\n' ';' | sed -e 's:;$::'
|
||||
}
|
||||
pkg_incdir() {
|
||||
$(tc-getPKG_CONFIG) --cflags-only-I $* | \
|
||||
sed -e 's:[ ]*$::' | \
|
||||
tr ' ' '\n' | sort -u | sed -e "s:^-I\(.*\):\1:g" | \
|
||||
tr '\n' ';' | sed -e 's:,$::'
|
||||
}
|
||||
|
||||
# mandatory dependencies
|
||||
export CVXOPT_BLAS_LIB="$(pkg_libs blas)"
|
||||
export CVXOPT_BLAS_LIB_DIR="$(pkg_libdir blas)"
|
||||
export CVXOPT_LAPACK_LIB="$(pkg_libs lapack)"
|
||||
export CVXOPT_SUITESPARSE_LIB_DIR="$(pkg_libdir umfpack cholmod amd colamd suitesparseconfig)"
|
||||
export CVXOPT_SUITESPARSE_INC_DIR="$(pkg_incdir umfpack cholmod amd colamd suitesparseconfig)"
|
||||
|
||||
# optional dependencies
|
||||
use dsdp && \
|
||||
export CVXOPT_BUILD_DSDP=1 && \
|
||||
export CVXOPT_DSDP_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" && \
|
||||
export CVXOPT_DSDP_INC_DIR="${EPREFIX}/usr/include"
|
||||
|
||||
use fftw && \
|
||||
export CVXOPT_BUILD_FFTW=1 && \
|
||||
export CVXOPT_FFTW_LIB_DIR="$(pkg_libdir fftw3)" && \
|
||||
export CVXOPT_FFTW_INC_DIR="$(pkg_incdir fftw3)"
|
||||
|
||||
use glpk && \
|
||||
export CVXOPT_BUILD_GLPK=1 && \
|
||||
export CVXOPT_GLPK_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" && \
|
||||
export CVXOPT_GLPK_INC_DIR="${EPREFIX}/usr/include"
|
||||
|
||||
use gsl && \
|
||||
export CVXOPT_BUILD_GSL=1 && \
|
||||
export CVXOPT_GSL_LIB_DIR="$(pkg_libdir gsl)" && \
|
||||
export CVXOPT_GSL_INC_DIR="$(pkg_incdir gsl)"
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
|
||||
python_compile_all() {
|
||||
use doc && VARTEXFONTS="${T}/fonts" emake -C doc -B html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${BUILD_DIR}"/lib nosetests -v || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/build/html/. )
|
||||
insinto /usr/share/doc/${PF}
|
||||
distutils-r1_python_install_all
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user