--- /usr/portage/media-gfx/graphviz/graphviz-1.7.7.ebuild Fri Oct 19 12:03:38 2001 +++ /usr/portage/media-gfx/graphviz/graphviz-1.7.7.ebuild Thu Jan 3 14:59:57 2002 @@ -8,11 +8,44 @@ SRC_URI="http://www.research.att.com/sw/tools/graphviz/dist/$P.tgz" HOMEPAGE="http://www.research.att.com/sw/tools/graphviz/" +#Can use freetype-1.3 or 2.0, but not both +DEPEND=">=sys-libs/zlib-1.1.3 + >=media-libs/libpng-1.0.6 + >=media-libs/jpeg-6b + media-libs/freetype + tcltk? ( =dev-lang/tcltk-8.3* )" +# tcltk? ( =dev-tcltk/tk-8.3* )" If my tcltk fixes are accepted. + src_compile() { - ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die + + local myconf + #if no tcltk, this will generate configure warnings, but will + #compile without tcltk support + use tcltk || myconf="$myconf --without-tcl --without-tk" + + #They seem to have forgot configure when packaging 1.7.15 + ./autogen.sh --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --prefix=/usr \ + --host=${CHOST} \ + ${myconf} || die + make || die + } src_install () { - make DESTDIR=${D} install || die + + make DESTDIR=${D} install || die + + dodoc AUTHORS ChangeLog FAQ.txt INSTALL MINTERMS.txt \ + NEWS README + + insinto /usr/share/doc/${P}/html + doins LICENSE.html doc/*.html + + + insinto /usr/share/doc/${P}/pdf + doins doc/*.pdf + }