From 12774e53b732cc6ea8000d0a3234d36477d76cd8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 10 Aug 2020 07:18:05 +0200 Subject: dup v8 --- php-phpunit-php-code-coverage9-fonts.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 php-phpunit-php-code-coverage9-fonts.patch (limited to 'php-phpunit-php-code-coverage9-fonts.patch') diff --git a/php-phpunit-php-code-coverage9-fonts.patch b/php-phpunit-php-code-coverage9-fonts.patch new file mode 100644 index 0000000..09d5f18 --- /dev/null +++ b/php-phpunit-php-code-coverage9-fonts.patch @@ -0,0 +1,16 @@ +diff -up src/Report/Html/Facade.php.rpm src/Report/Html/Facade.php +--- src/Report/Html/Facade.php.rpm 2017-11-28 06:14:43.754075896 +0100 ++++ src/Report/Html/Facade.php 2017-11-28 06:16:31.423668936 +0100 +@@ -144,7 +144,11 @@ class Facade + $dir = $this->getDirectory($target . '.fonts'); + \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.eot', $dir . 'glyphicons-halflings-regular.eot'); + \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.svg', $dir . 'glyphicons-halflings-regular.svg'); +- \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf'); ++ if (file_exists($font='/usr/share/fonts/glyphicons-halflings/glyphicons-halflings-regular.ttf')) { // System font ++ \copy($font, $dir . 'glyphicons-halflings-regular.ttf'); ++ } else { ++ \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf'); ++ } + \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff', $dir . 'glyphicons-halflings-regular.woff'); + \copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff2', $dir . 'glyphicons-halflings-regular.woff2'); + -- cgit