================================ latexpackage:source=20100601-1 (previous: 1-5) cvc rdiff latexpackage -1 /weasel.rpath.org@wgl:3-devel/20100601-1 ================================ 20100601-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun 1 14:10:11 2010 latex package recipe latexpackage.recipe: changed Index: latexpackage.recipe ==================================================================== contents(size sha1) inode(mtime) --- latexpackage.recipe /weasel.rpath.org@wgl:3-devel/1-5 +++ latexpackage.recipe /weasel.rpath.org@wgl:3-devel/20100601-1 @@ -1,23 +1,26 @@ # -# 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 +import datetime class LaTeXPackageRecipe(CPackageRecipe): name = 'latexpackage' - version = '1' + version = datetime.date.today().strftime("%Y%m%d") buildRequires = [ - 'texlive-latex:runtime', 'texinfo:runtime', + 'texlive-core:devel', 'texlive-latex:runtime', + 'texinfo:runtime', ] abstractBaseClass = True - texmf = '%(datadir)s/texmf-site' + texmf = '%(datadir)s/texmf' supplier = 'misc' # for fonts install_what = 'all' + + docs = [] def setup(r): r.macros.texmf = r.texmf @@ -135,10 +138,26 @@ r.Run('./install.sh') r.Remove('%(bindir)s/install.sh') # install.sh is installed there by mistake... + for d in r.docs: + r.Doc(d) + def setupPostInstall(r): - # Activate texmf-update after install - 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') + + postScript = """#!/bin/sh + +texconfig rehash +""" + r.ScriptPostInstall(contents=postScript) + r.ScriptPostUpdate(contents=postScript) + r.ScriptPostErase(contents=postScript) def policy(r): pass + + def addRuntimeRequirement(r, what): + for d in [ '%(datadir)s/texmf/', + '%(datadir)s/texmf-dist/', + '%(datadir)s/tlpkg/', + ]: + r.Requires(what, d) Committed by: brcha