[Debian-in-commits] [fonts-meera-taml] 06/09: introduce patch to use woff-tools and eot-utils to generate woff and eot file

Vasudev Kamath vasudev-guest at moszumanska.debian.org
Sun Jan 26 08:42:11 UTC 2014


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

vasudev-guest pushed a commit to branch master
in repository fonts-meera-taml.

commit 6933e0458ff4eea2245143c1fc92fdb0230830c8
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date:   Sun Jan 26 13:55:28 2014 +0530

    introduce patch to use woff-tools and eot-utils to generate woff and
    eot file
---
 debian/meera_woff_metadata.xml                     | 44 ++++++++++++++++++++++
 .../1001_generate_webfonts_during_build.patch      | 30 +++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  2 +-
 4 files changed, 76 insertions(+), 1 deletion(-)

diff --git a/debian/meera_woff_metadata.xml b/debian/meera_woff_metadata.xml
new file mode 100644
index 0000000..ccac378
--- /dev/null
+++ b/debian/meera_woff_metadata.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata version="1.0">
+    <uniqueid id="com.meera.tamil" />
+    <vendor
+	name="Meera Tamil fonts project"
+	url="http://santhoshtr.github.io/meera-tamil/" />
+    <credits>
+        <credit
+            name="Hussain KH"
+            url="http://santhoshtr.github.io/meera-tamil/"
+            role="Typography" />
+        <credit
+            name="Santhosh Thottingal"
+            url="http://thottingal.in"
+            role="Featuring" />
+        <credit
+            name="Anilan NG"
+	    url="http://santhoshtr.github.io/meera-tamil/"
+            role="Calligraphy" />
+	<credit
+            name="AKM Kutty"
+	    url="http://santhoshtr.github.io/meera-tamil/"
+            role="Linguistics" />
+    </credits>
+    <description>
+      <text lang="en">
+	A free licensed font for Tamil. Dedicated to Wikipedia and
+	Tamil people (Tamil Pesum Nallulakam)
+        </text>
+    </description>
+    <license url="http://scripts.sil.org/OFL"
+             id="meera-tamil-sil-ofl">
+      <text lang="en">
+	This Font is licensed under the SIL Open Font
+        License, Version 1.1. See http://scripts.sil.org/OFL
+      </text>
+    </license>
+    <copyright>
+      <text lang="en">
+	Copyright 2012 Meera Tamil Fonts Project contributors
+	with Reserved Font Name Meera Tamil
+      </text>
+    </copyright>
+</metadata>
diff --git a/debian/patches/1001_generate_webfonts_during_build.patch b/debian/patches/1001_generate_webfonts_during_build.patch
new file mode 100644
index 0000000..acd9b56
--- /dev/null
+++ b/debian/patches/1001_generate_webfonts_during_build.patch
@@ -0,0 +1,30 @@
+Description: Generate woff and eot during build
+ This patch uses woff-tools and eot-utils available in Debian to
+ generate woff and eot files, instead of using unpackaged sfntly tool
+ used by upstream.
+Author: Vasudev Kamath <kamathvasudev at gmail.com>
+Last-Updated: 2014-01-26
+Forwarded: https://github.com/santhoshtr/meera-tamil/issues/11
+
+--- a/Makefile
++++ b/Makefile
+@@ -7,7 +7,7 @@
+ 	do \
+ 		./generate.pe $${font}.sfd; \
+ 		echo "Compiled the font $${font}";\
+-	done 
++	done
+ 
+ install: compile
+ # copy ttf files to system font directory
+@@ -40,8 +40,7 @@
+ # generate webfonts
+ 	@for font in `echo ${fonts}`; \
+ 	do \
+-		sfntly -w $${font}.ttf $${font}.woff; \
+-		sfntly -e -x $${font}.ttf $${font}.eot; \
++		sfnt2woff -m debian/meera_woff_metadata.xml $${font}.ttf; \
++		mkeot $${font}.ttf > $${font}.eot; \
+ 		echo "Webfonts generated for $${font}"; \
+ 	done
+-	
diff --git a/debian/patches/series b/debian/patches/series
index 6c15b81..dd8f67d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 2001_drop_clean_target.patch
+1001_generate_webfonts_during_build.patch
diff --git a/debian/rules b/debian/rules
index 2291847..a31721c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ DEB_MAKE_INSTALL_TARGET =
 DEB_MAKE_BUILD_TARGET = compile
 
 # build-depends
-CDBS_BUILD_DEPENDS += ,fontforge
+CDBS_BUILD_DEPENDS += ,fontforge, woff-tools, eot-utils
 
 # Ignore these files while generating copyright hints
 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = (.woff|.eot|debian/(changelog|copyright(|_hints|_newhints)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-in/fonts-meera-taml.git



More information about the Debian-in-commits mailing list