--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -11,1 +11,2 @@ -SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" --- +SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz + lua? ( http://peter.affenbande.org/gnuplot/gnuplot_lua_terminal.tgz )" @@ -13,1 +14,2 @@ -LICENSE="gnuplot" --- +LICENSE="gnuploti + lua? ( GPL-2 )" @@ -16,1 +18,1 @@ -IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwindows X xemacs" --- +IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwindows X xemacs lua" @@ -28,0 +30,2 @@ + lua? ( >=dev-lang/lua-5.1 + ( || ( dev-texlive/texlive-xetex app-text/xetex ) ) ) @@ -70,0 +74,5 @@ + if use lua ; then + cp "${WORKDIR}/gnuplot_lua_terminal/lua.trm" "${S}/term/" + epatch "${FILESDIR}"/${P}-lua.patch + fi + @@ -177,0 +186,10 @@ + + if use lua ; then + cd "${WORKDIR}/gnuplot_lua_terminal" + lua gnuplot.lua style + dodir /usr/share/texmf-site/tex/latex/gnuplot + insinto /usr/share/texmf-site/tex/latex/gnuplot + doins gnuplot-lua-tikz.sty + insinto /usr/libexec/gnuplot/4.2/ + doins gnuplot.lua + fi