debian/0000755000000000000000000000000012267537752007206 5ustar debian/patches/0000755000000000000000000000000012267537752010635 5ustar debian/patches/series0000644000000000000000000000003712267537752012052 0ustar 0010-fix_example_metrics.patch debian/patches/0010-fix_example_metrics.patch0000644000000000000000000000131012267537752016256 0ustar Description: fix metrics.rb shipped as an example * add a shebang * remove $LOAD_PATH manipulation * use system copy of dejavu font Author: Cédric Boutillier Last-Update: 2011-09-07 --- a/examples/metrics.rb +++ b/examples/metrics.rb @@ -1,5 +1,5 @@ +#!/usr/bin/ruby # encoding: utf-8 -$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib" require "ttfunk" def character_lookup(file, character) @@ -21,7 +21,7 @@ end end -file = TTFunk::File.open(ARGV.first || "#{File.dirname(__FILE__)}/../data/fonts/DejaVuSans.ttf") +file = TTFunk::File.open(ARGV.first || "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf") puts "-- FONT ------------------------------------" debian/ruby-ttfunk.docs0000644000000000000000000000001412267537752012345 0ustar README.rdoc debian/source/0000755000000000000000000000000012267537752010506 5ustar debian/source/format0000644000000000000000000000001412267537752011714 0ustar 3.0 (quilt) debian/ruby-ttfunk.examples0000644000000000000000000000001312267537752013232 0ustar examples/* debian/compat0000644000000000000000000000000212267537752010404 0ustar 7 debian/copyright0000644000000000000000000001607612267537752011153 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ttfunk Source: http://github.com/sandal/ttfunk Source has been repacked to exclude a copy of Comic Sans MS TrueType non-free font in data/fonts/. Files: * Copyright: Copyright 2008, 2011 Gregory Brown Copyright 2008 Jia Wu Copyright 2008, 2009 Jamis Buck Copyright 2010 Steve Sloan Copyright 2011 James Healy Copyright 2011 Daniel Nelson Copyright 2011 Lucas Florio Copyright 2011 Brad Ediger License: Ruby or GPL-2 or GPL-3 Files: data/fonts/DejaVuSans.ttf Copyright: Copyright 2003 Bitstream, Inc. License: Bitstream Comment: DejaVu changes are in public domain Files: debian/* Copyright: Copyright 2011 Cédric Boutillier License: Ruby or GPL-2 or GPL-3 License: Ruby You can redistribute Prawn and/or modify it under either the terms of the GPLv2 or GPLv3 (see GPLv2 and GPLv3 files), or the conditions below: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or executable form, provided that you do at least ONE of the following: . a) distribute the executables and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard executables non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, full text of the GPL-3 license can be found in `/usr/share/common-licenses/GPL-3' License: Bitstream Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. debian/changelog0000644000000000000000000000132212267537752011056 0ustar ruby-ttfunk (1.1.0+dfsg-1) unstable; urgency=low * Team upload * New upstream version * Bump standards-version to 3.9.5 (no changes needed) -- Gunnar Wolf Tue, 21 Jan 2014 12:34:11 -0600 ruby-ttfunk (1.0.3+dfsg-1) unstable; urgency=low * New upstream version * Build against gem2deb >= 0.3.0 * Bump Standard-Version: to 3.9.3 (no changes needed) -- Cédric Boutillier Fri, 29 Jun 2012 21:44:09 +0200 ruby-ttfunk (1.0.2+dfsg-1) unstable; urgency=low * Initial release (Closes: #640885) * Remove from upstream archive a copy of the non-free Comic Sans MS font. -- Cédric Boutillier Tue, 06 Sep 2011 09:26:33 +0200 debian/rules0000755000000000000000000000236412267537752010273 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_installexamples: dh_installexamples chmod 755 debian/ruby-ttfunk/usr/share/doc/ruby-ttfunk/examples/metrics.rb DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^+]+).*/\1/p') get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=. rm -rf ruby-ttfunk-$(DEB_UPSTREAM_VERSION) tar -xf ruby-ttfunk_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm ruby-ttfunk_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm ttfunk-$(DEB_UPSTREAM_VERSION)/data/fonts/comicsans.ttf mv ttfunk-$(DEB_UPSTREAM_VERSION) ruby-ttfunk-$(DEB_UPSTREAM_VERSION).orig GZIP=--best tar -cz --owner root --group root --mode a+rX -f \ ../ruby-ttfunk_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz ruby-ttfunk-$(DEB_UPSTREAM_VERSION).orig rm -r ruby-ttfunk-$(DEB_UPSTREAM_VERSION).orig debian/watch0000644000000000000000000000020212267537752010231 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ttfunk .*/ttfunk-(.*).tar.gz debian/control0000644000000000000000000000177212267537752010620 0ustar Source: ruby-ttfunk Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-ttfunk.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-ttfunk.git;a=summary Homepage: http://github.com/sandal/ttfunk XS-Ruby-Versions: all Package: ruby-ttfunk Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Suggests: ttf-dejavu-core Description: Ruby library to parse TrueType font metrics TTFunk is a TrueType font parser written in pure Ruby. It gives access to various data included in a .ttf file, including the name, family, subfamily of the font, as well as some metrics information. . TTFunk can be used by Ruby PDF generation libraries, like ruby-prawn.