#! @PYTHON@ # -*- mode: python -*- import glob import os import sys import warnings def __renpy_files(directory): for pattern in ['*.rpa', '*.rpyc', '*.rpy']: for file in glob.iglob(pattern, root_dir=directory): yield file def path_to_gamedir(basedir, name): candidates = [name, 'game', 'data', 'launcher/game'] if __renpy_files(basedir): return basedir for candidate in candidates: gamedir = os.path.join(basedir, candidate) if __renpy_files(gamedir): return gamedir return basedir def path_to_common(renpy_base): return renpy_base + "/common" def path_to_saves(gamedir, save_directory=None): import renpy if save_directory is None: save_directory = renpy.config.save_directory save_directory = renpy.exports.fsencode(save_directory) if not save_directory: return gamedir + "/saves" prefix = os.environ.get("RENPY_PATH_TO_SAVES", os.path.expanduser("~/.renpy")) return os.path.join(prefix, save_directory) def path_to_logdir(basedir): return basedir def predefined_searchpath(commondir): import renpy # The default gamedir, in private. searchpath = [ renpy.config.gamedir ] if env_searchpath := os.environ.get("RENPY_SEARCHPATH"): searchpath.extend(env_searchpath.split("::")) if commondir and os.path.isdir(commondir): searchpath.append(commondir) return searchpath def main(): try: import renpy.bootstrap import renpy.arguments except ImportError: print("""Could not import renpy.bootstrap. Please ensure you decompressed Ren'py correctly, preserving the directory structure.""", file=sys.stderr) raise args = renpy.arguments.bootstrap() if not args.basedir: print("""This Ren'py requires a basedir to launch. The basedir is the directory, in which .rpy source files or compiled .rpyc files live -- usually the 'game' subdirectory of a game packaged by Ren'py. If you want the Ren'py launcher, use \"renpy-launcher\" instead.""", file=sys.stderr) sys.exit() renpy.bootstrap.bootstrap("@RENPY_BASE@") if __name__ == "__main__": main() '10' name='q' value=''/>
path: root/gnu/packages/patches/dblatex-inkscape-1.0.patch
AgeCommit message (Collapse)Author
2024-08-31gnu: dblatex: Fix missing texlive binaries and fig2dev.Bruno Victal
The binaries for dblatex aren't provided by texlive-updmap.cfg but by texlive-bin. * gnu/packages/patches/dblatex-inkscape-1.0.patch: New file. * gnu/local.mk: Register it. * gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch. [arguments]<#:tests?>: Enable tests. <#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add 'check-wrap phase. [native-inputs]: Add docbook-mathml-1.0. [inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape. Within texlive-updmap.cfg add previously missing: texlive-amsmath, texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset, texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic, texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr, texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg, texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr, texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions, texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin, texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape, texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol, texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and texlive-zapfding. Add fig2dev. (dblatex/stable)[inputs]: Replace inkscape with inkscape/stable. Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81