[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-fonts-devel] Bug#575729: Patch for otf-freefont package



tag 575729 + patch
thanks

The attached patch adds a new binary package otf-freefont (and fixes a
lintian warning regarding the debhelper version).


Regards
Jan

-- 
Jan Dittberner - Debian Developer
GPG-key: 4096R/558FB8DD 2009-05-10
         B2FF 1D95 CE8F 7A22 DF4C  F09B A73E 0055 558F B8DD
http://ddportfolio.debian.net/ - http://people.debian.org/~jandd/
Index: debian/control
===================================================================
--- debian/control	(revision 2339)
+++ debian/control	(working copy)
@@ -2,7 +2,7 @@
 Section: fonts
 Priority: optional
 Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7.0.50~)
 Build-Depends-Indep: fontforge (>= 0.0.20080330)
 Standards-Version: 3.8.3
 Uploaders: Davide Viti <zinosat@tiscali.it>, Christian Perrier <bubulle@debian.org>
@@ -19,6 +19,15 @@
  character set. These fonts are similar to the (in)famous Helvetica,
  Times and Courier fonts.
 
+Package: otf-freefont
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: x-ttcidfont-conf
+Description: Freefont Serif, Sans and Mono OpenType fonts
+ A set of free high-quality OpenType fonts covering the UCS
+ character set. These fonts are similar to the (in)famous Helvetica,
+ Times and Courier fonts.
+
 Package: ttf-freefont-udeb
 Section: debian-installer
 Provides: ttf-installer
Index: debian/otf-freefont.docs
===================================================================
--- debian/otf-freefont.docs	(revision 0)
+++ debian/otf-freefont.docs	(revision 0)
@@ -0,0 +1,2 @@
+README
+AUTHORS
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 2339)
+++ debian/changelog	(working copy)
@@ -1,3 +1,17 @@
+ttf-freefont (20090104-6) UNRELEASED; urgency=low
+
+  * add binary package otf-freefont providing OpenType versions of the
+    fonts (Closes: #575729)
+    - add debian/otf-freefont.dirs, debian/otf-freefont.docs,
+      debian/otf-freefont.install, debian/scripts/ConvertOTFont.ff
+    - call ConvertOTFont.ff in debian/scripts/convertfonts.sh
+    - add OTF related lines to debian/rules
+    - add new binary package stanza to debian/control
+  * set debhelper dependency version to (>= 7.0.50~) to fix lintian
+    warning
+
+ -- Jan Dittberner <jandd@debian.org>  Sun, 28 Mar 2010 23:00:24 +0200
+
 ttf-freefont (20090104-5) unstable; urgency=low
 
   [ Christian Perrier ]
Index: debian/scripts/convertfonts.sh
===================================================================
--- debian/scripts/convertfonts.sh	(revision 2339)
+++ debian/scripts/convertfonts.sh	(working copy)
@@ -1,12 +1,16 @@
 #!/bin/sh
 
 CONVERTFONT=$(pwd)/debian/scripts/ConvertFont.ff
+CONVERTOTFONT=$(pwd)/debian/scripts/ConvertOTFont.ff
 SRC="./"
 TARGET="TTF"
+OTFTARGET="OTF"
 test ! -d ${TARGET} && mkdir ${TARGET}
+test ! -d ${OTFTARGET} && mkdir ${OTFTARGET}
 
 FONTS=`cd ${SRC} && find . -maxdepth 1 -name "*.sfd"`
 for font in ${FONTS}; do
 	echo $font
 	(cd ${TARGET} && ${CONVERTFONT} ../${SRC}/${font} )
+        (cd ${OTFTARGET} && ${CONVERTOTFONT} ../${SRC}/${font} )
 done
Index: debian/scripts/ConvertOTFont.ff
===================================================================
--- debian/scripts/ConvertOTFont.ff	(revision 0)
+++ debian/scripts/ConvertOTFont.ff	(revision 0)
@@ -0,0 +1,17 @@
+#!/usr/bin/fontforge
+#
+# Convert fonts from PfaEdit's native format to OpenType format
+
+if ($argc > 1)
+    i = 1;
+    while ( i < $argc )
+	Open($argv[i])
+	otfile = $fontname + ".otf"
+	Print("Converting ",otfile)
+	Generate(otfile)
+	Close()
+	i++
+    endloop
+else
+    Print("Usage: $0 font.sfd [font.sfd ...]")
+endif

Property changes on: debian/scripts/ConvertOTFont.ff
___________________________________________________________________
Added: svn:executable
   + *

Index: debian/rules
===================================================================
--- debian/rules	(revision 2339)
+++ debian/rules	(working copy)
@@ -3,7 +3,7 @@
 	dh $@
 
 override_dh_prep:
-	-rm -fr TTF* udeb-sfd
+	-rm -fr TTF* OTF* udeb-sfd
 	dh_prep
 
 override_dh_install:
@@ -11,6 +11,7 @@
 	chmod u+x debian/scripts/stripfonts.sh
 	chmod u+x debian/scripts/strip_glyphs.pe
 	chmod u+x debian/scripts/ConvertFont.ff
+	chmod u+x debian/scripts/ConvertOTFont.ff
 	chmod u+x debian/scripts/strip_glyphs.pe
 	debian/scripts/convertfonts.sh
 	# Strip the fonts for the udeb
Index: debian/otf-freefont.dirs
===================================================================
--- debian/otf-freefont.dirs	(revision 0)
+++ debian/otf-freefont.dirs	(revision 0)
@@ -0,0 +1 @@
+usr/share/fonts/opentype/freefont/
Index: debian/otf-freefont.install
===================================================================
--- debian/otf-freefont.install	(revision 0)
+++ debian/otf-freefont.install	(revision 0)
@@ -0,0 +1 @@
+OTF/*.otf	usr/share/fonts/opentype/freefont/

Attachment: signature.asc
Description: Digital signature


Reply to: