sphinx-pre-install (4ea96d57bbfda93ae6cfdc8e565a3c419a78f328) | sphinx-pre-install (27eed923f715f6269b98e089ad2164f9b016eace) |
---|---|
1#!/usr/bin/perl 2# SPDX-License-Identifier: GPL-2.0-or-later 3use strict; 4 5# Copyright (c) 2017-2019 Mauro Carvalho Chehab <mchehab@kernel.org> 6# 7 8my $prefix = "./"; --- 331 unchanged lines hidden (view full) --- 340 "Pod::Usage" => "perl-modules", 341 "xelatex" => "texlive-xetex", 342 "rsvg-convert" => "librsvg2-bin", 343 ); 344 345 if ($pdf) { 346 check_missing_file("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", 347 "fonts-dejavu", 2); | 1#!/usr/bin/perl 2# SPDX-License-Identifier: GPL-2.0-or-later 3use strict; 4 5# Copyright (c) 2017-2019 Mauro Carvalho Chehab <mchehab@kernel.org> 6# 7 8my $prefix = "./"; --- 331 unchanged lines hidden (view full) --- 340 "Pod::Usage" => "perl-modules", 341 "xelatex" => "texlive-xetex", 342 "rsvg-convert" => "librsvg2-bin", 343 ); 344 345 if ($pdf) { 346 check_missing_file("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", 347 "fonts-dejavu", 2); |
348 349 check_missing_file("/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc", 350 "fonts-noto-cjk", 2); |
|
348 } 349 350 check_program("dvipng", 2) if ($pdf); 351 check_missing(\%map); 352 353 return if (!$need && !$optional); 354 printf("You should run:\n\n\tsudo apt-get install $install\n"); 355} --- 13 unchanged lines hidden (view full) --- 369 370 my @fedora26_opt_pkgs = ( 371 "graphviz-gd", # Fedora 26: needed for PDF support 372 ); 373 374 my @fedora_tex_pkgs = ( 375 "texlive-collection-fontsrecommended", 376 "texlive-collection-latex", | 351 } 352 353 check_program("dvipng", 2) if ($pdf); 354 check_missing(\%map); 355 356 return if (!$need && !$optional); 357 printf("You should run:\n\n\tsudo apt-get install $install\n"); 358} --- 13 unchanged lines hidden (view full) --- 372 373 my @fedora26_opt_pkgs = ( 374 "graphviz-gd", # Fedora 26: needed for PDF support 375 ); 376 377 my @fedora_tex_pkgs = ( 378 "texlive-collection-fontsrecommended", 379 "texlive-collection-latex", |
380 "texlive-xecjk", |
|
377 "dejavu-sans-fonts", 378 "dejavu-serif-fonts", 379 "dejavu-sans-mono-fonts", 380 ); 381 382 # 383 # Checks valid for RHEL/CentOS version 7.x. 384 # --- 18 unchanged lines hidden (view full) --- 403 } 404 } 405 if (!$rel) { 406 printf("Couldn't identify release number\n"); 407 $old = 1; 408 $pdf = 0; 409 } 410 | 381 "dejavu-sans-fonts", 382 "dejavu-serif-fonts", 383 "dejavu-sans-mono-fonts", 384 ); 385 386 # 387 # Checks valid for RHEL/CentOS version 7.x. 388 # --- 18 unchanged lines hidden (view full) --- 407 } 408 } 409 if (!$rel) { 410 printf("Couldn't identify release number\n"); 411 $old = 1; 412 $pdf = 0; 413 } 414 |
415 if ($pdf) { 416 check_missing_file("/usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc", 417 "google-noto-sans-cjk-ttc-fonts", 2); 418 } 419 |
|
411 check_rpm_missing(\@fedora26_opt_pkgs, 2) if ($pdf && !$old); 412 check_rpm_missing(\@fedora_tex_pkgs, 2) if ($pdf); 413 check_missing_tex(2) if ($pdf); 414 check_missing(\%map); 415 416 return if (!$need && !$optional); 417 418 if (!$old) { --- 32 unchanged lines hidden (view full) --- 451 "texlive-preview", 452 "texlive-times", 453 "texlive-zapfchan", 454 "texlive-zapfding", 455 ); 456 457 $map{"latexmk"} = "texlive-latexmk-bin"; 458 | 420 check_rpm_missing(\@fedora26_opt_pkgs, 2) if ($pdf && !$old); 421 check_rpm_missing(\@fedora_tex_pkgs, 2) if ($pdf); 422 check_missing_tex(2) if ($pdf); 423 check_missing(\%map); 424 425 return if (!$need && !$optional); 426 427 if (!$old) { --- 32 unchanged lines hidden (view full) --- 460 "texlive-preview", 461 "texlive-times", 462 "texlive-zapfchan", 463 "texlive-zapfding", 464 ); 465 466 $map{"latexmk"} = "texlive-latexmk-bin"; 467 |
468 # FIXME: add support for installing CJK fonts 469 # 470 # I tried hard, but was unable to find a way to install 471 # "Noto Sans CJK SC" on openSUSE 472 |
|
459 check_rpm_missing(\@suse_tex_pkgs, 2) if ($pdf); 460 check_missing_tex(2) if ($pdf); 461 check_missing(\%map); 462 463 return if (!$need && !$optional); 464 printf("You should run:\n\n\tsudo zypper install --no-recommends $install\n"); 465} 466 --- 11 unchanged lines hidden (view full) --- 478 ); 479 480 my @tex_pkgs = ( 481 "texlive-fontsextra", 482 ); 483 484 $map{"latexmk"} = "texlive-collection-basic"; 485 | 473 check_rpm_missing(\@suse_tex_pkgs, 2) if ($pdf); 474 check_missing_tex(2) if ($pdf); 475 check_missing(\%map); 476 477 return if (!$need && !$optional); 478 printf("You should run:\n\n\tsudo zypper install --no-recommends $install\n"); 479} 480 --- 11 unchanged lines hidden (view full) --- 492 ); 493 494 my @tex_pkgs = ( 495 "texlive-fontsextra", 496 ); 497 498 $map{"latexmk"} = "texlive-collection-basic"; 499 |
500 if ($pdf) { 501 check_missing_file("/usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc", 502 "google-noto-sans-cjk-ttc-fonts", 2); 503 } 504 |
|
486 check_rpm_missing(\@tex_pkgs, 2) if ($pdf); 487 check_missing(\%map); 488 489 return if (!$need && !$optional); 490 printf("You should run:\n\n\tsudo urpmi $install\n"); 491} 492 493sub give_arch_linux_hints() --- 9 unchanged lines hidden (view full) --- 503 504 my @archlinux_tex_pkgs = ( 505 "texlive-core", 506 "texlive-latexextra", 507 "ttf-dejavu", 508 ); 509 check_pacman_missing(\@archlinux_tex_pkgs, 2) if ($pdf); 510 | 505 check_rpm_missing(\@tex_pkgs, 2) if ($pdf); 506 check_missing(\%map); 507 508 return if (!$need && !$optional); 509 printf("You should run:\n\n\tsudo urpmi $install\n"); 510} 511 512sub give_arch_linux_hints() --- 9 unchanged lines hidden (view full) --- 522 523 my @archlinux_tex_pkgs = ( 524 "texlive-core", 525 "texlive-latexextra", 526 "ttf-dejavu", 527 ); 528 check_pacman_missing(\@archlinux_tex_pkgs, 2) if ($pdf); 529 |
530 if ($pdf) { 531 check_missing_file("/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc", 532 "noto-fonts-cjk", 2); 533 } 534 |
|
511 check_missing(\%map); 512 513 return if (!$need && !$optional); 514 printf("You should run:\n\n\tsudo pacman -S $install\n"); 515} 516 517sub give_gentoo_hints() 518{ --- 4 unchanged lines hidden (view full) --- 523 "convert" => "media-gfx/imagemagick", 524 "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu", 525 "rsvg-convert" => "gnome-base/librsvg", 526 ); 527 528 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", 529 "media-fonts/dejavu", 2) if ($pdf); 530 | 535 check_missing(\%map); 536 537 return if (!$need && !$optional); 538 printf("You should run:\n\n\tsudo pacman -S $install\n"); 539} 540 541sub give_gentoo_hints() 542{ --- 4 unchanged lines hidden (view full) --- 547 "convert" => "media-gfx/imagemagick", 548 "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu", 549 "rsvg-convert" => "gnome-base/librsvg", 550 ); 551 552 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", 553 "media-fonts/dejavu", 2) if ($pdf); 554 |
555 if ($pdf) { 556 check_missing_file("/usr/share/fonts/noto-cjk/NotoSansCJKsc-Regular.otf", 557 "media-fonts/noto-cjk", 2); 558 } 559 |
|
531 check_missing(\%map); 532 533 return if (!$need && !$optional); 534 535 printf("You should run:\n\n"); 536 537 my $imagemagick = "media-gfx/imagemagick svg png"; 538 my $cairo = "media-gfx/graphviz cairo pdf"; --- 192 unchanged lines hidden --- | 560 check_missing(\%map); 561 562 return if (!$need && !$optional); 563 564 printf("You should run:\n\n"); 565 566 my $imagemagick = "media-gfx/imagemagick svg png"; 567 my $cairo = "media-gfx/graphviz cairo pdf"; --- 192 unchanged lines hidden --- |