Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/graph-tool: graph-tool-2.2.44.ebuild ChangeLog
Date: Tue, 07 Jul 2015 09:20:01
Message-Id: 20150707091957.0C61F750@oystercatcher.gentoo.org
1 patrick 15/07/07 09:19:57
2
3 Modified: ChangeLog
4 Added: graph-tool-2.2.44.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.32 dev-python/graph-tool/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/graph-tool/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/graph-tool/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/graph-tool/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/graph-tool/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 23 Jun 2015 02:32:55 -0000 1.31
24 +++ ChangeLog 7 Jul 2015 09:19:56 -0000 1.32
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/graph-tool
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/graph-tool/ChangeLog,v 1.31 2015/06/23 02:32:55 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/graph-tool/ChangeLog,v 1.32 2015/07/07 09:19:56 patrick Exp $
30 +
31 +*graph-tool-2.2.44 (07 Jul 2015)
32 +
33 + 07 Jul 2015; Patrick Lauer <patrick@g.o> +graph-tool-2.2.44.ebuild:
34 + Bump
35
36 *graph-tool-2.2.43 (23 Jun 2015)
37
38
39
40
41 1.1 dev-python/graph-tool/graph-tool-2.2.44.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/graph-tool/graph-tool-2.2.44.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/graph-tool/graph-tool-2.2.44.ebuild?rev=1.1&content-type=text/plain
45
46 Index: graph-tool-2.2.44.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/graph-tool/graph-tool-2.2.44.ebuild,v 1.1 2015/07/07 09:19:56 patrick Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
54
55 inherit check-reqs toolchain-funcs python-r1
56
57 if [[ ${PV} == "9999" ]] ; then
58 EGIT_REPO_URI="https://github.com/count0/graph-tool.git"
59 inherit autotools git-r3
60 else
61 SRC_URI="http://downloads.skewed.de/${PN}/${P}.tar.bz2"
62 KEYWORDS="~amd64 ~x86"
63 fi
64
65 DESCRIPTION="An efficient python module for manipulation and statistical analysis of graphs"
66 HOMEPAGE="http://graph-tool.skewed.de/"
67
68 LICENSE="GPL-3"
69 SLOT="0"
70 IUSE="+cairo openmp"
71
72 # Bug #536734; configure sets boostlib 1.53.0 but 1.54.0 is required
73 CDEPEND="${PYTHON_DEPS}
74 >=dev-libs/boost-1.54.0[python,${PYTHON_USEDEP}]
75 dev-libs/expat
76 dev-python/numpy[${PYTHON_USEDEP}]
77 sci-libs/scipy[${PYTHON_USEDEP}]
78 >=sci-mathematics/cgal-3.5
79 cairo? (
80 dev-cpp/cairomm
81 dev-python/pycairo[${PYTHON_USEDEP}]
82 )"
83 RDEPEND="${CDEPEND}
84 dev-python/matplotlib[${PYTHON_USEDEP}]"
85 DEPEND="${CDEPEND}
86 dev-cpp/sparsehash
87 virtual/pkgconfig"
88
89 # most machines don't have enough ram for parallel builds
90 MAKEOPTS="${MAKEOPTS} -j1"
91
92 # bug 453544
93 CHECKREQS_DISK_BUILD="6G"
94
95 pkg_pretend() {
96 if use openmp ; then
97 tc-has-openmp || die "Please switch to an openmp compatible compiler"
98 fi
99 check-reqs_pkg_pretend
100 }
101
102 src_prepare() {
103 [[ ${PV} == "9999" ]] && eautoreconf
104 >py-compile
105 python_copy_sources
106 }
107
108 src_configure() {
109 local threads
110 has_version dev-libs/boost[threads] && threads="-mt"
111
112 configure() {
113 econf \
114 --disable-static \
115 --disable-optimization \
116 $(use_enable openmp) \
117 $(use_enable cairo) \
118 --with-boost-python="${EPYTHON: -3}${threads}"
119 }
120 python_foreach_impl run_in_build_dir configure
121 }
122
123 src_compile() {
124 python_foreach_impl run_in_build_dir default
125 }
126
127 src_install() {
128 python_foreach_impl run_in_build_dir default
129 prune_libtool_files --modules
130
131 # remove unwanted extra docs
132 rm -r "${ED}"/usr/share/doc/${PN} || die
133 }
134
135 run_in_build_dir() {
136 pushd "${BUILD_DIR}" > /dev/null
137 "$@"
138 popd > /dev/null
139 }