diff options
Diffstat (limited to 'print/tex-luatex/Makefile')
-rw-r--r-- | print/tex-luatex/Makefile | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/print/tex-luatex/Makefile b/print/tex-luatex/Makefile index 27340e5280dd..1cdef7513f05 100644 --- a/print/tex-luatex/Makefile +++ b/print/tex-luatex/Makefile @@ -1,10 +1,9 @@ PORTNAME= luatex -PORTVERSION= 0.80.0 -PORTREVISION= 24 +PORTVERSION= 1.12.0 CATEGORIES= print MASTER_SITES= ftp://tug.org/historic/systems/texlive/2015/ PKGNAMEPREFIX= tex- -DISTNAME= texlive-${DISTVERSION_TEXLIVE_SOURCE}-source +DISTNAME= texlive-${TEXLIVE_VERSION}-source DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${DISTNAME_TEXMF}${EXTRACT_SUFX} DIST_SUBDIR= TeX @@ -17,7 +16,7 @@ LIB_DEPENDS= libpng.so:graphics/png \ libmpfr.so:math/mpfr \ libzzip.so:devel/zziplib -USES= gnome libtool pkgconfig tar:xz xorg +USES= gnome libtool pkgconfig shebangfix tar:xz xorg USE_TEX= kpathsea web2c texmf formats texlua texluajit fmtutil USE_XORG= pixman USE_GNOME= cairo @@ -26,16 +25,14 @@ TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR} EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,} EXTRACT_FILES= build-aux \ libs/xpdf \ - libs/lua52 \ + libs/lua53 \ libs/luajit \ - libs/poppler \ + libs/pplib \ texk/web2c EXTRACT_AFTER_ARGS_TEXMF=| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \ --strip-components 1 --no-same-permission --no-same-owner \ ${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,} -DISTVERSION_TEXLIVE_SOURCE= 20150521 -DISTVERSION_TEXLIVE_TEXMF= 20150523 -DISTNAME_TEXMF= texlive-${DISTVERSION_TEXLIVE_TEXMF}-texmf +DISTNAME_TEXMF= texlive-${TEXLIVE_VERSION}-texmf EXTRACT_FILES_TEXMF= \ texmf-dist/doc/lualatex \ texmf-dist/doc/luatex \ @@ -43,28 +40,22 @@ EXTRACT_FILES_TEXMF= \ texmf-dist/source/luatex \ texmf-dist/source/lualatex \ texmf-dist/fonts/map/luatex \ - texmf-dist/tex/plain/config/dviluatex.ini \ texmf-dist/tex/luatex \ - texmf-dist/tex/plain/config/luatex.ini \ texmf-dist/tex/generic/config/luatex-unicode-letters.tex \ texmf-dist/tex/generic/config/luatexiniconfig.tex \ texmf-dist/tex/generic/context/luatex \ - texmf-dist/tex/latex/latexconfig/dvilualatex.ini \ - texmf-dist/tex/latex/latexconfig/lualatex-reset-codes.tex \ texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex \ - texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex \ texmf-dist/tex/latex/latexconfig/lualatexiniconfig.tex \ - texmf-dist/tex/latex/latexconfig/lualatex.ini \ texmf-dist/tex/lualatex WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c GNU_CONFIGURE= yes EXCLUDE_ENGINES=aleph etex pdftex mf mf-nowin \ ptex eptex uptex euptex \ - otangle mp pmp upmp web2c web-progs xetex tex synctex + otangle mp pmp upmp web2c web-progs xetex tex synctex \ + mflua mfluajit luahbtex luajithbtex CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \ --enable-luatex \ --enable-luajittex \ - --without-system-poppler \ --with-system-zlib \ --with-system-zziplib .for L in cairo gmp kpathsea libpng mpfr pixman ptexenc @@ -80,18 +71,31 @@ TEX_FORMATS= luatex # buildenv and dumpenv in Makefile uses hard-coded TEXMFCNF. post-extract: + @${FIND} ${WRKSRC} -name '*.orig' -delete cd ${WRKSRC}/.. && \ ${LN} -s -f ${LOCALBASE}/${TEXMFDISTDIR}/web2c kpathsea pre-configure: - for D in libs/xpdf libs/poppler; do \ + for D in libs/xpdf libs/pplib; do \ cd ${WRKDIR}/${DISTNAME}/$$D && \ ${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \ ${CONFIGURE_ARGS}; \ done + cd ${WRKDIR}/${DISTNAME}/libs/pplib && \ + ${MAKE} pre-install: - ${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${DISTVERSION_TEXLIVE_TEXMF}-texmf${EXTRACT_SUFX} \ + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf${EXTRACT_SUFX} \ ${EXTRACT_AFTER_ARGS_TEXMF} + ${REINPLACE_CMD} -i '' -e 's|/bin/bash|${PREFIX}/bin/bash|' \ + ${STAGEDIR}${PREFIX}/share/texmf-dist/doc/lualatex/wallcalendar/doc/examples/diff-cal.sh + +post-install: + ${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -not -type d | ${SORT} | \ + ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} + ${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -type d -empty | ${SORT} -r | \ + ${SED} -e 's#^${STAGEDIR}${PREFIX}/#@dir #' >> ${TMPPLIST} + ${ECHO_CMD} "share/texmf-var/web2c/luatex/lollipop.log" >> ${TMPPLIST} + ${ECHO_CMD} "share/texmf-var/web2c/luatex/lollipop.fmt" >> ${TMPPLIST} .include <bsd.port.mk> |