[arch-commits] Commit in freetype2/repos (26 files)

Jan de Groot jgc at archlinux.org
Thu Sep 10 07:22:22 UTC 2015


    Date: Thursday, September 10, 2015 @ 09:22:22
  Author: jgc
Revision: 245698

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  freetype2/repos/extra-i686/PKGBUILD
    (from rev 245697, freetype2/trunk/PKGBUILD)
  freetype2/repos/extra-i686/env_FT2_SUBPIXEL_HINTING.diff
    (from rev 245697, freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff)
  freetype2/repos/extra-i686/fix-clipping.patch
    (from rev 245697, freetype2/trunk/fix-clipping.patch)
  freetype2/repos/extra-i686/freetype-2.2.1-enable-valid.patch
    (from rev 245697, freetype2/trunk/freetype-2.2.1-enable-valid.patch)
  freetype2/repos/extra-i686/freetype-2.5.1-enable-sph.patch
    (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-sph.patch)
  freetype2/repos/extra-i686/freetype-2.5.1-enable-spr.patch
    (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-spr.patch)
  freetype2/repos/extra-i686/freetype2.install
    (from rev 245697, freetype2/trunk/freetype2.install)
  freetype2/repos/extra-x86_64/PKGBUILD
    (from rev 245697, freetype2/trunk/PKGBUILD)
  freetype2/repos/extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff
    (from rev 245697, freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff)
  freetype2/repos/extra-x86_64/fix-clipping.patch
    (from rev 245697, freetype2/trunk/fix-clipping.patch)
  freetype2/repos/extra-x86_64/freetype-2.2.1-enable-valid.patch
    (from rev 245697, freetype2/trunk/freetype-2.2.1-enable-valid.patch)
  freetype2/repos/extra-x86_64/freetype-2.5.1-enable-sph.patch
    (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-sph.patch)
  freetype2/repos/extra-x86_64/freetype-2.5.1-enable-spr.patch
    (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-spr.patch)
  freetype2/repos/extra-x86_64/freetype2.install
    (from rev 245697, freetype2/trunk/freetype2.install)
Deleted:
  freetype2/repos/extra-i686/PKGBUILD
  freetype2/repos/extra-i686/env_FT2_SUBPIXEL_HINTING.diff
  freetype2/repos/extra-i686/freetype-2.2.1-enable-valid.patch
  freetype2/repos/extra-i686/freetype-2.5.1-enable-sph.patch
  freetype2/repos/extra-i686/freetype-2.5.1-enable-spr.patch
  freetype2/repos/extra-i686/freetype2.install
  freetype2/repos/extra-x86_64/PKGBUILD
  freetype2/repos/extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff
  freetype2/repos/extra-x86_64/freetype-2.2.1-enable-valid.patch
  freetype2/repos/extra-x86_64/freetype-2.5.1-enable-sph.patch
  freetype2/repos/extra-x86_64/freetype-2.5.1-enable-spr.patch
  freetype2/repos/extra-x86_64/freetype2.install

------------------------------------------------+
 /PKGBUILD                                      |  120 +++++++++++++++++++++++
 /env_FT2_SUBPIXEL_HINTING.diff                 |   36 ++++++
 /freetype-2.2.1-enable-valid.patch             |   40 +++++++
 /freetype-2.5.1-enable-sph.patch               |   26 ++++
 /freetype-2.5.1-enable-spr.patch               |   26 ++++
 /freetype2.install                             |   16 +++
 extra-i686/PKGBUILD                            |   55 ----------
 extra-i686/env_FT2_SUBPIXEL_HINTING.diff       |   18 ---
 extra-i686/fix-clipping.patch                  |   25 ++++
 extra-i686/freetype-2.2.1-enable-valid.patch   |   20 ---
 extra-i686/freetype-2.5.1-enable-sph.patch     |   13 --
 extra-i686/freetype-2.5.1-enable-spr.patch     |   13 --
 extra-i686/freetype2.install                   |    8 -
 extra-x86_64/PKGBUILD                          |   55 ----------
 extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff     |   18 ---
 extra-x86_64/fix-clipping.patch                |   25 ++++
 extra-x86_64/freetype-2.2.1-enable-valid.patch |   20 ---
 extra-x86_64/freetype-2.5.1-enable-sph.patch   |   13 --
 extra-x86_64/freetype-2.5.1-enable-spr.patch   |   13 --
 extra-x86_64/freetype2.install                 |    8 -
 20 files changed, 314 insertions(+), 254 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/PKGBUILD	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=freetype2
