--- gnuplot-4.6.2-r1.ebuild.orig 2013-04-23 01:46:26.000000000 +0200 +++ gnuplot-4.6.2-r1.ebuild 2013-04-23 02:36:56.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-${PV}.tar.xz" + SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" fi LICENSE="gnuplot GPL-2 bitmap? ( free-noncomm )" @@ -78,10 +77,10 @@ TEXMF="${EPREFIX}/usr/share/texmf-site" src_prepare() { - epatch "${FILESDIR}/${PN}-4.6.1-eldoc.patch" - epatch "${FILESDIR}/${PN}-4.6.2-gdversion.patch" #462996 - - if [[ -z ${PV%%*9999} ]]; then + if [[ -n "${PV%%*9999}" ]]; then + epatch "${FILESDIR}/${PN}-4.6.1-eldoc.patch" + epatch "${FILESDIR}/${PN}-4.6.2-gdversion.patch" #462996 + else local dir for dir in config demo m4 term tutorial; do emake -C "$dir" -f Makefile.am.in Makefile.am @@ -89,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