sphinx-pre-install (5d88953c32a64737a7879d9ff1263dc622f9aee0) sphinx-pre-install (8e7d5d15e73fde2b22649783d4f0fa4495a1582f)
1#!/usr/bin/perl
2use strict;
3
4# Copyright (c) 2017 Mauro Carvalho Chehab <mchehab@kernel.org>
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2

--- 244 unchanged lines hidden (view full) ---

253 "python-sphinx" => "python3-sphinx",
254 "sphinx_rtd_theme" => "python3-sphinx-rtd-theme",
255 "virtualenv" => "virtualenv",
256 "pip" => "python3-pip",
257 "dot" => "graphviz",
258 "convert" => "imagemagick",
259 "Pod::Usage" => "perl-modules",
260 "xelatex" => "texlive-xetex",
1#!/usr/bin/perl
2use strict;
3
4# Copyright (c) 2017 Mauro Carvalho Chehab <mchehab@kernel.org>
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2

--- 244 unchanged lines hidden (view full) ---

253 "python-sphinx" => "python3-sphinx",
254 "sphinx_rtd_theme" => "python3-sphinx-rtd-theme",
255 "virtualenv" => "virtualenv",
256 "pip" => "python3-pip",
257 "dot" => "graphviz",
258 "convert" => "imagemagick",
259 "Pod::Usage" => "perl-modules",
260 "xelatex" => "texlive-xetex",
261 "rsvg-convert" => "librsvg2-bin",
261 );
262
263 if ($pdf) {
264 check_missing_file("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
265 "fonts-dejavu", 1);
266 }
267
268 check_program("dvipng", 1) if ($pdf);

--- 9 unchanged lines hidden (view full) ---

278 "python-sphinx" => "python3-sphinx",
279 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
280 "virtualenv" => "python3-virtualenv",
281 "pip" => "python3-pip",
282 "dot" => "graphviz",
283 "convert" => "ImageMagick",
284 "Pod::Usage" => "perl-Pod-Usage",
285 "xelatex" => "texlive-xetex-bin",
262 );
263
264 if ($pdf) {
265 check_missing_file("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
266 "fonts-dejavu", 1);
267 }
268
269 check_program("dvipng", 1) if ($pdf);

--- 9 unchanged lines hidden (view full) ---