-pkgver=2.6
-pkgrel=1
-pkgdesc="TrueType font rendering library"
-arch=(i686 x86_64)
-license=('GPL')
-url="http://freetype.sourceforge.net"
-# adding harfbuzz for improved OpenType features auto-hinting 
-# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
-depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz')
-install=freetype2.install
-source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
-        freetype-2.2.1-enable-valid.patch
-        freetype-2.5.1-enable-spr.patch
-        freetype-2.5.1-enable-sph.patch
-        env_FT2_SUBPIXEL_HINTING.diff)
-sha1sums=('cd2b144205dd2c61693e2d861069367aa3dde1bc'
-          'SKIP'
-          'f279d922a873d62a8af50bfc873051839d194dca'
-          '13ee8d558593db991ad29fa090b461f914536104'
-          'c31fa3d342ead56f3acfa1f267b474a7686d0014'
-          '78322bee05f013cd76487439ddac0cae50596db4')
-validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
-
-prepare() {
-  cd "${srcdir}/freetype-${pkgver}"
-  patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
-  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch"
-
-  # https://bugs.archlinux.org/task/35274
-  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch"
-  # Provide a way to enable the above patch at runtime.
-  # Hopefully just a temporary measure until fontconfig picks up
-  # the necessary configurables.
-  patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff"
-}
-
-build() {
-  cd "${srcdir}/freetype-${pkgver}"
-  ./configure --prefix=/usr --disable-static
-  make
-}
-
-check() {
-  cd "${srcdir}/freetype-${pkgver}"
-  make -k check
-}
-
-package() {
-  cd "${srcdir}/freetype-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-}

Copied: freetype2/repos/extra-i686/PKGBUILD (from rev 245697, freetype2/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=freetype2
+pkgver=2.6
+pkgrel=2
+pkgdesc="TrueType font rendering library"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.freetype.org/"
+# adding harfbuzz for improved OpenType features auto-hinting 
+# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
+depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz')
+install=freetype2.install
+source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
+        freetype-2.2.1-enable-valid.patch
+        freetype-2.5.1-enable-spr.patch
+        freetype-2.5.1-enable-sph.patch
+        env_FT2_SUBPIXEL_HINTING.diff
+        fix-clipping.patch)
+sha1sums=('cd2b144205dd2c61693e2d861069367aa3dde1bc'
+          'SKIP'
+          'f279d922a873d62a8af50bfc873051839d194dca'
+          '13ee8d558593db991ad29fa090b461f914536104'
+          'c31fa3d342ead56f3acfa1f267b474a7686d0014'
+          '78322bee05f013cd76487439ddac0cae50596db4'
+          '55eaf96bd1b68b27ca4278352171f4ae82292744')
+validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
+
+prepare() {
+  cd "${srcdir}/freetype-${pkgver}"
+  patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
+  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch"
+
+  # https://bugs.archlinux.org/task/35274
+  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch"
+  # Provide a way to enable the above patch at runtime.
+  # Hopefully just a temporary measure until fontconfig picks up
+  # the necessary configurables.
+  patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff"
+
+  # FS#45584
+  patch -Np1 -i ../fix-clipping.patch
+}
+
+build() {
+  cd "${srcdir}/freetype-${pkgver}"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd "${srcdir}/freetype-${pkgver}"
+  make -k check
+}
+
+package() {
+  cd "${srcdir}/freetype-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Deleted: extra-i686/env_FT2_SUBPIXEL_HINTING.diff
===================================================================
--- extra-i686/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,18 +0,0 @@
-diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c
---- freetype-2.5.4/src/truetype/ttobjs.c	2014-12-06 18:52:13.098214719 +0100
-+++ freetype-2.5.4-env/src/truetype/ttobjs.c	2014-12-10 09:13:04.418886699 +0100
-@@ -1264,10 +1264,11 @@
-       return FT_THROW( Could_Not_Find_Context );
- 
- #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
--    driver->interpreter_version = TT_INTERPRETER_VERSION_38;
--#else
--    driver->interpreter_version = TT_INTERPRETER_VERSION_35;
-+    if ( getenv( "FT2_SUBPIXEL_HINTING" ) )
-+      driver->interpreter_version = TT_INTERPRETER_VERSION_38;
-+    else
- #endif
-+      driver->interpreter_version = TT_INTERPRETER_VERSION_35;
- 
- #else /* !TT_USE_BYTECODE_INTERPRETER */
- 

Copied: freetype2/repos/extra-i686/env_FT2_SUBPIXEL_HINTING.diff (from rev 245697, freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff)
===================================================================
--- extra-i686/env_FT2_SUBPIXEL_HINTING.diff	                        (rev 0)
+++ extra-i686/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,18 @@
+diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c
+--- freetype-2.5.4/src/truetype/ttobjs.c	2014-12-06 18:52:13.098214719 +0100
++++ freetype-2.5.4-env/src/truetype/ttobjs.c	2014-12-10 09:13:04.418886699 +0100
+@@ -1264,10 +1264,11 @@
+       return FT_THROW( Could_Not_Find_Context );
+ 
+ #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
+-    driver->interpreter_version = TT_INTERPRETER_VERSION_38;
+-#else
+-    driver->interpreter_version = TT_INTERPRETER_VERSION_35;
++    if ( getenv( "FT2_SUBPIXEL_HINTING" ) )
++      driver->interpreter_version = TT_INTERPRETER_VERSION_38;
++    else
+ #endif
++      driver->interpreter_version = TT_INTERPRETER_VERSION_35;
+ 
+ #else /* !TT_USE_BYTECODE_INTERPRETER */
+ 

Copied: freetype2/repos/extra-i686/fix-clipping.patch (from rev 245697, freetype2/trunk/fix-clipping.patch)
===================================================================
--- extra-i686/fix-clipping.patch	                        (rev 0)
+++ extra-i686/fix-clipping.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,25 @@
+From b650dfbb0b0700440cc88da31f97cec45b4140de Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <matthias.clasen at gmail.com>
+Date: Sun, 26 Jul 2015 19:08:34 +0000
+Subject: [cff] Don't use `hmtx' table for LSB (#45520).
+
+* src/cff/cffgload.c (cff_slot_load): Use `htmx' table for advance
+width only.  Bug introduced 2015-04-10.
+---
+diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
+index 43054f8..a075ddc 100644
+--- a/src/cff/cffgload.c
++++ b/src/cff/cffgload.c
+@@ -3064,9 +3064,7 @@
+         metrics->width  = cbox.xMax - cbox.xMin;
+         metrics->height = cbox.yMax - cbox.yMin;
+ 
+-        if ( !face->horizontal.number_Of_HMetrics )
+-          metrics->horiBearingX = cbox.xMin;
+-
++        metrics->horiBearingX = cbox.xMin;
+         metrics->horiBearingY = cbox.yMax;
+ 
+         if ( has_vertical_info )
+--
+cgit v0.9.0.2

Deleted: extra-i686/freetype-2.2.1-enable-valid.patch
===================================================================
--- extra-i686/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,20 +0,0 @@
---- freetype-2.2.1/modules.cfg.orig	2006-07-07 21:01:09.000000000 -0400
-+++ freetype-2.2.1/modules.cfg	2006-07-07 21:01:54.000000000 -0400
-@@ -110,7 +110,7 @@
- AUX_MODULES += cache
- 
- # TrueType GX/AAT table validation.  Needs ftgxval.c below.
--# AUX_MODULES += gxvalid
-+AUX_MODULES += gxvalid
- 
- # Support for streams compressed with gzip (files with suffix .gz).
- #
-@@ -124,7 +124,7 @@
- 
- # OpenType table validation.  Needs ftotval.c below.
- #
--# AUX_MODULES += otvalid
-+AUX_MODULES += otvalid
- 
- # Auxiliary PostScript driver component to share common code.
- #

Copied: freetype2/repos/extra-i686/freetype-2.2.1-enable-valid.patch (from rev 245697, freetype2/trunk/freetype-2.2.1-enable-valid.patch)
===================================================================
--- extra-i686/freetype-2.2.1-enable-valid.patch	                        (rev 0)
+++ extra-i686/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,20 @@
+--- freetype-2.2.1/modules.cfg.orig	2006-07-07 21:01:09.000000000 -0400
++++ freetype-2.2.1/modules.cfg	2006-07-07 21:01:54.000000000 -0400
+@@ -110,7 +110,7 @@
+ AUX_MODULES += cache
+ 
+ # TrueType GX/AAT table validation.  Needs ftgxval.c below.
+-# AUX_MODULES += gxvalid
++AUX_MODULES += gxvalid
+ 
+ # Support for streams compressed with gzip (files with suffix .gz).
+ #
+@@ -124,7 +124,7 @@
+ 
+ # OpenType table validation.  Needs ftotval.c below.
+ #
+-# AUX_MODULES += otvalid
++AUX_MODULES += otvalid
+ 
+ # Auxiliary PostScript driver component to share common code.
+ #

Deleted: extra-i686/freetype-2.5.1-enable-sph.patch
===================================================================
--- extra-i686/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,13 +0,0 @@
-diff --git i/include/config/ftoption.h w/include/config/ftoption.h
-index fe2ba15..1ab4226 100644
---- i/include/config/ftoption.h
-+++ w/include/config/ftoption.h
-@@ -591,7 +591,7 @@ FT_BEGIN_HEADER
-   /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
-   /*   defined.                                                            */
-   /*                                                                       */
--/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
-+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
- 
- 
-   /*************************************************************************/

Copied: freetype2/repos/extra-i686/freetype-2.5.1-enable-sph.patch (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-sph.patch)
===================================================================
--- extra-i686/freetype-2.5.1-enable-sph.patch	                        (rev 0)
+++ extra-i686/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,13 @@
+diff --git i/include/config/ftoption.h w/include/config/ftoption.h
+index fe2ba15..1ab4226 100644
+--- i/include/config/ftoption.h
++++ w/include/config/ftoption.h
+@@ -591,7 +591,7 @@ FT_BEGIN_HEADER
+   /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
+   /*   defined.                                                            */
+   /*                                                                       */
+-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
+ 
+ 
+   /*************************************************************************/

Deleted: extra-i686/freetype-2.5.1-enable-spr.patch
===================================================================
--- extra-i686/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,13 +0,0 @@
-diff --git i/include/config/ftoption.h w/include/config/ftoption.h
-index fe2ba15..22ce1a3 100644
---- i/include/config/ftoption.h
-+++ w/include/config/ftoption.h
-@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
-   /* This is done to allow FreeType clients to run unmodified, forcing     */
-   /* them to display normal gray-level anti-aliased glyphs.                */
-   /*                                                                       */
--/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
-+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
- 
- 
-   /*************************************************************************/

Copied: freetype2/repos/extra-i686/freetype-2.5.1-enable-spr.patch (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-spr.patch)
===================================================================
--- extra-i686/freetype-2.5.1-enable-spr.patch	                        (rev 0)
+++ extra-i686/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,13 @@
+diff --git i/include/config/ftoption.h w/include/config/ftoption.h
+index fe2ba15..22ce1a3 100644
+--- i/include/config/ftoption.h
++++ w/include/config/ftoption.h
+@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
+   /* This is done to allow FreeType clients to run unmodified, forcing     */
+   /* them to display normal gray-level anti-aliased glyphs.                */
+   /*                                                                       */
+-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+ 
+ 
+   /*************************************************************************/

Deleted: extra-i686/freetype2.install
===================================================================
--- extra-i686/freetype2.install	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-i686/freetype2.install	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,8 +0,0 @@
-post_upgrade() {
-  if (( $(vercmp $2 2.5.4-3) < 0 )); then
-    cat <<MSG
-  Subpixel hinting can be enabled by adding FT2_SUBPIXEL_HINTING=1
-  to your environment, for example /etc/environment or ~/.pam_environment .
-MSG
-  fi
-}

Copied: freetype2/repos/extra-i686/freetype2.install (from rev 245697, freetype2/trunk/freetype2.install)
===================================================================
--- extra-i686/freetype2.install	                        (rev 0)
+++ extra-i686/freetype2.install	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,8 @@
+post_upgrade() {
+  if (( $(vercmp $2 2.5.4-3) < 0 )); then
+    cat <<MSG
+  Subpixel hinting can be enabled by adding FT2_SUBPIXEL_HINTING=1
+  to your environment, for example /etc/environment or ~/.pam_environment .
+MSG
+  fi
+}

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/PKGBUILD	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=freetype2
-pkgver=2.6
-pkgrel=1
-pkgdesc="TrueType font rendering library"
-arch=(i686 x86_64)
-license=('GPL')
-url="http://freetype.sourceforge.net"
-# adding harfbuzz for improved OpenType features auto-hinting 
-# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
-depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz')
-install=freetype2.install
-source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
-        freetype-2.2.1-enable-valid.patch
-        freetype-2.5.1-enable-spr.patch
-        freetype-2.5.1-enable-sph.patch
-        env_FT2_SUBPIXEL_HINTING.diff)
-sha1sums=('cd2b144205dd2c61693e2d861069367aa3dde1bc'
-          'SKIP'
-          'f279d922a873d62a8af50bfc873051839d194dca'
-          '13ee8d558593db991ad29fa090b461f914536104'
-          'c31fa3d342ead56f3acfa1f267b474a7686d0014'
-          '78322bee05f013cd76487439ddac0cae50596db4')
-validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
-
-prepare() {
-  cd "${srcdir}/freetype-${pkgver}"
-  patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
-  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch"
-
-  # https://bugs.archlinux.org/task/35274
-  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch"
-  # Provide a way to enable the above patch at runtime.
-  # Hopefully just a temporary measure until fontconfig picks up
-  # the necessary configurables.
-  patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff"
-}
-
-build() {
-  cd "${srcdir}/freetype-${pkgver}"
-  ./configure --prefix=/usr --disable-static
-  make
-}
-
-check() {
-  cd "${srcdir}/freetype-${pkgver}"
-  make -k check
-}
-
-package() {
-  cd "${srcdir}/freetype-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-}

Copied: freetype2/repos/extra-x86_64/PKGBUILD (from rev 245697, freetype2/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=freetype2
+pkgver=2.6
+pkgrel=2
+pkgdesc="TrueType font rendering library"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.freetype.org/"
+# adding harfbuzz for improved OpenType features auto-hinting 
+# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
+depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz')
+install=freetype2.install
+source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
+        freetype-2.2.1-enable-valid.patch
+        freetype-2.5.1-enable-spr.patch
+        freetype-2.5.1-enable-sph.patch
+        env_FT2_SUBPIXEL_HINTING.diff
+        fix-clipping.patch)
+sha1sums=('cd2b144205dd2c61693e2d861069367aa3dde1bc'
+          'SKIP'
+          'f279d922a873d62a8af50bfc873051839d194dca'
+          '13ee8d558593db991ad29fa090b461f914536104'
+          'c31fa3d342ead56f3acfa1f267b474a7686d0014'
+          '78322bee05f013cd76487439ddac0cae50596db4'
+          '55eaf96bd1b68b27ca4278352171f4ae82292744')
+validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
+
+prepare() {
+  cd "${srcdir}/freetype-${pkgver}"
+  patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
+  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch"
+
+  # https://bugs.archlinux.org/task/35274
+  patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch"
+  # Provide a way to enable the above patch at runtime.
+  # Hopefully just a temporary measure until fontconfig picks up
+  # the necessary configurables.
+  patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff"
+
+  # FS#45584
+  patch -Np1 -i ../fix-clipping.patch
+}
+
+build() {
+  cd "${srcdir}/freetype-${pkgver}"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd "${srcdir}/freetype-${pkgver}"
+  make -k check
+}
+
+package() {
+  cd "${srcdir}/freetype-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Deleted: extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff
===================================================================
--- extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,18 +0,0 @@
-diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c
---- freetype-2.5.4/src/truetype/ttobjs.c	2014-12-06 18:52:13.098214719 +0100
-+++ freetype-2.5.4-env/src/truetype/ttobjs.c	2014-12-10 09:13:04.418886699 +0100
-@@ -1264,10 +1264,11 @@
-       return FT_THROW( Could_Not_Find_Context );
- 
- #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
--    driver->interpreter_version = TT_INTERPRETER_VERSION_38;
--#else
--    driver->interpreter_version = TT_INTERPRETER_VERSION_35;
-+    if ( getenv( "FT2_SUBPIXEL_HINTING" ) )
-+      driver->interpreter_version = TT_INTERPRETER_VERSION_38;
-+    else
- #endif
-+      driver->interpreter_version = TT_INTERPRETER_VERSION_35;
- 
- #else /* !TT_USE_BYTECODE_INTERPRETER */
- 

Copied: freetype2/repos/extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff (from rev 245697, freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff)
===================================================================
--- extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff	                        (rev 0)
+++ extra-x86_64/env_FT2_SUBPIXEL_HINTING.diff	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,18 @@
+diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c
+--- freetype-2.5.4/src/truetype/ttobjs.c	2014-12-06 18:52:13.098214719 +0100
++++ freetype-2.5.4-env/src/truetype/ttobjs.c	2014-12-10 09:13:04.418886699 +0100
+@@ -1264,10 +1264,11 @@
+       return FT_THROW( Could_Not_Find_Context );
+ 
+ #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
+-    driver->interpreter_version = TT_INTERPRETER_VERSION_38;
+-#else
+-    driver->interpreter_version = TT_INTERPRETER_VERSION_35;
++    if ( getenv( "FT2_SUBPIXEL_HINTING" ) )
++      driver->interpreter_version = TT_INTERPRETER_VERSION_38;
++    else
+ #endif
++      driver->interpreter_version = TT_INTERPRETER_VERSION_35;
+ 
+ #else /* !TT_USE_BYTECODE_INTERPRETER */
+ 

Copied: freetype2/repos/extra-x86_64/fix-clipping.patch (from rev 245697, freetype2/trunk/fix-clipping.patch)
===================================================================
--- extra-x86_64/fix-clipping.patch	                        (rev 0)
+++ extra-x86_64/fix-clipping.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,25 @@
+From b650dfbb0b0700440cc88da31f97cec45b4140de Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <matthias.clasen at gmail.com>
+Date: Sun, 26 Jul 2015 19:08:34 +0000
+Subject: [cff] Don't use `hmtx' table for LSB (#45520).
+
+* src/cff/cffgload.c (cff_slot_load): Use `htmx' table for advance
+width only.  Bug introduced 2015-04-10.
+---
+diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
+index 43054f8..a075ddc 100644
+--- a/src/cff/cffgload.c
++++ b/src/cff/cffgload.c
+@@ -3064,9 +3064,7 @@
+         metrics->width  = cbox.xMax - cbox.xMin;
+         metrics->height = cbox.yMax - cbox.yMin;
+ 
+-        if ( !face->horizontal.number_Of_HMetrics )
+-          metrics->horiBearingX = cbox.xMin;
+-
++        metrics->horiBearingX = cbox.xMin;
+         metrics->horiBearingY = cbox.yMax;
+ 
+         if ( has_vertical_info )
+--
+cgit v0.9.0.2

Deleted: extra-x86_64/freetype-2.2.1-enable-valid.patch
===================================================================
--- extra-x86_64/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,20 +0,0 @@
---- freetype-2.2.1/modules.cfg.orig	2006-07-07 21:01:09.000000000 -0400
-+++ freetype-2.2.1/modules.cfg	2006-07-07 21:01:54.000000000 -0400
-@@ -110,7 +110,7 @@
- AUX_MODULES += cache
- 
- # TrueType GX/AAT table validation.  Needs ftgxval.c below.
--# AUX_MODULES += gxvalid
-+AUX_MODULES += gxvalid
- 
- # Support for streams compressed with gzip (files with suffix .gz).
- #
-@@ -124,7 +124,7 @@
- 
- # OpenType table validation.  Needs ftotval.c below.
- #
--# AUX_MODULES += otvalid
-+AUX_MODULES += otvalid
- 
- # Auxiliary PostScript driver component to share common code.
- #

Copied: freetype2/repos/extra-x86_64/freetype-2.2.1-enable-valid.patch (from rev 245697, freetype2/trunk/freetype-2.2.1-enable-valid.patch)
===================================================================
--- extra-x86_64/freetype-2.2.1-enable-valid.patch	                        (rev 0)
+++ extra-x86_64/freetype-2.2.1-enable-valid.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,20 @@
+--- freetype-2.2.1/modules.cfg.orig	2006-07-07 21:01:09.000000000 -0400
++++ freetype-2.2.1/modules.cfg	2006-07-07 21:01:54.000000000 -0400
+@@ -110,7 +110,7 @@
+ AUX_MODULES += cache
+ 
+ # TrueType GX/AAT table validation.  Needs ftgxval.c below.
+-# AUX_MODULES += gxvalid
++AUX_MODULES += gxvalid
+ 
+ # Support for streams compressed with gzip (files with suffix .gz).
+ #
+@@ -124,7 +124,7 @@
+ 
+ # OpenType table validation.  Needs ftotval.c below.
+ #
+-# AUX_MODULES += otvalid
++AUX_MODULES += otvalid
+ 
+ # Auxiliary PostScript driver component to share common code.
+ #

Deleted: extra-x86_64/freetype-2.5.1-enable-sph.patch
===================================================================
--- extra-x86_64/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,13 +0,0 @@
-diff --git i/include/config/ftoption.h w/include/config/ftoption.h
-index fe2ba15..1ab4226 100644
---- i/include/config/ftoption.h
-+++ w/include/config/ftoption.h
-@@ -591,7 +591,7 @@ FT_BEGIN_HEADER
-   /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
-   /*   defined.                                                            */
-   /*                                                                       */
--/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
-+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
- 
- 
-   /*************************************************************************/

Copied: freetype2/repos/extra-x86_64/freetype-2.5.1-enable-sph.patch (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-sph.patch)
===================================================================
--- extra-x86_64/freetype-2.5.1-enable-sph.patch	                        (rev 0)
+++ extra-x86_64/freetype-2.5.1-enable-sph.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,13 @@
+diff --git i/include/config/ftoption.h w/include/config/ftoption.h
+index fe2ba15..1ab4226 100644
+--- i/include/config/ftoption.h
++++ w/include/config/ftoption.h
+@@ -591,7 +591,7 @@ FT_BEGIN_HEADER
+   /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
+   /*   defined.                                                            */
+   /*                                                                       */
+-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
+ 
+ 
+   /*************************************************************************/

Deleted: extra-x86_64/freetype-2.5.1-enable-spr.patch
===================================================================
--- extra-x86_64/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,13 +0,0 @@
-diff --git i/include/config/ftoption.h w/include/config/ftoption.h
-index fe2ba15..22ce1a3 100644
---- i/include/config/ftoption.h
-+++ w/include/config/ftoption.h
-@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
-   /* This is done to allow FreeType clients to run unmodified, forcing     */
-   /* them to display normal gray-level anti-aliased glyphs.                */
-   /*                                                                       */
--/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
-+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
- 
- 
-   /*************************************************************************/

Copied: freetype2/repos/extra-x86_64/freetype-2.5.1-enable-spr.patch (from rev 245697, freetype2/trunk/freetype-2.5.1-enable-spr.patch)
===================================================================
--- extra-x86_64/freetype-2.5.1-enable-spr.patch	                        (rev 0)
+++ extra-x86_64/freetype-2.5.1-enable-spr.patch	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,13 @@
+diff --git i/include/config/ftoption.h w/include/config/ftoption.h
+index fe2ba15..22ce1a3 100644
+--- i/include/config/ftoption.h
++++ w/include/config/ftoption.h
+@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
+   /* This is done to allow FreeType clients to run unmodified, forcing     */
+   /* them to display normal gray-level anti-aliased glyphs.                */
+   /*                                                                       */
+-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+ 
+ 
+   /*************************************************************************/

Deleted: extra-x86_64/freetype2.install
===================================================================
--- extra-x86_64/freetype2.install	2015-09-10 07:22:09 UTC (rev 245697)
+++ extra-x86_64/freetype2.install	2015-09-10 07:22:22 UTC (rev 245698)
@@ -1,8 +0,0 @@
-post_upgrade() {
-  if (( $(vercmp $2 2.5.4-3) < 0 )); then
-    cat <<MSG
-  Subpixel hinting can be enabled by adding FT2_SUBPIXEL_HINTING=1
-  to your environment, for example /etc/environment or ~/.pam_environment .
-MSG
-  fi
-}

Copied: freetype2/repos/extra-x86_64/freetype2.install (from rev 245697, freetype2/trunk/freetype2.install)
===================================================================
--- extra-x86_64/freetype2.install	                        (rev 0)
+++ extra-x86_64/freetype2.install	2015-09-10 07:22:22 UTC (rev 245698)
@@ -0,0 +1,8 @@
+post_upgrade() {
+  if (( $(vercmp $2 2.5.4-3) < 0 )); then
+    cat <<MSG
+  Subpixel hinting can be enabled by adding FT2_SUBPIXEL_HINTING=1
+  to your environment, for example /etc/environment or ~/.pam_environment .
+MSG
+  fi
+}



More information about the arch-commits mailing list