mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/graph-tool: add 2.43
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST graph-tool-2.41.tar.bz2 15171880 BLAKE2B 5d520e8676ebc8a363ab80d784bfdcc6746807a31dca6d3b1f27cdc1c865d60ba6e6fa64c3dc91e69dd7b2b07f56242facd435c89b0e1058f7d302e04f3144f9 SHA512 c1f71292d9db6977c20e8a6945dedefbe623070f08d62e3427ee11c5a936995ceb48f62ab7638ba6732b2436f762776d8acbc20a6b60e3cefe3ba298ab5ef0c5
|
||||
DIST graph-tool-2.43.tar.bz2 15170272 BLAKE2B 96570242cf2003c262024545a074bcd0f0cf9351b0c8c68035529d38d535411386d5440bb5166cfb70f24ba1540d9ce65324c659564f2ab50358dbd77bafed99 SHA512 e72dec9656acb2bb7ba43e19673fa4ff70ff4819e76bb5f00e9943e4cfe6a85f1e0eaa58c8be2921ebd783ef3d978294a347238f3700a457aaff8a98ea8ed4fc
|
||||
|
||||
84
dev-python/graph-tool/graph-tool-2.43.ebuild
Normal file
84
dev-python/graph-tool/graph-tool-2.43.ebuild
Normal file
@@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit check-reqs python-r1 toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
EGIT_REPO_URI="https://git.skewed.de/count0/graph-tool.git"
|
||||
inherit autotools git-r3
|
||||
else
|
||||
SRC_URI="https://downloads.skewed.de/${PN}/${P}.tar.bz2"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An efficient python module for manipulation and statistical analysis of graphs"
|
||||
HOMEPAGE="https://graph-tool.skewed.de/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="+cairo openmp"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-libs/boost-1.70:=[context,python,${PYTHON_USEDEP}]
|
||||
dev-libs/expat
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
sci-mathematics/cgal:=
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
cairo? (
|
||||
dev-cpp/cairomm:0
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-cpp/sparsehash"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
# bug 453544
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ ${PV} == *9999 ]] && eautoreconf
|
||||
python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
my_configure() {
|
||||
econf \
|
||||
--disable-static \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable cairo) \
|
||||
--with-boost-python="boost_${EPYTHON/./}"
|
||||
}
|
||||
python_foreach_impl run_in_build_dir my_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# most machines don't have enough ram for parallel builds
|
||||
python_foreach_impl run_in_build_dir emake -j2
|
||||
}
|
||||
|
||||
src_install() {
|
||||
my_python_install() {
|
||||
default
|
||||
python_optimize
|
||||
}
|
||||
python_foreach_impl run_in_build_dir my_python_install
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user