https://bugs.gentoo.org/show_bug.cgi?id=384875
http://thread.gmane.org/gmane.comp.tex.luatex/2630
---- luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
-+++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc
++++ b/texk/web2c/luatexdir/lua/lepdflib.cc
@@ -89,7 +89,6 @@ new_poppler_userdata(AnnotBorder);
new_poppler_userdata(Annots);
new_poppler_userdata(Array);
diff -ruN luatex-beta-0.70.1.gentoo/source/texk/web2c/luatexdir/lua/lepdflib.cc
luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
---- luatex-beta-0.70.1.gentoo/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:31:22.000000000 +0100
-+++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:47:24.000000000 +0100
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:31:22.000000000 +0100
++++ b/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:47:24.000000000 +0100
@@ -1,7 +1,7 @@
/* lepdflib.cc
diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h
---- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h 2011-05-19 07:38:37.000000000 +0200
-+++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h 2014-10-11 12:17:00.028331243 +0200
+--- a/texk/web2c/luatexdir/image/epdf.h 2011-05-19 07:38:37.000000000 +0200
++++ b/texk/web2c/luatexdir/image/epdf.h 2014-10-11 12:17:00.028331243 +0200
@@ -33,6 +33,7 @@
# include <sys/stat.h>
# include <dirent.h>
# include <goo/gmem.h>
# include <goo/gfile.h>
diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc
---- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:24:52.509357663 +0200
-+++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:42:03.665415321 +0200
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:24:52.509357663 +0200
++++ b/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:42:03.665415321 +0200
@@ -48,23 +48,24 @@
//**********************************************************************
diff -ruN luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/image/epdf.h luatex-beta-0.76.0/source/texk/web2c/luatexdir/image/epdf.h
---- luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/image/epdf.h 2013-04-05 12:58:37.000000000 +0200
-+++ luatex-beta-0.76.0/source/texk/web2c/luatexdir/image/epdf.h 2014-05-01 01:39:39.838462783 +0200
+--- a/texk/web2c/luatexdir/image/epdf.h 2013-04-05 12:58:37.000000000 +0200
++++ b/texk/web2c/luatexdir/image/epdf.h 2014-05-01 01:39:39.838462783 +0200
@@ -37,6 +37,7 @@
# include <sys/stat.h>
# include <dirent.h>
# include <goo/gmem.h>
# include <goo/gfile.h>
diff -ruN luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc luatex-beta-0.76.0/source/texk/web2c/luatexdir/lua/lepdflib.cc
---- luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-04-05 12:58:37.000000000 +0200
-+++ luatex-beta-0.76.0/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-05-01 01:40:15.698461067 +0200
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc 2013-04-05 12:58:37.000000000 +0200
++++ b/texk/web2c/luatexdir/lua/lepdflib.cc 2014-05-01 01:40:15.698461067 +0200
@@ -48,25 +48,26 @@
//**********************************************************************
https://bugs.gentoo.org/show_bug.cgi?id=310487
http://www.ntg.nl/pipermail/dev-luatex/2012-July/004534.html
---- luatex-beta-0.70.1-orig/source/texk/web2c/luatexdir/luazlib/lzlib.c
-+++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/luazlib/lzlib.c
+--- a/texk/web2c/luatexdir/luazlib/lzlib.c
++++ b/texk/web2c/luatexdir/luazlib/lzlib.c
@@ -549,14 +549,6 @@
/* ====================================================================== */
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit libtool eutils flag-o-matic texlive-common
+inherit flag-o-matic libtool texlive-common
DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language"
HOMEPAGE="http://www.luatex.org/"
RDEPEND="dev-libs/zziplib
>=media-libs/libpng-1.4
app-text/poppler:=[xpdf-headers(+)]
- sys-libs/zlib
+ sys-libs/zlib:*
>=dev-libs/kpathsea-6.0.1_p20110627"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${PN}-beta-${PV}/source"
PRELIBS="libs/obsdcompat"
#kpathsea_extraconf="--disable-shared --disable-largefile"
src_prepare() {
- has_version '>=app-text/poppler-0.18.0:0' && epatch "${FILESDIR}/poppler018.patch"
- has_version '>=app-text/poppler-0.20.0:0' && epatch "${FILESDIR}/poppler020.patch"
- has_version '>=app-text/poppler-0.22.0:0' && epatch "${FILESDIR}/poppler022.patch"
- has_version '>=app-text/poppler-0.26.0:0' && epatch "${FILESDIR}/poppler026-backport.patch"
+ default
+ has_version '>=app-text/poppler-0.18.0:0' && eapply "${FILESDIR}/poppler018.patch"
+ has_version '>=app-text/poppler-0.20.0:0' && eapply "${FILESDIR}/poppler020.patch"
+ has_version '>=app-text/poppler-0.22.0:0' && eapply "${FILESDIR}/poppler022.patch"
+ has_version '>=app-text/poppler-0.26.0:0' && eapply "${FILESDIR}/poppler026-backport.patch"
has_version '>=app-text/poppler-0.57.0:0' && append-cxxflags -std=c++11 # bug 627538
- epatch "${FILESDIR}/kpathsea2012.patch" \
+ eapply "${FILESDIR}/kpathsea2012.patch" \
"${FILESDIR}/remove-zlib-version-check.patch"
S="${S}/build-aux" elibtoolize --shallow
}
myconf=""
#has_version '>=app-text/texlive-core-2009' && myconf="--with-system-kpathsea"
- cd "${S}/texk/web2c"
+ cd "${S}/texk/web2c" || die
econf \
--disable-cxx-runtime-hack \
--disable-all-pkgs \
local j=$(basename $i)_extraconf
local myconf
eval myconf=\${$j}
- cd "${S}/${i}"
+ cd "${S}/${i}" || die
econf ${myconf}
done
}
src_compile() {
texk/web2c/luatexdir/getluatexsvnversion.sh || die
for i in ${PRELIBS} ; do
- cd "${S}/${i}"
- emake || die "failed to build ${i}"
+ cd "${S}/${i}" || die
+ emake
done
- cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
- emake luatex || die "failed to build luatex"
+ cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c" || die
+ emake luatex
}
src_install() {
- cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
+ cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c" || die
emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
- install-exec-am || die
+ install-exec-am
- dodoc "${WORKDIR}/${PN}-beta-${PV}/README" || die
- doman "${WORKDIR}/texmf/doc/man/man1/"*.1 || die
+ dodoc "${WORKDIR}/${PN}-beta-${PV}/README"
+ doman "${WORKDIR}/texmf/doc/man/man1/"*.1
if use doc ; then
- dodoc "${WORKDIR}/${PN}-beta-${PV}/manual/"*.pdf || die
- dodoc "${WORKDIR}/texmf/doc/man/man1/"*.pdf || die
+ dodoc "${WORKDIR}/${PN}-beta-${PV}/manual/"*.pdf
+ dodoc "${WORKDIR}/texmf/doc/man/man1/"*.pdf
fi
}
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit libtool eutils flag-o-matic texlive-common
+inherit libtool flag-o-matic texlive-common
MY_P=${PN}-beta-${PV}
DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language"
>=x11-libs/cairo-1.12
>x11-libs/pixman-0.18
app-text/poppler:=[xpdf-headers(+)]
- sys-libs/zlib
+ sys-libs/zlib:*
>=dev-libs/kpathsea-6.1.0_p20120701"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${MY_P}/source"
src_prepare() {
- has_version '>=app-text/poppler-0.26.0:0' && epatch "${FILESDIR}/poppler026.patch"
+ default
+ has_version '>=app-text/poppler-0.26.0:0' && eapply "${FILESDIR}/poppler026.patch"
has_version '>=app-text/poppler-0.57.0:0' && append-cxxflags -std=c++11 # bug 627538
- epatch "${FILESDIR}/remove-zlib-version-check.patch" \
+ eapply "${FILESDIR}/remove-zlib-version-check.patch" \
"${FILESDIR}/includes.patch"
S="${S}/build-aux" elibtoolize --shallow
}
# So we set LC_ALL to C in order to avoid problems.
export LC_ALL=C
- cd "${S}/texk/web2c"
+ cd "${S}/texk/web2c" || die
econf \
--disable-cxx-runtime-hack \
--disable-all-pkgs \
src_compile() {
texk/web2c/luatexdir/getluatexsvnversion.sh || die
- cd "${WORKDIR}/${MY_P}/source/texk/web2c"
+ cd "${WORKDIR}/${MY_P}/source/texk/web2c" || die
emake luatex
}
src_install() {
- cd "${WORKDIR}/${MY_P}/source/texk/web2c"
+ cd "${WORKDIR}/${MY_P}/source/texk/web2c" || die
emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
install-exec-am
dodoc "${WORKDIR}/${MY_P}/README" luatexdir/NEWS
- cp source/texk/web2c/man
- cp man/luatex.man "${T}/luatex.1"
+ cp source/texk/web2c/man || die
+ cp man/luatex.man "${T}/luatex.1" || die
doman "${T}/luatex.1"
use doc && dodoc "${WORKDIR}/${MY_P}/manual/"*.pdf
}