]> git.pld-linux.org Git - packages/gcstar.git/commitdiff
added system-fonts.patch
authorSzymon Siwek <sls@pld-linux.org>
Sun, 16 Mar 2014 09:22:44 +0000 (09:22 +0000)
committerSzymon Siwek <sls@pld-linux.org>
Sun, 16 Mar 2014 09:22:44 +0000 (09:22 +0000)
use system LiberationSans-Regular.ttf font for creating statistical graphs

gcstar.spec
system-fonts.patch [new file with mode: 0644]

index 6f6bbdd8612fd0f2df451936f2c9ba23d0833956..b9fc18e730070caae7ec0ea9230a76944bde3506 100644 (file)
@@ -24,6 +24,7 @@ Patch1:               %{name}-desktop.patch
 # copy gcstar perl-libs to /usr/share instead of /usr/lib
 Patch2:                %{name}-perlmoddir.patch
 Patch3:                system-xdgopen.patch
+Patch4:                system-fonts.patch
 URL:           http://www.gcstar.org/
 BuildRequires: perl-Archive-Zip
 BuildRequires: perl-Gtk2
@@ -81,6 +82,8 @@ Aktualnie wspiera kolekcje:
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%undos lib/gcstar/GCStats.pm
+%patch4 -p1
 
 #rm BOM from files - it can confuse perl.prov
 find -type f -name '*.pm' | xargs sed -i 's/^\xef\xbb\xbf//'
diff --git a/system-fonts.patch b/system-fonts.patch
new file mode 100644 (file)
index 0000000..2b9dc8f
--- /dev/null
@@ -0,0 +1,11 @@
+--- gcstar/lib/gcstar/GCStats.pm.orig  2014-03-16 09:04:57.573328268 +0000
++++ gcstar/lib/gcstar/GCStats.pm       2014-03-16 09:10:05.350021621 +0000
+@@ -57,7 +57,7 @@ BEGIN {
+         my $self  = {parent => $parent};
+         bless ($self, $class);
+-        GD::Text->font_path($ENV{GCS_SHARE_DIR}.'/fonts');
++        GD::Text->font_path('/usr/share/fonts/TTF/');
+         return $self;
+     }
This page took 0.075177 seconds and 4 git commands to generate.