Lines 3-11
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.36.0.ebuild,v 1.2 2014/02/06 12:19:14 kensington Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.36.0.ebuild,v 1.2 2014/02/06 12:19:14 kensington Exp $ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
6 |
PYTHON_COMPAT=( python{2_6,2_7,3_3} ) |
7 |
|
7 |
|
8 |
inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 |
8 |
inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-r1 |
9 |
|
9 |
|
10 |
DESCRIPTION="Open Source Graph Visualization Software" |
10 |
DESCRIPTION="Open Source Graph Visualization Software" |
11 |
HOMEPAGE="http://www.graphviz.org/" |
11 |
HOMEPAGE="http://www.graphviz.org/" |
Lines 129-143
Link Here
|
129 |
# with flags enabled at configure time |
129 |
# with flags enabled at configure time |
130 |
|
130 |
|
131 |
pkg_setup() { |
131 |
pkg_setup() { |
132 |
use python && python-single-r1_pkg_setup |
|
|
133 |
|
134 |
java-pkg-opt-2_pkg_setup |
132 |
java-pkg-opt-2_pkg_setup |
135 |
} |
133 |
} |
136 |
|
134 |
|
137 |
src_prepare() { |
135 |
src_prepare() { |
138 |
epatch \ |
136 |
epatch \ |
139 |
"${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \ |
137 |
"${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \ |
140 |
"${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch |
138 |
"${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch \ |
|
|
139 |
"${FILESDIR}"/${P}-python3-compat.patch |
141 |
|
140 |
|
142 |
# ToDo: Do the same thing for examples and/or |
141 |
# ToDo: Do the same thing for examples and/or |
143 |
# write a patch for a configuration-option |
142 |
# write a patch for a configuration-option |
Lines 168-173
Link Here
|
168 |
|
167 |
|
169 |
use java && append-cppflags $(java-pkg_get-jni-cflags) |
168 |
use java && append-cppflags $(java-pkg_get-jni-cflags) |
170 |
|
169 |
|
|
|
170 |
# 2.36.0 has assertion failure w/ some graphite flags: |
171 |
# dot: mincross.c:1077: install_in_rank: Assertion ` |
172 |
# (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].n <= |
173 |
# (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].an' failed. |
174 |
# So, turn graphite options OFF |
175 |
filter-flags -floop* -fgraphite* -ftree-loop* -fivopts |
176 |
|
171 |
eautoreconf |
177 |
eautoreconf |
172 |
} |
178 |
} |
173 |
|
179 |
|
Lines 212-222
Link Here
|
212 |
--disable-ocaml |
218 |
--disable-ocaml |
213 |
$(use_enable perl) |
219 |
$(use_enable perl) |
214 |
--disable-php |
220 |
--disable-php |
215 |
$(use_enable python) |
|
|
216 |
--disable-r |
221 |
--disable-r |
217 |
$(use_enable ruby) |
222 |
$(use_enable ruby) |
218 |
--disable-sharp |
223 |
--disable-sharp |
219 |
$(use_enable tcl)" |
224 |
$(use_enable tcl)" |
|
|
225 |
if use python; then |
226 |
_prepare_python_configure_params() { |
227 |
local -r _current_python=$(sed 's,\.,,' <<<${EPYTHON}) |
228 |
eval "myconf=\"${myconf} $(use_enable python ${_current_python})\"" |
229 |
} |
230 |
python_foreach_impl _prepare_python_configure_params |
231 |
fi |
220 |
|
232 |
|
221 |
econf \ |
233 |
econf \ |
222 |
--enable-ltdl \ |
234 |
--enable-ltdl \ |
Lines 242-250
Link Here
|
242 |
|
254 |
|
243 |
dodoc AUTHORS ChangeLog NEWS README |
255 |
dodoc AUTHORS ChangeLog NEWS README |
244 |
|
256 |
|
245 |
use python && python_optimize \ |
257 |
if use python; then |
246 |
"${D}$(python_get_sitedir)" \ |
258 |
_compile_python_bytecode() { |
247 |
"${D}/usr/$(get_libdir)/graphviz/python" |
259 |
python_optimize "${D}$(python_get_sitedir)" |
|
|
260 |
} |
261 |
python_foreach_impl _compile_python_bytecode |
262 |
fi |
248 |
} |
263 |
} |
249 |
|
264 |
|
250 |
pkg_postinst() { |
265 |
pkg_postinst() { |