sphinx-pre-install (353290a9eb5362a80bc8e52fcd7eb77a30f48afc) | sphinx-pre-install (4ea96d57bbfda93ae6cfdc8e565a3c419a78f328) |
---|---|
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 = "./"; --- 519 unchanged lines hidden (view full) --- 528 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", 529 "media-fonts/dejavu", 2) if ($pdf); 530 531 check_missing(\%map); 532 533 return if (!$need && !$optional); 534 535 printf("You should run:\n\n"); | 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 = "./"; --- 519 unchanged lines hidden (view full) --- 528 check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", 529 "media-fonts/dejavu", 2) if ($pdf); 530 531 check_missing(\%map); 532 533 return if (!$need && !$optional); 534 535 printf("You should run:\n\n"); |
536 printf("\tsudo su -c 'echo \"media-gfx/imagemagick svg png\" > /etc/portage/package.use/imagemagick'\n"); 537 printf("\tsudo su -c 'echo \"media-gfx/graphviz cairo pdf\" > /etc/portage/package.use/graphviz'\n"); | 536 537 my $imagemagick = "media-gfx/imagemagick svg png"; 538 my $cairo = "media-gfx/graphviz cairo pdf"; 539 my $portage_imagemagick = "/etc/portage/package.use/imagemagick"; 540 my $portage_cairo = "/etc/portage/package.use/graphviz"; 541 542 if (qx(cat $portage_imagemagick) ne "$imagemagick\n") { 543 printf("\tsudo su -c 'echo \"$imagemagick\" > $portage_imagemagick'\n") 544 } 545 if (qx(cat $portage_cairo) ne "$cairo\n") { 546 printf("\tsudo su -c 'echo \"$cairo\" > $portage_cairo'\n"); 547 } 548 |
538 printf("\tsudo emerge --ask $install\n"); 539 540} 541 542sub check_distros() 543{ 544 # Distro-specific hints 545 if ($system_release =~ /Red Hat Enterprise Linux/) { --- 174 unchanged lines hidden --- | 549 printf("\tsudo emerge --ask $install\n"); 550 551} 552 553sub check_distros() 554{ 555 # Distro-specific hints 556 if ($system_release =~ /Red Hat Enterprise Linux/) { --- 174 unchanged lines hidden --- |