• Home
  • Raw
  • Download

Lines Matching +full:sub +full:- +full:system

43 	'amsfonts.sty'       => 'texlive-amsfonts',
44 'amsmath.sty' => 'texlive-amsmath',
45 'amssymb.sty' => 'texlive-amsfonts',
46 'amsthm.sty' => 'texlive-amscls',
47 'anyfontsize.sty' => 'texlive-anyfontsize',
48 'atbegshi.sty' => 'texlive-oberdiek',
49 'bm.sty' => 'texlive-tools',
50 'capt-of.sty' => 'texlive-capt-of',
51 'cmap.sty' => 'texlive-cmap',
52 'ecrm1000.tfm' => 'texlive-ec',
53 'eqparbox.sty' => 'texlive-eqparbox',
54 'eu1enc.def' => 'texlive-euenc',
55 'fancybox.sty' => 'texlive-fancybox',
56 'fancyvrb.sty' => 'texlive-fancyvrb',
57 'float.sty' => 'texlive-float',
58 'fncychap.sty' => 'texlive-fncychap',
59 'footnote.sty' => 'texlive-mdwtools',
60 'framed.sty' => 'texlive-framed',
61 'luatex85.sty' => 'texlive-luatex85',
62 'multirow.sty' => 'texlive-multirow',
63 'needspace.sty' => 'texlive-needspace',
64 'palatino.sty' => 'texlive-psnfss',
65 'parskip.sty' => 'texlive-parskip',
66 'polyglossia.sty' => 'texlive-polyglossia',
67 'tabulary.sty' => 'texlive-tabulary',
68 'threeparttable.sty' => 'texlive-threeparttable',
69 'titlesec.sty' => 'texlive-titlesec',
70 'ucs.sty' => 'texlive-ucs',
71 'upquote.sty' => 'texlive-upquote',
72 'wrapfig.sty' => 'texlive-wrapfig',
79 sub check_missing(%)
101 sub add_package($$)
114 sub check_missing_file($$$)
120 return if(-e $file);
125 sub findprog($)
128 return "$_/$_[0]" if(-x "$_/$_[0]");
132 sub check_program($$)
142 sub check_perl_module($$)
147 my $err = system("perl -M$prog -e 1 2>/dev/null /dev/null");
153 sub check_python_module($$)
158 my $err = system("python3 -c 'import $prog' 2>/dev/null /dev/null");
160 my $err = system("python -c 'import $prog' 2>/dev/null /dev/null");
166 sub check_rpm_missing($$)
172 my $err = system("rpm -q '$prog' 2>/dev/null >/dev/null");
177 sub check_pacman_missing($$)
183 my $err = system("pacman -Q '$prog' 2>/dev/null >/dev/null");
188 sub check_missing_tex($)
204 sub check_sphinx()
206 return if findprog("sphinx-build");
208 if (findprog("sphinx-build-3")) {
214 my $prog = findprog("virtualenv-3");
215 $prog = findprog("virtualenv-3.5") if (!$prog);
220 add_package("python-sphinx", 0);
228 sub catcheck($)
231 $res = qx(cat $_[0]) if (-r $_[0]);
235 sub which($)
242 return $name if (-x $name );
248 # Subroutines that check distro-specific hints
251 sub give_debian_hints()
254 "python-sphinx" => "python3-sphinx",
255 "sphinx_rtd_theme" => "python3-sphinx-rtd-theme",
259 "Pod::Usage" => "perl-modules",
260 "xelatex" => "texlive-xetex",
261 "rsvg-convert" => "librsvg2-bin",
266 "fonts-dejavu", 1);
273 printf("You should run:\n\n\tsudo apt-get install $install\n");
276 sub give_redhat_hints()
279 "python-sphinx" => "python3-sphinx",
280 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
281 "virtualenv" => "python3-virtualenv",
284 "Pod::Usage" => "perl-Pod-Usage",
285 "xelatex" => "texlive-xetex-bin",
286 "rsvg-convert" => "librsvg2-tools",
290 "graphviz-gd", # Fedora 26: needed for PDF support
294 "texlive-collection-fontsrecommended",
295 "texlive-collection-latex",
296 "dejavu-sans-fonts",
297 "dejavu-serif-fonts",
298 "dejavu-sans-mono-fonts",
305 $map{"virtualenv"} = "python-virtualenv";
321 printf("You should run:\n\n\tsudo dnf install -y $install\n");
324 printf("You should run:\n\n\tsudo yum install -y $install\n");
328 sub give_opensuse_hints()
331 "python-sphinx" => "python3-sphinx",
332 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
333 "virtualenv" => "python3-virtualenv",
336 "Pod::Usage" => "perl-Pod-Usage",
337 "xelatex" => "texlive-xetex-bin",
338 "rsvg-convert" => "rsvg-view",
342 "texlive-babel-english",
343 "texlive-caption",
344 "texlive-colortbl",
345 "texlive-courier",
346 "texlive-dvips",
347 "texlive-helvetic",
348 "texlive-makeindex",
349 "texlive-metafont",
350 "texlive-metapost",
351 "texlive-palatino",
352 "texlive-preview",
353 "texlive-times",
354 "texlive-zapfchan",
355 "texlive-zapfding",
363 printf("You should run:\n\n\tsudo zypper install --no-recommends $install\n");
366 sub give_mageia_hints()
369 "python-sphinx" => "python3-sphinx",
370 "sphinx_rtd_theme" => "python3-sphinx_rtd_theme",
371 "virtualenv" => "python3-virtualenv",
374 "Pod::Usage" => "perl-Pod-Usage",
376 "rsvg-convert" => "librsvg2-tools",
380 "texlive-fontsextra",
390 sub give_arch_linux_hints()
393 "sphinx_rtd_theme" => "python-sphinx_rtd_theme",
394 "virtualenv" => "python-virtualenv",
397 "xelatex" => "texlive-bin",
398 "rsvg-convert" => "extra/librsvg",
402 "texlive-core",
403 "texlive-latexextra",
404 "ttf-dejavu",
410 printf("You should run:\n\n\tsudo pacman -S $install\n");
413 sub give_gentoo_hints()
416 "sphinx_rtd_theme" => "dev-python/sphinx_rtd_theme",
417 "virtualenv" => "dev-python/virtualenv",
418 "dot" => "media-gfx/graphviz",
419 "convert" => "media-gfx/imagemagick",
420 "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu",
421 "rsvg-convert" => "gnome-base/librsvg",
425 "media-fonts/dejavu", 1) if ($pdf);
432 …printf("\tsudo su -c 'echo \"media-gfx/imagemagick svg png\" > /etc/portage/package.use/imagemagic…
433 …printf("\tsudo su -c 'echo \"media-gfx/graphviz cairo pdf\" > /etc/portage/package.use/graphviz'\n…
434 printf("\tsudo emerge --ask $install\n");
438 sub check_distros()
440 # Distro-specific hints
487 # Fall-back to generic hint code for other distros
491 "sphinx-build" => "sphinx"
504 sub check_needs()
534 check_program("rsvg-convert", 1) if ($pdf);
539 printf "\tsudo ln -sf %s /usr/bin/sphinx-build\n\n",
540 which("sphinx-build-3");
544 if (-e "$ENV{'PWD'}/$activate") {
548 my $virtualenv = findprog("virtualenv-3");
549 $virtualenv = findprog("virtualenv-3.5") if (!$virtualenv);
555 printf "\tpip install -r $requirement_file\n";
579 if ($arg eq "--no-virtualenv") {
581 } elsif ($arg eq "--no-pdf"){
584 print "Usage:\n\t$0 <--no-virtualenv> <--no-pdf>\n\n";
585 exit -1;
590 # Determine the system type. There's no standard unique way that would
599 $system_release = qx(lsb_release -d) if which("lsb_release");
601 $system_release = catcheck("/etc/system-release") if !$system_release;
602 $system_release = catcheck("/etc/redhat-release") if !$system_release;
603 $system_release = catcheck("/etc/lsb-release") if !$system_release;
604 $system_release = catcheck("/etc/gentoo-release") if !$system_release;