diff options
| author | Remi Collet <remi@remirepo.net> | 2025-12-05 07:36:33 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2025-12-05 07:36:33 +0100 |
| commit | 164f3b44f0e0733c07375240b627eab43f204341 (patch) | |
| tree | 08f2a0058d006d73ca1beb9c35b0d2856eb62816 /php-tecnickcom-tc-lib-pdf-font-rpm.patch | |
| parent | 3611b1c0cbe7eb632af7b47ac02d1a23ebfe327a (diff) | |
update to 2.6.18
Diffstat (limited to 'php-tecnickcom-tc-lib-pdf-font-rpm.patch')
| -rw-r--r-- | php-tecnickcom-tc-lib-pdf-font-rpm.patch | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/php-tecnickcom-tc-lib-pdf-font-rpm.patch b/php-tecnickcom-tc-lib-pdf-font-rpm.patch index 2ef076e..4f76916 100644 --- a/php-tecnickcom-tc-lib-pdf-font-rpm.patch +++ b/php-tecnickcom-tc-lib-pdf-font-rpm.patch @@ -1,32 +1,32 @@ -diff -up util/bulk_convert.php.rpm util/bulk_convert.php ---- util/bulk_convert.php.rpm 2023-11-29 08:34:27.788544032 +0100 -+++ util/bulk_convert.php 2023-11-29 08:36:54.124053746 +0100 -@@ -86,7 +86,7 @@ if (!is_writable($options['outpath'])) { +diff -up ./util/bulk_convert.php.rpm ./util/bulk_convert.php +--- ./util/bulk_convert.php.rpm 2025-12-05 07:31:19.501111222 +0100 ++++ ./util/bulk_convert.php 2025-12-05 07:33:19.462370628 +0100 +@@ -86,7 +86,7 @@ if (!\is_writable($options['outpath'])) exit(2); } -$ttfdir = __DIR__.'/vendor/tecnickcom/tc-font-mirror/'; +$ttfdir = dirname(__DIR__).'/tc-font-mirror-2.1.0/'; if (!is_dir($ttfdir)) { - fwrite(STDERR, 'ERROR: The '.$ttfdir.' directory is empty, please execute \'make build\' before this command.'."\n\n"); + \fwrite(STDERR, 'ERROR: The '.$ttfdir.' directory is empty, please execute \'make build\' before this command.'."\n\n"); exit(3); -@@ -98,7 +98,7 @@ fwrite(STDOUT, "\n".'>>> Converting font +@@ -98,7 +98,7 @@ if (!is_dir($ttfdir)) { $convert_errors = 0; $convert_success = 0; --require_once (dirname(__DIR__).'/vendor/autoload.php'); +-require_once (\dirname(__DIR__).'/vendor/autoload.php'); +require_once (dirname(__DIR__).'/src/autoload.php'); - $fontdir = array_diff(scandir($ttfdir), array('.', '..', '.git')); + $fontdir = \array_diff(\scandir($ttfdir), array('.', '..', '.git')); -diff -up util/convert.php.rpm util/convert.php ---- util/convert.php.rpm 2023-11-29 13:46:32.380588175 +0100 -+++ util/convert.php 2023-11-29 13:46:34.960688370 +0100 -@@ -224,7 +224,7 @@ fwrite(STDOUT, "\n".'>>> Converting font +diff -up ./util/convert.php.rpm ./util/convert.php +--- ./util/convert.php.rpm 2025-12-05 07:31:19.501170686 +0100 ++++ ./util/convert.php 2025-12-05 07:33:51.032586961 +0100 +@@ -224,7 +224,7 @@ if (empty($options['fonts'])) { $convert_errors = 0; $convert_success = 0; --require_once (dirname(dirname(__DIR__)).'/vendor/autoload.php'); +-require_once (\dirname(\dirname(__DIR__)).'/vendor/autoload.php'); +require_once ('/usr/share/php/Com/Tecnick/Pdf/Font/autoload.php'); foreach ($options['fonts'] as $font) { |
