sphinx-pre-install: fix USE needs for GraphViz and ImageMagick
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 17 Jul 2017 21:46:41 +0000 (18:46 -0300)
committerJonathan Corbet <corbet@lwn.net>
Sun, 23 Jul 2017 21:51:40 +0000 (15:51 -0600)
Gentoo need some USE for GraphViz and ImageMagick to have
the features required by kfigure.py.

Output that when providing instructions for Gentoo.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install

index fc9891ce5c8569ec3020eb55afb76f25459be63e..2d18064d57b4f77ce9d00a23808de26bbddd36ee 100755 (executable)
@@ -393,7 +393,12 @@ sub give_gentoo_hints()
        check_missing(\%map);
 
        return if (!$need && !$optional);
-       printf("You should run:\n\n\tsudo emerge --ask $install\n");
+
+       printf("You should run:\n\n");
+       printf("\tsudo su -c 'echo \"media-gfx/imagemagick svg png\" > /etc/portage/package.use/imagemagick'\n");
+       printf("\tsudo su -c 'echo \"media-gfx/graphviz cairo pdf\" > /etc/portage/package.use/graphviz'\n");
+       printf("\tsudo emerge --ask $install\n");
+
 }
 
 sub check_distros()