r23693 - in /trunk/libfont-freetype-perl/debian: ./ changelog compat control copyright patches/ patches/00list patches/01_build_fix.dpatch patches/02_new_functions.dpatch rules watch

foka at users.alioth.debian.org foka at users.alioth.debian.org
Wed Jul 30 03:12:58 UTC 2008


Author: foka
Date: Wed Jul 30 03:12:55 2008
New Revision: 23693

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=23693
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    trunk/libfont-freetype-perl/debian/
    trunk/libfont-freetype-perl/debian/changelog
    trunk/libfont-freetype-perl/debian/compat
    trunk/libfont-freetype-perl/debian/control
    trunk/libfont-freetype-perl/debian/copyright
    trunk/libfont-freetype-perl/debian/patches/
    trunk/libfont-freetype-perl/debian/patches/00list
    trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch   (with props)
    trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch   (with props)
    trunk/libfont-freetype-perl/debian/rules   (with props)
    trunk/libfont-freetype-perl/debian/watch

Added: trunk/libfont-freetype-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/changelog?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/changelog (added)
+++ trunk/libfont-freetype-perl/debian/changelog Wed Jul 30 03:12:55 2008
@@ -1,0 +1,7 @@
+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 <foka at debian.org>  Sun, 27 Jul 2008 13:12:44 +0800

Added: trunk/libfont-freetype-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/compat?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/compat (added)
+++ trunk/libfont-freetype-perl/debian/compat Wed Jul 30 03:12:55 2008
@@ -1,0 +1,1 @@
+5

Added: trunk/libfont-freetype-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/control?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/control (added)
+++ trunk/libfont-freetype-perl/debian/control Wed Jul 30 03:12:55 2008
@@ -1,0 +1,20 @@
+Source: libfont-freetype-perl
+Section: perl
+Priority: optional
+Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+Uploaders: Anthony Fok <foka at debian.org>
+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.

Added: trunk/libfont-freetype-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/copyright?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/copyright (added)
+++ trunk/libfont-freetype-perl/debian/copyright Wed Jul 30 03:12:55 2008
@@ -1,0 +1,105 @@
+This is the Debian package for the Font-FreeType module for Perl.
+It was created by Anthony Fok <foka at debian.org> 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 <geoff at laxan.com>
+
+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 <foka at debian.org> 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.

Added: trunk/libfont-freetype-perl/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/patches/00list?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/patches/00list (added)
+++ trunk/libfont-freetype-perl/debian/patches/00list Wed Jul 30 03:12:55 2008
@@ -1,0 +1,2 @@
+01_build_fix
+02_new_functions

Added: trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch (added)
+++ trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch Wed Jul 30 03:12:55 2008
@@ -1,0 +1,37 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_build_fix.dpatch by Anthony Fok <foka at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch from SuSE's Mike Fabian <mfabian at suse.de> to fix build.
+
+ at 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 <assert.h>
+@@ -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) {

Propchange: trunk/libfont-freetype-perl/debian/patches/01_build_fix.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch (added)
+++ trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch Wed Jul 30 03:12:55 2008
@@ -1,0 +1,54 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_new_functions.dpatch by Anthony Fok <foka at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Experimental new functions needed to replace libft-perl for defoma.
+## DP: Unfinished.
+
+ at 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 <assert.h>
+@@ -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_
+ 
+ 

Propchange: trunk/libfont-freetype-perl/debian/patches/02_new_functions.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libfont-freetype-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/rules?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/rules (added)
+++ trunk/libfont-freetype-perl/debian/rules Wed Jul 30 03:12:55 2008
@@ -1,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 <marc at dch-faq.de> 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

Propchange: trunk/libfont-freetype-perl/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libfont-freetype-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-freetype-perl/debian/watch?rev=23693&op=file
==============================================================================
--- trunk/libfont-freetype-perl/debian/watch (added)
+++ trunk/libfont-freetype-perl/debian/watch Wed Jul 30 03:12:55 2008
@@ -1,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)$




More information about the Pkg-perl-cvs-commits mailing list