--- libfont-freetype-perl-0.03.orig/debian/watch +++ libfont-freetype-perl-0.03/debian/watch @@ -0,0 +1,7 @@ +# format version number, currently 3; this line is compulsory! +version=3 +# URL to the package page followed by a regex to search +http://search.cpan.org/dist/Font-FreeType/ .*/Font-FreeType-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +#http://www.cpan.org/modules/by-module/Font/Font-FreeType-(.*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +#http://www.cpan.org/modules/by-module/Font/Font-FreeType-(.*)\.tar\.gz +#http://search.cpan.org/dist/Font-FreeType/ .*/Font-FreeType-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libfont-freetype-perl-0.03.orig/debian/rules +++ libfont-freetype-perl-0.03/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# This debian/rules file is based on a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PERL ?= /usr/bin/perl +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + +# Allow disabling build optimisation by setting noopt in +# $DEB_BUILD_OPTIONS +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: patch + dh_testdir + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH="" + # Disable for now. Fail to pass the test - Anthony Fok 2008-07-27 + #$(MAKE) test + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + # FIXME: One file is left behind; try fixing Makefile.PL instead. + # - Anthony Fok 2008-07-27 + rm -f t/data/bdf_glyphs.txt + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + # Add commands to install the package into $(TMP) + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/share/perl5 ] || \ + rmdir --ignore-fail-on-non-empty --parents --verbose \ + $(TMP)/usr/share/perl5 + touch $@ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do here for an architecture-dependent package + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installexamples examples/* + dh_installdocs TODO + dh_installchangelogs Changes + dh_shlibdeps + dh_strip + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libfont-freetype-perl-0.03.orig/debian/copyright +++ libfont-freetype-perl-0.03/debian/copyright @@ -0,0 +1,105 @@ +This is the Debian package for the Font-FreeType module for Perl. +It was created by Anthony Fok using dh-make-perl +on Wed, 23 Jul 2008 12:55:56 +0800. + +It was downloaded from + http://search.cpan.org/CPAN/authors/id/G/GE/GEOFFR/Font-FreeType-0.03.tar.gz + +Upstream Author: + + Geoff Richards + +Copyright: + + Copyright (C) 2004, Geoff Richards. + +License: + + This library is free software; you can redistribute it and/or modify it + under the same terms as Perl itself. + + Perl is distributed under your choice of the GNU General Public License + or the Artistic License. On Debian systems, the complete text of the + GNU General Public License can be found in `/usr/share/common-licenses/GPL' + and the Artistic Licence in `/usr/share/common-licenses/Artistic'. + + +The Debian packaging is (C) 2008, Anthony Fok and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + +The upstream source tarball directory t/data/ contains two font files, +which are used by the test suite to make sure that the Font::FreeType +module works with some real-life fonts. Both of these are Free Software, +and can therefore be legally redistributed with the module. + + +The font file '5x7.bdf' contains a small bitmap font, and has the following +non-copyright terms: + + "Public domain font. Share and enjoy." + +The file '5x7.fnt' was converted from '5x7.bdf' using 'fontforge'. It only +contains the glyphs up to character 255. + + +The font file 'Vera.ttf' contains a sans-serif font in TrueType format from +Bitstream, Inc. It can be obtained freely from this webpage: + + http://www.gnome.org/fonts/ + +The font is licensed under the following terms: + + BitstreamVeraSans-Roman + + Release 1.10 + + Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. + + Bitstream Vera is a trademark of Bitstream, Inc. + + 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. --- libfont-freetype-perl-0.03.orig/debian/compat +++ libfont-freetype-perl-0.03/debian/compat @@ -0,0 +1 @@ +5 --- libfont-freetype-perl-0.03.orig/debian/control +++ libfont-freetype-perl-0.03/debian/control @@ -0,0 +1,20 @@ +Source: libfont-freetype-perl +Section: perl +Priority: optional +Maintainer: Debian Perl Group +Uploaders: Anthony Fok +Build-Depends: debhelper (>= 5), dpatch, perl (>= 5.6.10-12), libfreetype6-dev +Standards-Version: 3.8.0 +Homepage: http://search.cpan.org/dist/Font-FreeType/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libfont-freetype-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/ + +Package: libfont-freetype-perl +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} +Description: Read font files and render glyphs from Perl using FreeType2 + This module allows Perl programs to conveniently read information from + font files. All the font access is done through the FreeType2 library, + which supports many formats. It can render images of characters with + high-quality hinting and antialiasing, extract metrics information, and + extract the outlines of characters in scalable formats like TrueType. --- libfont-freetype-perl-0.03.orig/debian/changelog +++ libfont-freetype-perl-0.03/debian/changelog @@ -0,0 +1,31 @@ +libfont-freetype-perl (0.03-1build4) trusty; urgency=low + + * Rebuild for Perl 5.18. + + -- Colin Watson Mon, 21 Oct 2013 10:05:32 +0100 + +libfont-freetype-perl (0.03-1build3) quantal; urgency=low + + * Rebuild for new armel compiler default of ARMv5t. + + -- Colin Watson Thu, 04 Oct 2012 16:25:46 +0100 + +libfont-freetype-perl (0.03-1build2) precise; urgency=low + + * Rebuild for Perl 5.14. + + -- Colin Watson Tue, 15 Nov 2011 09:57:12 +0000 + +libfont-freetype-perl (0.03-1build1) oneiric; urgency=low + + * Rebuild for Perl 5.12. + + -- Colin Watson Sat, 07 May 2011 01:58:08 +0100 + +libfont-freetype-perl (0.03-1) unstable; urgency=low + + * Initial release. (Closes: #492546) + * Applied build.patch found in openSUSE perl-Font-FreeType-0.03-51.1 + source RPM package to fix compilation error. Many thanks! + + -- Anthony Fok Sun, 27 Jul 2008 13:12:44 +0800 --- libfont-freetype-perl-0.03.orig/debian/patches/02_new_functions.dpatch +++ libfont-freetype-perl-0.03/debian/patches/02_new_functions.dpatch @@ -0,0 +1,54 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_new_functions.dpatch by Anthony Fok +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Experimental new functions needed to replace libft-perl for defoma. +## DP: Unfinished. + +@DPATCH@ +diff -urNad libfont-freetype-perl-0.03~/FreeType.xs libfont-freetype-perl-0.03/FreeType.xs +--- libfont-freetype-perl-0.03~/FreeType.xs 2008-07-27 15:23:57.000000000 +0800 ++++ libfont-freetype-perl-0.03/FreeType.xs 2008-07-27 15:23:57.000000000 +0800 +@@ -22,6 +22,7 @@ + #include FT_OUTLINE_H + #include FT_BBOX_H + #include FT_TYPE1_TABLES_H ++#include FT_SFNT_NAMES_H + + #undef assert + #include +@@ -765,6 +766,34 @@ + } + + ++long ++qefft2_face_number_of_charmaps (Font_FreeType_Face face) ++ CODE: ++ RETVAL = face->num_charmaps; ++ OUTPUT: ++ RETVAL ++ ++int ++qefft2_face_sfnt_name_count (Font_FreeType_Face face) ++ CODE: ++ RETVAL = FT_Get_Sfnt_Name_Count(face); ++ OUTPUT: ++ RETVAL ++ ++SV * ++qefft2_face_sfnt_name (Font_FreeType_Face face, FT_UInt idx) ++ PREINIT: ++ const char *ps_name; ++ CODE: ++ ps_name = FT_Get_Postscript_Name(face); ++ if (ps_name) ++ RETVAL = newSVpv(ps_name, 0); ++ else ++ RETVAL = &PL_sv_undef; ++ OUTPUT: ++ RETVAL ++ ++ + MODULE = Font::FreeType PACKAGE = Font::FreeType::Glyph PREFIX = qefft2_glyph_ + + --- libfont-freetype-perl-0.03.orig/debian/patches/00list +++ libfont-freetype-perl-0.03/debian/patches/00list @@ -0,0 +1,2 @@ +01_build_fix +02_new_functions --- libfont-freetype-perl-0.03.orig/debian/patches/01_build_fix.dpatch +++ libfont-freetype-perl-0.03/debian/patches/01_build_fix.dpatch @@ -0,0 +1,37 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_build_fix.dpatch by Anthony Fok +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch from SuSE's Mike Fabian to fix build. + +@DPATCH@ +diff -urNad libfont-freetype-perl-0.03~/FreeType.xs libfont-freetype-perl-0.03/FreeType.xs +--- libfont-freetype-perl-0.03~/FreeType.xs 2008-07-27 15:22:06.000000000 +0800 ++++ libfont-freetype-perl-0.03/FreeType.xs 2008-07-27 15:23:14.000000000 +0800 +@@ -21,6 +21,7 @@ + #include FT_GLYPH_H + #include FT_OUTLINE_H + #include FT_BBOX_H ++#include FT_TYPE1_TABLES_H + + #undef assert + #include +@@ -805,7 +806,8 @@ + char_code = FT_Get_First_Char(face, &glyph_idx); + while (glyph_idx) { + if (glyph_idx == glyph->index) { +- RETVAL = newSVuv((UV) glyph->char_code = char_code); ++ glyph->char_code = char_code; ++ RETVAL = newSVuv((UV) glyph->char_code); + break; + } + char_code = FT_Get_Next_Char(face, char_code, &glyph_idx); +@@ -1052,7 +1054,7 @@ + rows = newAV(); + av_extend(rows, bitmap->rows - 1); + buf = bitmap->buffer; +- row_buf = New(0, row_buf, bitmap->width, unsigned char); ++ New(0, row_buf, bitmap->width, unsigned char); + + if (bitmap->pixel_mode == FT_PIXEL_MODE_MONO) { + for (i = 0; i < bitmap->rows; ++i) {