--- /usr/portage/media-gfx/graphviz/graphviz-2.36.0.ebuild 2014-02-06 16:31:21.000000000 +0400 +++ graphviz-2.36.0-r1.ebuild 2014-02-14 22:46:40.000000000 +0400 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.36.0.ebuild,v 1.2 2014/02/06 12:19:14 kensington Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_COMPAT=( python{2_6,2_7,3_3} ) inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 @@ -137,7 +137,8 @@ src_prepare() { epatch \ "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \ - "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch + "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch \ + "${FILESDIR}"/${P}-python3-compat.patch # ToDo: Do the same thing for examples and/or # write a patch for a configuration-option @@ -168,6 +169,13 @@ use java && append-cppflags $(java-pkg_get-jni-cflags) + # 2.36.0 has assertion failure w/ some graphite flags: + # dot: mincross.c:1077: install_in_rank: Assertion ` + # (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].n <= + # (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].an' failed. + # So, turn graphite options OFF + filter-flags -floop* -fgraphite* -ftree-loop* -fivopts + eautoreconf } @@ -204,6 +212,7 @@ --without-visio" # Bindings: + local -r with_python=`sed 's,_,,' <<<${PYTHON_SINGLE_TARGET}` myconf="${myconf} $(use_enable guile) --disable-io @@ -212,7 +221,7 @@ --disable-ocaml $(use_enable perl) --disable-php - $(use_enable python) + $(use_enable python ${with_python}) --disable-r $(use_enable ruby) --disable-sharp