Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/graph-tool/
Date: Tue, 03 May 2016 21:24:18
Message-Id: 1462310623.842224ba4d60a0f01415685c228564d2f1c34f1b.soap@gentoo
1 commit: 842224ba4d60a0f01415685c228564d2f1c34f1b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 21:19:20 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 21:23:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=842224ba
7
8 dev-python/graph-tool: Version bump to latest 2.16
9
10 Gentoo-Bug: 579938
11 * EAPI=6
12
13 Package-Manager: portage-2.2.28
14
15 dev-python/graph-tool/Manifest | 1 +
16 dev-python/graph-tool/graph-tool-2.16.ebuild | 90 ++++++++++++++++++++++++++++
17 2 files changed, 91 insertions(+)
18
19 diff --git a/dev-python/graph-tool/Manifest b/dev-python/graph-tool/Manifest
20 index 97d3610..a2e253e 100644
21 --- a/dev-python/graph-tool/Manifest
22 +++ b/dev-python/graph-tool/Manifest
23 @@ -1 +1,2 @@
24 +DIST graph-tool-2.16.tar.bz2 15116613 SHA256 3784d4a15b6b5d0e6dab5e3941d24c1e3fee509f7abf9008f64fef2760bd610d SHA512 336dddcd7a3faf56eff06a902f4cf5ac462bc4fd807566c473675eed665dba720e0b275b9233f73e657976e7ebdda75804eaa81ebf617dcde1beb299f45138e2 WHIRLPOOL 74b0ebc84c9a16b61182f296f93e366d09708fe0746c35a961173cfda259083ade97da2ecedbef4b9c19494aab621597c1f7863501d6a0e59c026aa197d39cb1
25 DIST graph-tool-2.2.44.tar.bz2 15044171 SHA256 42b97c24c155ddd95c79a16b4e3cb034cb3139e912c37aed66e6493e4ff20566 SHA512 312f3baf80a3c66d75f1ad458a2eb4b51300925beeac494e724e73589c06e93ce467a64da0cb26809b706cf69b398ab8ad1750d5e2b952f92b3bc00bd2e42467 WHIRLPOOL 79e04d4b4efb28bd99f45b64eb4297c408e35f1bdf78f6d756d52f44895cc9ae35f3c9c4450ca2a6f9232ebc0c4f57bc261495db7ec4ae2b542424a15777284d
26
27 diff --git a/dev-python/graph-tool/graph-tool-2.16.ebuild b/dev-python/graph-tool/graph-tool-2.16.ebuild
28 new file mode 100644
29 index 0000000..cee02ef
30 --- /dev/null
31 +++ b/dev-python/graph-tool/graph-tool-2.16.ebuild
32 @@ -0,0 +1,90 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
40 +
41 +inherit check-reqs toolchain-funcs python-r1
42 +
43 +if [[ ${PV} == "9999" ]] ; then
44 + EGIT_REPO_URI="https://github.com/count0/graph-tool.git"
45 + inherit autotools git-r3
46 +else
47 + SRC_URI="http://downloads.skewed.de/${PN}/${P}.tar.bz2"
48 + KEYWORDS="~amd64 ~x86"
49 +fi
50 +
51 +DESCRIPTION="An efficient python module for manipulation and statistical analysis of graphs"
52 +HOMEPAGE="http://graph-tool.skewed.de/"
53 +
54 +LICENSE="GPL-3"
55 +SLOT="0"
56 +IUSE="+cairo openmp"
57 +
58 +# Bug #536734; configure sets boostlib 1.53.0 but 1.54.0 is required
59 +RDEPEND="${PYTHON_DEPS}
60 + >=dev-libs/boost-1.54.0[python,${PYTHON_USEDEP}]
61 + dev-libs/expat
62 + dev-python/numpy[${PYTHON_USEDEP}]
63 + sci-libs/scipy[${PYTHON_USEDEP}]
64 + >=sci-mathematics/cgal-3.5
65 + cairo? (
66 + dev-cpp/cairomm
67 + dev-python/pycairo[${PYTHON_USEDEP}]
68 + )
69 + dev-python/matplotlib[${PYTHON_USEDEP}]"
70 +DEPEND="${RDEPEND}
71 + dev-cpp/sparsehash
72 + virtual/pkgconfig"
73 +
74 +# most machines don't have enough ram for parallel builds
75 +MAKEOPTS="${MAKEOPTS} -j1"
76 +
77 +# bug 453544
78 +CHECKREQS_DISK_BUILD="6G"
79 +
80 +pkg_pretend() {
81 + if use openmp ; then
82 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
83 + fi
84 + check-reqs_pkg_pretend
85 +}
86 +
87 +src_prepare() {
88 + default
89 + [[ ${PV} == "9999" ]] && eautoreconf
90 + >py-compile
91 + python_copy_sources
92 +}
93 +
94 +src_configure() {
95 + local threads
96 + has_version dev-libs/boost[threads] && threads="-mt"
97 +
98 + configure() {
99 + econf \
100 + --disable-static \
101 + --disable-optimization \
102 + $(use_enable openmp) \
103 + $(use_enable cairo) \
104 + --with-boost-python="${EPYTHON: -3}${threads}"
105 + }
106 + python_foreach_impl run_in_build_dir configure
107 +}
108 +
109 +src_compile() {
110 + python_foreach_impl run_in_build_dir default
111 +}
112 +
113 +src_install() {
114 + python_foreach_impl run_in_build_dir default
115 + prune_libtool_files --modules
116 +}
117 +
118 +run_in_build_dir() {
119 + pushd "${BUILD_DIR}" > /dev/null
120 + "$@"
121 + popd > /dev/null
122 +}