--- gnuplot-4.6.3.ebuild.orig 2013-04-23 02:26:42.000000000 +0200 +++ gnuplot-4.6.3.ebuild 2013-04-23 02:32:07.000000000 +0200 @@ -20,8 +20,7 @@ SRC_URI="" else MY_P="${P/_/.}" - SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz - mirror://gentoo/${PN}.info-4.6.2.tar.xz" + SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" fi LICENSE="gnuplot GPL-2 bitmap? ( free-noncomm )" @@ -78,11 +77,9 @@ TEXMF="${EPREFIX}/usr/share/texmf-site" src_prepare() { - if [[ -n ${PV%%*9999} ]]; then + if [[ -n "${PV%%*9999}" ]]; then epatch "${FILESDIR}/${PN}-4.6.3-eldoc.patch" epatch "${FILESDIR}/${PN}-4.6.2-gdversion.patch" #462996 - mv "${WORKDIR}"/gnuplot-4.6.2/docs/gnuplot.info docs || die - touch docs/gnuplot.info || die #464092#c12 and #466758 else local dir for dir in config demo m4 term tutorial; do @@ -91,6 +88,13 @@ eautoreconf fi + # fix #464092 + if use doc; then + sed -e '/^@uref/ s/@ref{\([^}]*\)}/\1/' \ + -e '/^@node aed767/,$ s/^@sub/@/' \ + -i docs/gnuplot.texi + fi + # Add special version identification as required by provision 2 # of the gnuplot license sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die