Re: NEW: texproc/p5-LaTeXML
On Tue, May 02, 2017 at 05:58:38PM +0300, Paul Irofti wrote: > Here is an updated tarbal with test depends and texmf rehashing. > Changes also available on github. > > Thanks for the reviews thus far! OK to import?
Re: NEW: texproc/p5-LaTeXML
Here is an updated tarbal with test depends and texmf rehashing. Changes also available on github. Thanks for the reviews thus far! p5-LaTeXML.tgz Description: application/tar-gz
Re: NEW: texproc/p5-LaTeXML
On Tue, May 02, 2017 at 01:40:06PM +0300, Paul Irofti wrote: Nonetheless, should I add that to PLIST? Yep, you want: @exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 @unexec-delete %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 And you will need to RUN_DEPEND texlive. Thanks! -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
Re: NEW: texproc/p5-LaTeXML
On Mon, May 01, 2017 at 11:46:24AM +0100, Stuart Henderson wrote: > On 2017/05/01 12:44, Paul Irofti wrote: > > > Since you install into texmf-local, you need to re-hash this folder upon > > > package installation and removal. Look at other ports which install into > > > texmf-local for examples. > > > > I was unable to locate an example performing install/uninstall > > rehashing. Can you please be more specific and point me at an example > > port? > > So many methods to choose from :-) > > @exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 > @unexec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 > > @exec TEXMFMAIN=%D/share/texmf %D/bin/mktexlsr > @unexec TEXMFMAIN=%D/share/texmf %D/bin/mktexlsr > > @exec %D/bin/mktexlsr > @unexec %D/bin/mktexlsr > > @exec %D/bin/mktexlsr > /dev/null 2>&1 > @unexec-delete %D/bin/mktexlsr > /dev/null 2>&1 > > @exec mktexlsr > /dev/null 2>&1 > > @exec mktexlsr > /dev/null 2>&1 > @unexec-delete mktexlsr > /dev/null 2>&1 > > Or nothing, in the case of education/verbiste. Thanks! I was grepping the makefiles instead of the plists :(
Re: NEW: texproc/p5-LaTeXML
On Mon, May 01, 2017 at 03:00:49PM +0100, Edd Barrett wrote: > On Mon, May 01, 2017 at 11:46:24AM +0100, Stuart Henderson wrote: > > So many methods to choose from :-) > > Assuming @exec is run upon a package update, I think Paul would want: > > @exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 > @unexec-delete %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 > > Paul, maybe the reason your files got hashed was because you installed a > texlive package after installing your package, which would cause all the > trees to be rehashed? I never did that thanks to your LaTeX packages that always had everything I needed! :) So it must be something else... Nonetheless, should I add that to PLIST?
Re: NEW: texproc/p5-LaTeXML
On Mon, May 01, 2017 at 11:46:24AM +0100, Stuart Henderson wrote: > So many methods to choose from :-) Assuming @exec is run upon a package update, I think Paul would want: @exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 @unexec-delete %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 Paul, maybe the reason your files got hashed was because you installed a texlive package after installing your package, which would cause all the trees to be rehashed? Stuart, diff coming to unify all these @exec/@unexec bits. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
Re: NEW: texproc/p5-LaTeXML
On 2017/05/01 12:44, Paul Irofti wrote: > > Since you install into texmf-local, you need to re-hash this folder upon > > package installation and removal. Look at other ports which install into > > texmf-local for examples. > > I was unable to locate an example performing install/uninstall > rehashing. Can you please be more specific and point me at an example > port? So many methods to choose from :-) @exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 @unexec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1 @exec TEXMFMAIN=%D/share/texmf %D/bin/mktexlsr @unexec TEXMFMAIN=%D/share/texmf %D/bin/mktexlsr @exec %D/bin/mktexlsr @unexec %D/bin/mktexlsr @exec %D/bin/mktexlsr > /dev/null 2>&1 @unexec-delete %D/bin/mktexlsr > /dev/null 2>&1 @exec mktexlsr > /dev/null 2>&1 @exec mktexlsr > /dev/null 2>&1 @unexec-delete mktexlsr > /dev/null 2>&1 Or nothing, in the case of education/verbiste.
Re: NEW: texproc/p5-LaTeXML
> Since you install into texmf-local, you need to re-hash this folder upon > package installation and removal. Look at other ports which install into > texmf-local for examples. I was unable to locate an example performing install/uninstall rehashing. Can you please be more specific and point me at an example port? > To test if it worked, `kpsewhich latexml.sty` should return a correct > path whilst your package is intalled. This works with the current port $ kpsewhich latexml.sty /usr/local/share/texmf-local/tex/latex/latexml/latexml.sty
Re: NEW: texproc/p5-LaTeXML
I fixed the tests with a missing dependency first signaled by benoit@. I will look into the other bit and come back to you. Thanks for the review Edd! De la: Edd Barrett Trimis: sâmbătă, 29 aprilie 2017 18:50 Către: Paul Irofti Cc: ports@openbsd.org Subiect: Re: NEW: texproc/p5-LaTeXML Hi Paul, On Fri, Apr 28, 2017 at 12:42:34PM +0300, Paul Irofti wrote: > Here is a new port for generating HTML/XML output from TeX files. Since you install into texmf-local, you need to re-hash this folder upon package installation and removal. Look at other ports which install into texmf-local for examples. To test if it worked, `kpsewhich latexml.sty` should return a correct path whilst your package is intalled. Also, a lot of tests seem to be failing. Can you reproduce that? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
Re: NEW: texproc/p5-LaTeXML
Hi Paul, On Fri, Apr 28, 2017 at 12:42:34PM +0300, Paul Irofti wrote: > Here is a new port for generating HTML/XML output from TeX files. Since you install into texmf-local, you need to re-hash this folder upon package installation and removal. Look at other ports which install into texmf-local for examples. To test if it worked, `kpsewhich latexml.sty` should return a correct path whilst your package is intalled. Also, a lot of tests seem to be failing. Can you reproduce that? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
NEW: texproc/p5-LaTeXML
Hi, Here is a new port for generating HTML/XML output from TeX files. %--- In brief, latexml is a program, written in Perl, that attempts to faithfully mimic TeX’s behavior, but produces XML instead of dvi. The document model of the target XML makes explicit the model implied by LaTeX. The processing and model are both extensible; you can define the mapping between TeX constructs and the XML fragments to be created. A postprocessor, latexmlpost converts this XML into other formats such as HTML or XHTML, with options to convert the math into MathML (currently only presentation) or images. %--- I use it to generate epub files together with calibre: latexml --dest=${NAME}.xml ${NAME}.tex \ --includestyles --preload=LaTeX.pool latexmlpost -dest=${NAME}.html ${NAME}.xml ebook-convert ${NAME}.html ${NAME}.epub \ --language en --no-default-epub-cover Also available on github for review. OK? Thanks, Paul p5-LaTeXML.tgz Description: application/tar-gz