Backport backslash fix from upstream. Thanks to Ulya Trofimovich.
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 7 Mar 2015 11:29:52 +0000 (11:29 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 7 Mar 2015 11:29:52 +0000 (11:29 +0000)
Package-Manager: portage-2.2.17/cvs/Linux x86_64
Manifest-Sign-Key: 0x611FF3AA

media-gfx/graphviz/ChangeLog
media-gfx/graphviz/Manifest
media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch [new file with mode: 0644]
media-gfx/graphviz/graphviz-2.36.0-r1.ebuild [new file with mode: 0644]

index 986ca741c04c57e07c5bd8b852bd8fb882eb0cb4..00278a34c4fae449739e346c5769b136081db8fe 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-gfx/graphviz
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.283 2015/02/15 04:21:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.284 2015/03/07 11:29:49 slyfox Exp $
+
+*graphviz-2.36.0-r1 (07 Mar 2015)
+
+  07 Mar 2015; Sergei Trofimovich <slyfox@gentoo.org>
+  +files/graphviz-2.38-fix-backslashes.patch, +graphviz-2.36.0-r1.ebuild:
+  Backport backslash fix from upstream. Thanks to Ulya Trofimovich.
 
   15 Feb 2015; Mike Frysinger <vapier@gentoo.org>
   +files/graphviz-2.26.3-libtool-configure.patch, graphviz-2.26.3-r4.ebuild:
index 3125b4af59e213730f82dc80c326ab4bbe51996e..e4841a9ccb4bf15c69dce35b1005023b16dbe814 100644 (file)
@@ -9,6 +9,7 @@ AUX graphviz-2.28.0-automake-1.11.2.patch 1066 SHA256 3ce1b8b4cfc1ea5c34bcd41149
 AUX graphviz-2.28.0-dot-pangocairo-link.patch 692 SHA256 d4ffc2a1e683bba34c1f084543066db38abb8c63d5563f4c74613ea08cad240a SHA512 ecbc680d2e8f584474ecf926fada60b57498bd34dbf6cf08ce185fbd6d4b156dbef404d2822db1bdb4579f22e34f1b9cb2aca877432ba25be169be309b2f285b WHIRLPOOL b30f20c52829d5510a02a383fe6b344c3e71516a677787f04120ad16b33227352ea0c1173eab135ff0f228855100385391ad9a097471997986238863cd79bb05
 AUX graphviz-2.34.0-Xaw-configure.patch 2513 SHA256 700bb3b33fc03adf69b1c2fba4f558f2e8888aa8f460ad7212194effd0c9e41a SHA512 74913a39bb0897f8158182ee8d6197a08eabc547d86f29d31ddae99d45718f105fc954f9d9f9111cce4c7838a82db9ab6d75a8b57516dda05b01946654d528d9 WHIRLPOOL a34616172989142404a119706a88a53507beabae69658d91383ffb51a2018d8ff6239587d27036e98731fef7a4caa2562c8512fd3cf6fec7fe4a6168b5488d89
 AUX graphviz-2.34.0-dot-pangocairo-link.patch 950 SHA256 1f44e988d99dc1781266b5c5af7bcc9ff49173a15594ab9365faf1804d4e9fe9 SHA512 678defa8525063e4e5d70380a2a23662f59a8c2d4ce3ef9ec77acc5dc3a2c096d1e9e53f419a01e5e47d6af00c96f848aeb9c95a395143ed4219bde5bbed4e6e WHIRLPOOL 26c7e493bce8668ceb25ea83100e0aa12196b13b367f3ec73f9a31e194ecda9cf1ad751c2f177cc23303bf9802edac8d2f46d9dc558dfc3111dd2d3b3c84437f
+AUX graphviz-2.38-fix-backslashes.patch 1141 SHA256 aa3256d38b507476552676266fdcf103251c19e6f99f82e965f4c347c6d7f248 SHA512 8b93c3ca7f08ed4e7766c6ddde156d405f4ad73584c70385e3e2a61c0401990e179f62466409657cfc8e7ffbabc9fa1b50838cd9fcd3a1d75f91346bca72f5d6 WHIRLPOOL 72ffdb9da1c2eb8f9e4fbbe2c12b8531a18a080bd8ebb06e70fa11219973564dd1b1fca673b58ce5986a711deafcc09afe4f97e5045d88a3c43166fd6a455114
 DIST graphviz-2.26.3.tar.gz 17092429 SHA256 f410996e69b1095237c2128deae5fc7b6ce99055b095271abb14447bc2f37fa1 SHA512 6225141752318af0b50714d70d31dd1ef1bc414d134d22f066f159843991194215bb9bc4e8df38a194e1de67ebbf137d371e875948fa6a6eebfca9df1a414a6d WHIRLPOOL ca35d0ed9cb3751ae968e1c6d425efe42e8b681685eb66f975c0ff1b73e245fc3db6418ec69300331c94275fe3bfcdcd168b931b880c280f3dd63f1f03c4d4db
 DIST graphviz-2.28.0.tar.gz 19620087 SHA256 d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76 SHA512 d6dbcd99487e382f9ca83ef63a3ff3fbe9208f6d3969cf03d15b8944dfb58c7fefe1bf96939e3e69019ae9a562619c6d64ad24e390c408b7271caade443233e0 WHIRLPOOL f0274567661f16993a107f45685f0716e64ea493e064efd2e72a4680120cbee8989fb0eab6429d432d18106d42bfc37d4113816efb14e7888d00014b83dea72a
 DIST graphviz-2.34.0.tar.gz 23921350 SHA256 d94abca5745aa4c5808ab56cd3d0ec9ed14fb76a5a88d39e1f234fa84d22d764 SHA512 73dc8c25bc5747fda717d6d2162a8b37bf883544a13b487354a6000d528816a69a021f33cbeec0f6e718a7e9905ab2a04ee63f787ca7f79226055b2da21f4832 WHIRLPOOL 0fe3bf7420eccef9de51789ae9a8d8cab55b6fae7382e557604fb974e04eaa1e0610392dc7f6d5fa85a0b83a3cc955a4ff08d594bf8805c7f06625c7d9ac9007
@@ -17,23 +18,14 @@ EBUILD graphviz-2.26.3-r3.ebuild 5816 SHA256 88e45bb787f7883700f10fc8901087a65e6
 EBUILD graphviz-2.26.3-r4.ebuild 6122 SHA256 e82ec4786ed1ed2f0c8ae01108371b5c75194621a2f18b2d3441afa989fb7482 SHA512 e735c49b7d747a759225918c8790e8520c9305c042ac923f47fe69b9f429afe6b32d8bdebb4015003074be2755a6ac86c6c2c445c071fbc06ac2e12fd28c3aea WHIRLPOOL bb8a22a2169bc811cd8369ee6c7e2f74d13e89def4008e2271fdfd03cb91a548d01bbd2ab9d4c48f4b49ff49795ddfa91225022fd5b903d8e2b1750e792c442a
 EBUILD graphviz-2.28.0.ebuild 7570 SHA256 f54830c17e11a40aa67697ca064234bf1323e6d6b87333cb8b2555b30cdfc87b SHA512 10446d13f97301ff7bbf2b158961aa0af4153f5192979b74dfe564c3b178a037dd7a158071bc2731e10b1c7e84234c706017f0282f821139c80db7f43ef8a863 WHIRLPOOL a9d3f3ea88458676d2bd5e1a9f06d1fce3de2317d0a29b664316b1ebaf302e35f6cd68789cc3707a0bfe7cf99e9570db60b0227b6041c19fac293d146527d62b
 EBUILD graphviz-2.34.0.ebuild 7758 SHA256 7809ed007e350175b5d9339eae08a897b897fa5dbee8fc2f51bf256ed4ff8ead SHA512 53e08239802086055e3ea67d6f5fd03748ab6aae007ae9eee2e6834e39ac70333e892093c6968539e4a8e30aef0f5ef4d2133bc2b22ca8aeffabbf5be83373c2 WHIRLPOOL 6cd05f19207070cddf8b1f849705a2c51f6e3e600d6a7c3b9df05bb5297cc7d5448d7f432219b2dcdce88f85bc343f56a655804524fe1dfd790e1c1ca66a5de5
+EBUILD graphviz-2.36.0-r1.ebuild 7614 SHA256 4d7ba6ad6d2420b10f58e4ead9bc025af95b8da338cf8fa4551a9382e1cda37f SHA512 031389fefbd418053ea3389837dc8fb2d0bd0b612b824a24ee453bbceb354f289cd35e75543c38f488dc2809767b0c96771212b81fefe43d4999ad0c71f64111 WHIRLPOOL de49239c2c0ede333fd5112cf6e12095eb1c3fb38654e0894de544b03e78d7e153c4a14342c93455bceeb7eba22a93ae4e9f4a26f371f957a295a53d9c2ea996
 EBUILD graphviz-2.36.0.ebuild 7551 SHA256 c7ce5f48264d3720551ee2700fb77570e70114b69165f684b4a69d5acd350259 SHA512 41c26ea92b75b5493137f5ac90a7916d59799a9d5029c29b5b2a0d5df2e5aa5e68d76f3eee07927b1fbf6eb3bc6414e8672cae1417b11034359757fadfa9e5b8 WHIRLPOOL fb5664ceb805efdc3db0b7c1071d451b2d363a361a69da442e0f4a21119b645c79a4cc695bab7798ced27e25d6d534cd93d5ab0dfb5ddbce9f75c2b3f5325405
-MISC ChangeLog 42300 SHA256 93b9181538a6d43dff6ffb789283a8c91f3b42e04f5668ba6ea544924f50e574 SHA512 e9880e4219406b2cb5524fe95bddb4ca7bb7ba0a86913abc90fd9ebeaa738760e778553a67913592cb1e997388b6ba9a1c0a0c6f91565f2787f34a23c50d9263 WHIRLPOOL aa08865cabf3d9300b4b477e9944d4608b59fd1f2df0899707b48a0211d56e72f66491fd7280dfccb1619d220b5cfec6e118074742daec3a7aee18765a278470
+MISC ChangeLog 42532 SHA256 2385ae5f7c7749d87e1cf48aa230d9982ec5099bdb1c5a1074877ae29725a3bf SHA512 ad0611adf43c6ae32e35249616f8e4c8aace863251f31bc85a06e70a9b6dba566b6298c9797fc4c34e2f33bb6921d543bf141dd9fff6bc2bff5c6efa4ae983db WHIRLPOOL 54360cfa284e6202a80d74f32c710e06bc99475724f89f88b4daae361489c6dfdbbee9aa18bc676cb547ab1bf08a2f395bae69b7dd7640503ecc3d747a2be3ae
 MISC metadata.xml 2141 SHA256 6b3987caeb4fa056866bd10ccbc02e70c0b265a171444e79a580566e9f36bfc9 SHA512 e1d5704faecb2d5ba8011cc9eaaaf0a7efe5c92ab06765d14db78cf29933589bbc6b802e9b0661a9808cd145b314caf9f3b3f767dfbd1d4e243a7d8ae7fab4fc WHIRLPOOL 960b186445cee7e15d60eed6702adccec21b6da296085fad91316a5bb1acff29e8a656446af7bcc0add5966f402bac251253f2b26c5c13dedcc9879156a0dad5
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQIcBAEBCAAGBQJU4B7oAAoJEPGu1DbS6WIA4eEP/32X/pwdC3LQ1SlMRxGWQvIB
-nC7Ru7N6YpNTr0KkKITIf5jtbcPZWuqQ7F79VrBj9o5GIS8JGkiwE2Uzb8P+gdW9
-8dVRN9FV9EwT7oB8wFsWlYpf6SWYIbXmPJs4erwx25s7S0lGCqdGKceoTAm71+V3
-2O/dLAHUfIw0L16/Atq/PY4TKtsAZXdDm4NG2losBAx04egI/0Z8fDFZf7sLR6T9
-uMvA61InUT/Lk2YUz8UgeRV+lwlDazfRY0hr4rFl1xSbeM9fGcJbZC7qiWVrwqd/
-ohMY3PLsdOQ/1OACma5hAcxl5oc9WmK+DQrhkGCZB+R+h6y7eicVpj4U2jkBb7w7
-N12Sb+0xJ8mQk03XL5LnPbgMF4r6oN/5K/zx/Bf0TCeuLWI+9l/+e8Z+4iq9GX6D
-VpDPwINx2xmTETV5sBmfv3LWrVQcajc1Y0Pr6M3S+G5y+ctNKfyP8GRILSAqS4Ce
-tB0PHDrgIO/VPEsFZZM8wagA9EosltDqtCyC0Uxuj2OCQa9otTkmDSxys7fwPfpt
-DzQNXYDxOq8eAAiRqHsYw+NMonwegRiVZZOPN09b35A6qn5B30M42Sm1L9BekV8G
-rvodgRa7khhM8fM+HvO6h6fwEhTM0poZeedosUSb5R9adUK1Yn+h4SFNdFywG8ws
-Ze1Ya9F7CsxaCG5PDtnr
-=zFiq
+iEYEAREIAAYFAlT64RkACgkQcaHudmEf86pIPwCgiFR8AKFeVvE87Mt78QzRDpfK
+lVkAn2pRRr7DWURS5FGXpCC4kd/SHi9a
+=YU4+
 -----END PGP SIGNATURE-----
diff --git a/media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch b/media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch
new file mode 100644 (file)
index 0000000..b4e911d
--- /dev/null
@@ -0,0 +1,34 @@
+User reported a regression between 2.26 and 2.36
+when trying to .dot the following graph:
+
+    digraph g {
+        1 -> 2 [label="\\"]
+    }
+
+2.26 shows it as '\' while 2.36 fails as:
+    $ dot -Tpng a.dot -o a.png
+    Warning: 1.dot: syntax error in line 2 near ''
+
+Thanks to Ulya Trofimovich who found and bisected
+the problem down to this commit, which fixes problem
+only in git version.
+
+commit 386e47c14b3a8e83bdf3ec8772963213095a7294
+Author: Emden R. Gansner <erg@alum.mit.edu>
+Date:   Thu Jan 30 08:45:06 2014 -0500
+
+    Remove change made in d19b672a3c06f0ae95b1da38b63b068f71eb266f until we can
+    remember why this change was made.
+
+diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l
+index 0a31f0c..5bb30b7 100644
+--- a/lib/cgraph/scan.l
++++ b/lib/cgraph/scan.l
+@@ -199,6 +199,7 @@ ID         ({NAME}|{NUMBER})
+ ["]                                           BEGIN(qstring); beginstr();
+ <qstring>["]                  BEGIN(INITIAL); endstr(); return (T_qatom);
+ <qstring>[\\]["]              addstr ("\"");
++<qstring>[\\][\\]             addstr ("\\\\");
+ <qstring>[\\][\n]             line_num++; /* ignore escaped newlines */
+ <qstring>([^"\\]*|[\\])               addstr(yytext);
+ [<]                                           BEGIN(hstring); html_nest = 1; beginstr();
diff --git a/media-gfx/graphviz/graphviz-2.36.0-r1.ebuild b/media-gfx/graphviz/graphviz-2.36.0-r1.ebuild
new file mode 100644 (file)
index 0000000..f7b4cf1
--- /dev/null
@@ -0,0 +1,259 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.36.0-r1.ebuild,v 1.1 2015/03/07 11:29:49 slyfox Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1
+
+DESCRIPTION="Open Source Graph Visualization Software"
+HOMEPAGE="http://www.graphviz.org/"
+SRC_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/${P}.tar.gz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE="+cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt4 ruby svg static-libs tcl X elibc_FreeBSD"
+
+# Requires ksh
+RESTRICT="test"
+
+RDEPEND="
+       sys-libs/zlib
+       >=dev-libs/expat-2
+       >=dev-libs/glib-2.11.1
+       >=media-libs/fontconfig-2.3.95
+       >=media-libs/freetype-2.1.10
+       >=media-libs/gd-2.0.34[fontconfig,jpeg,png,truetype,zlib]
+       >=media-libs/libpng-1.2:0
+       !<=sci-chemistry/cluster-1.3.081231
+       sys-devel/libtool
+       virtual/jpeg:0
+       virtual/libiconv
+       X? (
+               x11-libs/libXaw
+               x11-libs/libX11
+               x11-libs/libXmu
+               x11-libs/libXpm
+               x11-libs/libXt
+       )
+       cairo?  (
+               >=x11-libs/pango-1.12
+               >=x11-libs/cairo-1.1.10[svg]
+       )
+       devil?  ( media-libs/devil[png,jpeg] )
+       postscript? ( app-text/ghostscript-gpl )
+       gtk?    ( x11-libs/gtk+:2 )
+       gts?    ( sci-libs/gts )
+       lasi?   ( media-libs/lasi )
+       pdf?    ( app-text/poppler )
+       perl?   ( dev-lang/perl:= )
+       python? ( ${PYTHON_DEPS} )
+       qt4?    (
+               dev-qt/qtcore:4
+               dev-qt/qtgui:4
+       )
+       ruby?   ( dev-lang/ruby )
+       svg?    ( gnome-base/librsvg )
+       tcl?    ( >=dev-lang/tcl-8.3 )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       sys-devel/flex
+       guile?  ( dev-scheme/guile dev-lang/swig )
+       java?   ( >=virtual/jdk-1.5 dev-lang/swig )
+       nls?    ( >=sys-devel/gettext-0.14.5 )
+       perl?   ( dev-lang/swig )
+       python? ( dev-lang/swig )
+       ruby?   ( dev-lang/swig )
+       tcl?    ( dev-lang/swig )"
+REQUIRED_USE="
+       !cairo? ( !X !gtk !postscript !lasi )
+       python? ( ${PYTHON_REQUIRED_USE} )"
+
+# Dependency description / Maintainer-Info:
+
+# Rendering is done via the following plugins (/plugins):
+# - core, dot_layout, neato_layout, gd , dot
+#   the ones which are always compiled in, depend on zlib, gd
+# - gtk
+#   Directly depends on gtk-2.
+#   needs 'pangocairo' enabled in graphviz configuration
+#   gtk-2 depends on pango, cairo and libX11 directly.
+# - gdk-pixbuf
+#   Disabled, GTK-1 junk.
+# - glitz
+#   Disabled, no particular reason
+#   needs 'pangocairo' enabled in graphviz configuration
+# - ming
+#   flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's
+#   incomplete.
+# - cairo/pango:
+#   Needs pango for text layout, uses cairo methods to draw stuff
+# - xlib:
+#   needs cairo+pango,
+#   can make use of gnomeui and inotify support (??? unsure),
+#   needs libXaw for UI
+#   UI also links directly against libX11, libXmu, and libXt
+#   and uses libXpm if available so we make sure it always is
+
+# There can be swig-generated bindings for the following languages (/tclpkg/gv):
+# - c-sharp (disabled)
+# - scheme (enabled via guile) ... no longer broken on ~x86
+# - io (disabled)
+# - java (enabled via java) *2
+# - lua (enabled via lua)
+# - ocaml (enabled via ocaml)
+# - perl (enabled via perl) *1
+# - php (enabled via php) *2
+# - python (enabled via python) *1
+# - ruby (enabled via ruby) *1
+# - tcl (enabled via tcl)
+# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
+# *2 = Those bindings don't build because the paths for the headers/libs aren't
+#      detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
+
+# There are several other tools in /tclpkg:
+# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
+# tkspline, tkstubs ; enabled with: --with-tk
+
+# And the commands (/cmd):
+# - dot, dotty, gvedit, gvpr, lefty, lneato, smyrna, tools/* :)
+#   sci-libs/gts can be used for some of these
+# - lefty:
+#   needs Xaw and X to build
+# - gvedit (via 'qt4'):
+#   based on ./configure it needs qt-core and qt-gui only
+# - smyrna : experimental opengl front-end (via 'smyrna')
+#   currently disabled -- it segfaults a lot
+#   needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut
+#   sci-libs/gts, x11-libs/gtk.  Also needs 'gtk','glade','glut','gts' and 'png'
+#   with flags enabled at configure time
+
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+
+       java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+       epatch \
+               "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \
+               "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch
+
+       epatch \
+               "${FILESDIR}"/${PN}-2.38-fix-backslashes.patch
+
+       # ToDo: Do the same thing for examples and/or
+       #       write a patch for a configuration-option
+       #       and send it to upstream
+       # note - the longer sed expression removes multi-line assignments that are extended via '\'
+       if ! use doc ; then
+               find . -iname Makefile.am \
+                       | xargs sed -i -e '/^\(html\|pdf\)_DATA.*\\[[:space:]]*$/{:m;N;s/\\\n//;tm;d}' \
+                               -e '/^\(html\|pdf\)_DATA/d' || die
+       fi
+
+       # This is an old version of libtool
+       # use the ./configure option to exclude its use, and
+       # delete the dir since we don't need to eautoreconf it
+       rm -rf libltdl
+
+       # no nls, no gettext, no iconv macro, so disable it
+       use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; }
+
+       # Nuke the dead symlinks for the bindings
+       sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
+
+       # replace the whitespace with tabs
+       sed -i -e 's:  :\t:g' doc/info/Makefile.am || die
+
+       # workaround for http://www.graphviz.org/mantisbt/view.php?id=1895
+       use elibc_FreeBSD && append-flags $(test-flags -fno-builtin-sincos)
+
+       use java && append-cppflags $(java-pkg_get-jni-cflags)
+
+       eautoreconf
+}
+
+src_configure() {
+       # libtool file collision, bug 276609
+       local myconf="--without-included-ltdl --disable-ltdl-install"
+
+       myconf="${myconf}
+               $(use_with cairo pangocairo)
+               $(use_with devil)
+               $(use_with gtk)
+               $(use_with gts)
+               $(use_with qt4)
+               $(use_with lasi)
+               $(use_with svg rsvg)
+               $(use_with X x)
+               $(use_with X xaw)
+               $(use_with X lefty)
+               --with-digcola
+               --with-fontconfig
+               --with-freetype2
+               --with-ipsepcola
+               --with-libgd
+               --with-sfdp
+               $(use_enable gdk-pixbuf)
+               --without-ming"
+
+       # new/experimental features, to be tested, disable for now
+       myconf="${myconf}
+               --with-cgraph
+               --without-glitz
+               --without-ipsepcola
+               --without-smyrna
+               --without-visio"
+
+       # Bindings:
+       myconf="${myconf}
+               $(use_enable guile)
+               --disable-io
+               $(use_enable java)
+               --disable-lua
+               --disable-ocaml
+               $(use_enable perl)
+               --disable-php
+               $(use_enable python)
+               --disable-r
+               $(use_enable ruby)
+               --disable-sharp
+               $(use_enable tcl)"
+
+       econf \
+               --enable-ltdl \
+               --disable-silent-rules \
+               $(use_enable static-libs static) \
+               ${myconf}
+}
+
+src_install() {
+       sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
+
+       emake DESTDIR="${D}" \
+               txtdir="${EPREFIX}"/usr/share/doc/${PF} \
+               htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+               htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \
+               pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \
+               pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
+               install
+
+       use examples || rm -rf "${ED}"/usr/share/graphviz/demo
+
+       use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
+
+       dodoc AUTHORS ChangeLog NEWS README
+
+       use python && python_optimize \
+               "${D}$(python_get_sitedir)" \
+               "${D}/usr/$(get_libdir)/graphviz/python"
+}
+
+pkg_postinst() {
+       # This actually works if --enable-ltdl is passed
+       # to configure
+       dot -c
+}