279 "python-sphinx" => "python3-sphinx",
280 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
281 "virtualenv" => "python3-virtualenv",
282 "pip" => "python3-pip",
283 "dot" => "graphviz",
284 "convert" => "ImageMagick",
285 "Pod::Usage" => "perl-Pod-Usage",
286 "xelatex" => "texlive-xetex-bin",
287 "rsvg-convert" => "librsvg2-tools",
286 );
287
288 my @fedora26_opt_pkgs = (
289 "graphviz-gd", # Fedora 26: needed for PDF support
290 );
291
292 my @fedora_tex_pkgs = (
293 "texlive-collection-fontsrecommended",

--- 22 unchanged lines hidden (view full) ---

316 "python-sphinx" => "python3-sphinx",
317 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
318 "virtualenv" => "python3-virtualenv",
319 "pip" => "python3-pip",
320 "dot" => "graphviz",
321 "convert" => "ImageMagick",
322 "Pod::Usage" => "perl-Pod-Usage",
323 "xelatex" => "texlive-xetex-bin",
288 );
289
290 my @fedora26_opt_pkgs = (
291 "graphviz-gd", # Fedora 26: needed for PDF support
292 );
293
294 my @fedora_tex_pkgs = (
295 "texlive-collection-fontsrecommended",

--- 22 unchanged lines hidden (view full) ---

318 "python-sphinx" => "python3-sphinx",
319 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
320 "virtualenv" => "python3-virtualenv",
321 "pip" => "python3-pip",
322 "dot" => "graphviz",
323 "convert" => "ImageMagick",
324 "Pod::Usage" => "perl-Pod-Usage",
325 "xelatex" => "texlive-xetex-bin",
326 "rsvg-convert" => "rsvg-view",
324 );
325
326 my @suse_tex_pkgs = (
327 "texlive-babel-english",
328 "texlive-caption",
329 "texlive-colortbl",
330 "texlive-courier",
331 "texlive-dvips",

--- 20 unchanged lines hidden (view full) ---

352{
353 my %map = (
354 "sphinx_rtd_theme" => "python-sphinx_rtd_theme",
355 "virtualenv" => "python-virtualenv",
356 "pip" => "python-pip",
357 "dot" => "graphviz",
358 "convert" => "imagemagick",
359 "xelatex" => "texlive-bin",
327 );
328
329 my @suse_tex_pkgs = (
330 "texlive-babel-english",
331 "texlive-caption",
332 "texlive-colortbl",
333 "texlive-courier",
334 "texlive-dvips",

--- 20 unchanged lines hidden (view full) ---

355{
356 my %map = (
357 "sphinx_rtd_theme" => "python-sphinx_rtd_theme",
358 "virtualenv" => "python-virtualenv",
359 "pip" => "python-pip",
360 "dot" => "graphviz",
361 "convert" => "imagemagick",
362 "xelatex" => "texlive-bin",
363 "rsvg-convert" => "extra/librsvg",
360 );
361
362 my @archlinux_tex_pkgs = (
363 "texlive-core",
364 "texlive-latexextra",
365 "ttf-dejavu",
366 );
367 check_pacman_missing(\@archlinux_tex_pkgs, 1) if ($pdf);

--- 7 unchanged lines hidden (view full) ---

375{
376 my %map = (
377 "sphinx_rtd_theme" => "dev-python/sphinx_rtd_theme",
378 "virtualenv" => "dev-python/virtualenv",
379 "pip" => "dev-python/pip",
380 "dot" => "media-gfx/graphviz",
381 "convert" => "media-gfx/imagemagick",
382 "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu",
364 );
365
366 my @archlinux_tex_pkgs = (
367 "texlive-core",
368 "texlive-latexextra",
369 "ttf-dejavu",
370 );
371 check_pacman_missing(\@archlinux_tex_pkgs, 1) if ($pdf);

--- 7 unchanged lines hidden (view full) ---

379{
380 my %map = (
381 "sphinx_rtd_theme" => "dev-python/sphinx_rtd_theme",
382 "virtualenv" => "dev-python/virtualenv",
383 "pip" => "dev-python/pip",
384 "dot" => "media-gfx/graphviz",
385 "convert" => "media-gfx/imagemagick",
386 "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu",
387 "rsvg-convert" => "gnome-base/librsvg",
383 );
384
385 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf",
386 "media-fonts/dejavu", 1) if ($pdf);
387
388 check_missing(\%map);
389
390 return if (!$need && !$optional);

--- 62 unchanged lines hidden (view full) ---

453 check_sphinx();
454 check_perl_module("Pod::Usage", 0);
455 check_program("make", 0);
456 check_program("gcc", 0);
457 check_python_module("sphinx_rtd_theme", 1) if (!$virtualenv);
458 check_program("xelatex", 1) if ($pdf);
459 check_program("dot", 1);
460 check_program("convert", 1);
388 );
389
390 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf",
391 "media-fonts/dejavu", 1) if ($pdf);
392
393 check_missing(\%map);
394
395 return if (!$need && !$optional);

--- 62 unchanged lines hidden (view full) ---

458 check_sphinx();
459 check_perl_module("Pod::Usage", 0);
460 check_program("make", 0);
461 check_program("gcc", 0);
462 check_python_module("sphinx_rtd_theme", 1) if (!$virtualenv);
463 check_program("xelatex", 1) if ($pdf);
464 check_program("dot", 1);
465 check_program("convert", 1);
466 check_program("rsvg-convert", 1) if ($pdf);
461
462 check_distros();
463
464 if ($need_symlink) {
465 printf "\tsudo ln -sf %s /usr/bin/sphinx-build\n\n",
466 which("sphinx-build-3");
467 }
468 if ($need_sphinx) {

--- 65 unchanged lines hidden ---
467
468 check_distros();
469
470 if ($need_symlink) {
471 printf "\tsudo ln -sf %s /usr/bin/sphinx-build\n\n",
472 which("sphinx-build-3");
473 }
474 if ($need_sphinx) {

--- 65 unchanged lines hidden ---