================================ xmltex:source=1.9-3 (previous: 1.9-2) cvc rdiff xmltex -1 /weasel.rpath.org@wgl:3-devel/1.9-3 ================================ 1.9-3 Filip Brcic (brcha@xxxxxxxxxxxx) Fri Jun 4 09:31:14 2010 xmltex 1.9 xmltex.recipe: changed Index: xmltex.recipe ==================================================================== contents(size sha1) inode(mtime) --- xmltex.recipe /weasel.rpath.org@wgl:3-devel/1.9-2 +++ xmltex.recipe /weasel.rpath.org@wgl:3-devel/1.9-3 @@ -1,35 +1,48 @@ # -# Copyright (c) 2009 Filip Brcic <brcha@xxxxxxx> +# Copyright (c) 2009-2010 Filip Brcic <brcha@xxxxxxx> # Distributed under the terms of the GNU General Public License v3 # -import uuid - -class Xmltex(CPackageRecipe): +loadSuperClass('latexpackage') +class Xmltex(LaTeXPackageRecipe): name = 'xmltex' version = '1.9' - buildRequires = [] + buildRequires = [ + 'texlive-latexrecommended:runtime', + ] shortDesc = 'A non validating namespace aware XML parser implemented in TeX' - longDesc = 'A non validating namespace aware XML parser implemented in TeX' + longDesc = """ +xmltex implements a non validating parser for documents matching the +W3C XML Namespaces Recommendation. The system may just be used to +parse the file (expanding entity references and normalising namespace +declarations) in which case it records a trace of the parse on the +terminal. Normally however the information from the parse is used to +trigger TeX typesetting code. Declarations (in TeX syntax) are +provided as part of xmltex to associate TeX code with the start and +end of each XML element, attributes, processing instructions, and with +unicode character data. +""" url = 'http://www.dcarlisle.demon.co.uk/xmltex/manual.html' licenses = [ 'LPPL-1.2' ] - categories = [ 'TeX' ] + categories = [ 'Development/TeX' ] - def setup(r): + texlive = '%(datadir)s/texmf-site' + + def unpack(r): r.addArchive('mirror://gentoo/') r.mainDir('%(name)s/base') r.addSource('format.%(name)s.cnf') - # Compile + def compile(r): r.Run('TEXMFHOME="$(pwd)" fmtutil --cnffile "format.%(name)s.cnf" --fmtdir "$(pwd)/texmf-var/web2c" --all') - # Install + def install(r): r.Install('texmf-var/*', '%(localstatedir)s/lib/texmf/') - r.Install('*.{xmt,cfg,xml,tex}', '%(datadir)s/texmf-site/tex/xmltex/base/') - r.Install('*.ini', '%(datadir)s/texmf-site/tex/xmltex/config/') + r.Install('*.{xmt,cfg,xml,tex}', '%(texmf)s/tex/xmltex/base/') + r.Install('*.ini', '%(texmf)s/tex/xmltex/config/') r.Create('install.sh', mode=0755, macros=True, contents=""" #!/bin/sh @@ -74,5 +87,4 @@ r.Doc('*.html', dir='html') r.Doc('readme.txt') - r.Create('%(sysconfdir)s/texmf/.%(name)s-%(version)s', contents=str(uuid.uuid4())) - r.TagSpec('texmf-update', '%(sysconfdir)s/texmf/.%(name)s-%(version)s') + r.addRuntimeRequirement('texlive-latexrecommended:runtime') Committed by: brcha