[Pkg-javascript-commits] [mathjax] 01/01: Stop building and shipping PNG fonts.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Dec 21 20:25:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository mathjax.

commit c9ca39feaf9b0a3b711bc7c11c72b38b15c2faf4
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Jun 29 23:55:55 2017 +0300

    Stop building and shipping PNG fonts.
    
    They are not needed for any modern browsers.
---
 debian/changelog                    |  2 ++
 debian/control                      |  4 ++--
 debian/copyright                    |  1 +
 debian/fonts-mathjax-extras.install |  1 -
 debian/packer/packMJfonts           | 46 -------------------------------------
 debian/rules                        |  3 +--
 6 files changed, 6 insertions(+), 51 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8cf3567..a972633 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ mathjax (2.7.1+dfsg-1) UNRELEASED; urgency=medium
     These libraries come from speech-rule-engine and wicked-good-xpath,
     which are not trivial to package or build because they require new
     versions of Google Closure library and Closure compiler.
+  * Stop building and shipping PNG fonts, they are not needed for any
+    modern browsers.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Thu, 29 Jun 2017 17:03:24 +0300
 
diff --git a/debian/control b/debian/control
index 33edc8e..0be649e 100644
--- a/debian/control
+++ b/debian/control
@@ -65,5 +65,5 @@ Description: JavaScript display engine for LaTeX and MathML (extra fonts)
  easily. Simply include MathJax and some mathematics in a web page, and MathJax
  will do the rest.
  .
- This package contains EOT and PNG fonts for MathJax, that are provided in
- addition to OTF, SVG and WOFF fonts in "fonts-mathjax" package.
+ This package contains EOT fonts for MathJax, that are provided in addition to
+ OTF, SVG and WOFF fonts in "fonts-mathjax" package.
diff --git a/debian/copyright b/debian/copyright
index 66770ed..4e5b7d7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -5,6 +5,7 @@ Files-Excluded: config extensions jax localization
                 unpacked/extensions/a11y/mathjax-sre.js
                 unpacked/extensions/a11y/mathmaps
                 unpacked/extensions/a11y/wgxpath.install.js
+                fonts/HTML-CSS/TeX/png
 
 Files: *
 Copyright: 2009-2017 The MathJax Consortium
diff --git a/debian/fonts-mathjax-extras.install b/debian/fonts-mathjax-extras.install
index be64b49..3f97f5e 100644
--- a/debian/fonts-mathjax-extras.install
+++ b/debian/fonts-mathjax-extras.install
@@ -1,2 +1 @@
 fonts/HTML-CSS/TeX/eot usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
-fonts/HTML-CSS/TeX/png usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
diff --git a/debian/packer/packMJfonts b/debian/packer/packMJfonts
deleted file mode 100755
index 5eb8628..0000000
--- a/debian/packer/packMJfonts
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /usr/bin/perl
-
-#  Packs the javascript files that are part of the 
-#  image fonts package at fonts/HTML-CSS/TeX/png.
-#  
-#  Usage:  packMJfonts [project-dir]
-
-use Cwd;
-use FindBin;
-
-$bindir = $FindBin::Bin;
-$top_builddir = shift || getcwd;
-$builddir = "$top_builddir/fonts/HTML-CSS/TeX/png";
-$SRC = $builddir;
-$PACKMJFILE = "$bindir/packMJfile";
-
-sub packDir {
-  my ($src,$dst) = @_;
-  opendir(SRC,$src);
-  my @files = grep(/^[^.]/,readdir(SRC));
-  closedir(SRC);
-  foreach my $file (@files) {
-    if (-d "$src/$file") {
-      next if $file =~ m/^\d+$/;
-      packDir("$src/$file",$dst.($file eq "unpacked" ? "" :"/$file"));
-    } elsif ($file =~ m/\.js$/) {
-      packFile($src,$dst,$file);
-    }
-  }
-}
-
-sub packFile {
-  my ($src,$dst,$file) = @_;
-  $src .= "/$file"; $dst .= "/$file";
-  my ($stime,$ssize) = (stat($src))[9,7];
-  my $dtime = (stat($dst))[9];
-  return if $stime <= $dtime || $ssize <= 1024;
-  system("$PACKMJFILE '$src' '$dst'");
-  my $dsize = (stat($dst))[7];
-  print "Size: $dsize,  Original: $ssize [",$ssize-$dsize," or ",
-    sprintf("%.1f",100*($ssize-$dsize)/$ssize),"%]\n";
-}
-
-packDir($SRC,$SRC);
-
-1;
diff --git a/debian/rules b/debian/rules
index 9030fcd..d1edbe1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,8 @@
 
 override_dh_auto_build:
 	./debian/packer/packMJ
-	./debian/packer/packMJfonts
 	./debian/combiner/combineMJ --force
 
 override_dh_auto_clean:
 	rm -rfv config/ extensions/ jax/ localization/
-	rm -fv MathJax.js fonts/HTML-CSS/TeX/png/imagedata.js
+	rm -fv MathJax.js

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/mathjax.git



More information about the Pkg-javascript-commits mailing list