[arch-commits] Commit in fontconfig/repos (16 files)

Jan Steffens heftig at archlinux.org
Wed May 31 20:13:04 UTC 2017


    Date: Wednesday, May 31, 2017 @ 20:13:03
  Author: heftig
Revision: 297024

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

Added:
  fontconfig/repos/extra-i686/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch
    (from rev 297023, fontconfig/trunk/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
  fontconfig/repos/extra-i686/PKGBUILD
    (from rev 297023, fontconfig/trunk/PKGBUILD)
  fontconfig/repos/extra-i686/fontconfig.hook
    (from rev 297023, fontconfig/trunk/fontconfig.hook)
  fontconfig/repos/extra-i686/fontconfig.install
    (from rev 297023, fontconfig/trunk/fontconfig.install)
  fontconfig/repos/extra-x86_64/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch
    (from rev 297023, fontconfig/trunk/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
  fontconfig/repos/extra-x86_64/PKGBUILD
    (from rev 297023, fontconfig/trunk/PKGBUILD)
  fontconfig/repos/extra-x86_64/fontconfig.hook
    (from rev 297023, fontconfig/trunk/fontconfig.hook)
  fontconfig/repos/extra-x86_64/fontconfig.install
    (from rev 297023, fontconfig/trunk/fontconfig.install)
Deleted:
  fontconfig/repos/extra-i686/0001-fix-test-with-freetype2-2.7.1.patch
  fontconfig/repos/extra-i686/PKGBUILD
  fontconfig/repos/extra-i686/fontconfig.hook
  fontconfig/repos/extra-i686/fontconfig.install
  fontconfig/repos/extra-x86_64/0001-fix-test-with-freetype2-2.7.1.patch
  fontconfig/repos/extra-x86_64/PKGBUILD
  fontconfig/repos/extra-x86_64/fontconfig.hook
  fontconfig/repos/extra-x86_64/fontconfig.install

------------------------------------------------------------------------------+
 /PKGBUILD                                                                    |  132 ++++++++++
 /fontconfig.hook                                                             |   22 +
 /fontconfig.install                                                          |   76 +++++
 extra-i686/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch   |   70 +++++
 extra-i686/0001-fix-test-with-freetype2-2.7.1.patch                          |   42 ---
 extra-i686/PKGBUILD                                                          |   58 ----
 extra-i686/fontconfig.hook                                                   |   11 
 extra-i686/fontconfig.install                                                |   40 ---
 extra-x86_64/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch |   70 +++++
 extra-x86_64/0001-fix-test-with-freetype2-2.7.1.patch                        |   42 ---
 extra-x86_64/PKGBUILD                                                        |   58 ----
 extra-x86_64/fontconfig.hook                                                 |   11 
 extra-x86_64/fontconfig.install                                              |   40 ---
 13 files changed, 370 insertions(+), 302 deletions(-)

Copied: fontconfig/repos/extra-i686/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch (from rev 297023, fontconfig/trunk/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
===================================================================
--- extra-i686/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch	                        (rev 0)
+++ extra-i686/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,70 @@
+From 6d60728439b94847e62e8f2d1c7d4a799073f524 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Wed, 31 May 2017 21:38:26 +0200
+Subject: [PATCH] Fix testing PCF_CONFIG_OPTION_LONG_FAMILY_NAMES (CFLAGS need
+ to be right)
+
+---
+ configure.ac | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 15633ec1e74b5747..50ab113cc4d01673 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -301,43 +301,45 @@ AC_DEFINE_UNQUOTED(USE_ICONV,$use_iconv,[Use iconv.])
+ PKG_CHECK_MODULES(FREETYPE, freetype2)
+ PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
+ 
++AC_SUBST(FREETYPE_LIBS)
++AC_SUBST(FREETYPE_CFLAGS)
++
++fontconfig_save_libs="$LIBS"
++fontconfig_save_cflags="$CFLAGS"
++LIBS="$LIBS $FREETYPE_LIBS"
++CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
++
+ dnl See http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/VERSIONS.TXT for versioning in freetype
+ dnl
+ dnl The outcome of the family property has been changed in freetype-2.7.1.
+ dnl Our test cases relies on it and need to update the dependency to get it success.
+ dnl However it isn't exactly required to run fontconfig itself.
+ dnl so adding another test here for compatibility. it might be simplified in the future.
+ PKG_CHECK_EXISTS([freetype2 = 19.0.13], [have_freetype_2_7_1=yes], [have_freetype_2_7_1=no])
+ PKG_CHECK_EXISTS([freetype2 >= 20.0.14],
+ 	[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ 		#include <ft2build.h>
+ 		#include FT_CONFIG_OPTIONS_H
+ 		#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
+ 		#  error "No pcf long family names support"
+ 		#endif
+ 		]])], [have_pcf_long_family_names=yes], [have_pcf_long_family_names=no])],
+ 	[have_pcf_long_family_names=no])
+ AM_CONDITIONAL(FREETYPE_PCF_LONG_FAMILY_NAMES, test "x$have_freetype_2_7_1" = xyes -o "x$have_pcf_long_family_names" = xyes)
+ 
+-AC_SUBST(FREETYPE_LIBS)
+-AC_SUBST(FREETYPE_CFLAGS)
+-
+-fontconfig_save_libs="$LIBS"
+-fontconfig_save_cflags="$CFLAGS"
+-LIBS="$LIBS $FREETYPE_LIBS"
+-CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
+ AC_CHECK_FUNCS(FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size)
+ AC_CHECK_MEMBER(FT_Bitmap_Size.y_ppem,
+ 		HAVE_FT_BITMAP_SIZE_Y_PPEM=1,
+ 		HAVE_FT_BITMAP_SIZE_Y_PPEM=0,
+ [#include <ft2build.h>
+ #include FT_FREETYPE_H])
+ AC_DEFINE_UNQUOTED(HAVE_FT_BITMAP_SIZE_Y_PPEM,$HAVE_FT_BITMAP_SIZE_Y_PPEM,
+ 		   [FT_Bitmap_Size structure includes y_ppem field])
+ AC_CHECK_MEMBERS([TT_OS2.usLowerOpticalPointSize, TT_OS2.usUpperOpticalPointSize], [], [], [[
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ #include FT_TRUETYPE_TABLES_H]])
++
+ CFLAGS="$fontconfig_save_cflags"
+ LIBS="$fontconfig_save_libs"
+ 
+-- 
+2.13.0
+

Deleted: extra-i686/0001-fix-test-with-freetype2-2.7.1.patch
===================================================================
--- extra-i686/0001-fix-test-with-freetype2-2.7.1.patch	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-i686/0001-fix-test-with-freetype2-2.7.1.patch	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,42 +0,0 @@
-From 165f0f012f8d4bebb12d188c1c2a369d233d586e Mon Sep 17 00:00:00 2001
-From: Christian Hesse <mail at eworm.de>
-Date: Tue, 10 Jan 2017 10:01:54 +0100
-Subject: [PATCH 1/1] fix test with freetype2 2.7.1
-
-Upstream freetype2 applied a patch from openSuSE [0]:
-
-[pcf] Enrich family name with foundry name and glyph width info.
-3576487add2f0e9691e8c43f8b0cd8e61aebf14f
-
-This prepends the foundry name plus a space to the family name. We needs
-change the font name in expexted test output.
-
-[0] http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3576487add2f0e9691e8c43f8b0cd8e61aebf14f
-
-Signed-off-by: Christian Hesse <mail at eworm.de>
----
- test/out.expected | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/test/out.expected b/test/out.expected
-index 39634c5..f3a8856 100644
---- a/test/out.expected
-+++ b/test/out.expected
-@@ -1,8 +1,8 @@
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
- =
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
- =
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
--- 
-2.11.0
-

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-i686/PKGBUILD	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=fontconfig
-pkgver=2.12.1
-pkgrel=4
-pkgdesc="A library for configuring and customizing font access"
-arch=(i686 x86_64)
-url="http://www.fontconfig.org/release/"
-license=('custom')
-depends=('expat' 'freetype2')
-makedepends=('python2' 'docbook2x')
-install=fontconfig.install
-source=(http://www.fontconfig.org/release/$pkgname-$pkgver.tar.bz2
-        fontconfig.hook
-        0001-fix-test-with-freetype2-2.7.1.patch)
-sha256sums=('b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3'
-            '672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274'
-            'b4992aab4e2b4ddae01f7565486752fa877edb6cd5ed435e15938ed21dfe22c8')
-
-# a nice page to test font matching:
-# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
-# http://getemoji.com/
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -Np1 < "$srcdir/0001-fix-test-with-freetype2-2.7.1.patch"
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-templatedir=/etc/fonts/conf.avail \
-    --with-xmldir=/etc/fonts \
-    --localstatedir=/var \
-    --disable-static \
-    --with-default-fonts=/usr/share/fonts \
-    --with-add-fonts=/usr/share/fonts
-  make
-}
-
-check() {
-  cd $pkgname-$pkgver
-  make -k check
-}
-
-_install_conf() {
-  install -m644 "$1" "$pkgdir/etc/fonts/conf.avail"
-  ln -s "../conf.avail/${1##*/}" "$pkgdir/etc/fonts/conf.d"
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-  install -Dm644 $srcdir/fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
-}

Copied: fontconfig/repos/extra-i686/PKGBUILD (from rev 297023, fontconfig/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=fontconfig
+pkgver=2.12.3
+pkgrel=1
+pkgdesc="A library for configuring and customizing font access"
+arch=(i686 x86_64)
+url="https://www.freedesktop.org/wiki/Software/fontconfig/"
+license=(custom)
+depends=(expat freetype2)
+makedepends=(git autoconf-archive gperf python-lxml python-six docbook-utils docbook-sgml
+             perl-sgmls texlive-htmlxml lynx)
+install=fontconfig.install
+_commit=690f822a1b26b089d86e9843746cab80f3c07fe3  # tags/2.12.3^0
+source=("git+https://anongit.freedesktop.org/git/fontconfig#commit=$_commit"
+        fontconfig.hook
+        0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
+sha256sums=('SKIP'
+            '672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274'
+            '02aa1f39e69aa16fdf9ca91c011a2f0853c896f257e5c14d0c2759a1d93012aa')
+
+# a nice page to test font matching:
+# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
+# http://getemoji.com/
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  patch -Np1 -i ../0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-templatedir=/etc/fonts/conf.avail \
+    --with-xmldir=/etc/fonts \
+    --localstatedir=/var \
+    --disable-static \
+    --with-default-fonts=/usr/share/fonts \
+    --with-add-fonts=/usr/share/fonts
+  make
+}
+
+check() {
+  cd $pkgname
+  make -k check
+}
+
+_install_conf() {
+  install -m644 "$1" "$pkgdir/etc/fonts/conf.avail"
+  ln -s "../conf.avail/${1##*/}" "$pkgdir/etc/fonts/conf.d"
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dm644 ../fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
+}

Deleted: extra-i686/fontconfig.hook
===================================================================
--- extra-i686/fontconfig.hook	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-i686/fontconfig.hook	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,11 +0,0 @@
-[Trigger]
-Type = File
-Operation = Install
-Operation = Upgrade
-Operation = Remove
-Target = usr/share/fonts/*
-
-[Action]
-Description = Updating fontconfig cache...
-When = PostTransaction
-Exec = /usr/bin/fc-cache -s

Copied: fontconfig/repos/extra-i686/fontconfig.hook (from rev 297023, fontconfig/trunk/fontconfig.hook)
===================================================================
--- extra-i686/fontconfig.hook	                        (rev 0)
+++ extra-i686/fontconfig.hook	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*
+
+[Action]
+Description = Updating fontconfig cache...
+When = PostTransaction
+Exec = /usr/bin/fc-cache -s

Deleted: extra-i686/fontconfig.install
===================================================================
--- extra-i686/fontconfig.install	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-i686/fontconfig.install	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,40 +0,0 @@
-post_install() {
-  cat << _EOF
-  
-  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
-  Read /etc/fonts/conf.d/README for more information.
-
-  Configuration via /etc/fonts/local.conf is still possible,
-  but is no longer recommended for options available in conf.avail.
-
-  Main systemwide configuration should be done by symlinks
-  (especially for autohinting, sub-pixel and lcdfilter):
-  
-  cd /etc/fonts/conf.d
-  ln -s ../conf.avail/XX-foo.conf
-  
-  Check also https://wiki.archlinux.org/index.php/Font_Configuration
-  and https://wiki.archlinux.org/index.php/Fonts.
-
-_EOF
-
-  echo -n "updating font cache... "
-  # a full forced directory scan is required here
-  /usr/bin/fc-cache -f
-  echo "done."
-}
-
-post_upgrade() {
-  echo -n "updating font cache... "
-  /usr/bin/fc-cache -f
-  echo "done."
-}
-
-post_remove() {
-  cat << _EOF
-
-  Check for dead symlinks and leftover files 
-  in /etc/fonts/conf.d/
-  
-_EOF
-}

Copied: fontconfig/repos/extra-i686/fontconfig.install (from rev 297023, fontconfig/trunk/fontconfig.install)
===================================================================
--- extra-i686/fontconfig.install	                        (rev 0)
+++ extra-i686/fontconfig.install	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,38 @@
+post_install() {
+  cat << _EOF
+  
+  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
+  Read /etc/fonts/conf.d/README for more information.
+
+  Configuration via /etc/fonts/local.conf is still possible,
+  but is no longer recommended for options available in conf.avail.
+
+  Main systemwide configuration should be done by symlinks
+  (especially for autohinting, sub-pixel and lcdfilter):
+  
+  cd /etc/fonts/conf.d
+  ln -s ../conf.avail/XX-foo.conf
+  
+  Check also https://wiki.archlinux.org/index.php/Font_Configuration
+  and https://wiki.archlinux.org/index.php/Fonts.
+
+_EOF
+
+  post_upgrade $1
+}
+
+post_upgrade() {
+  echo -n "Rebuilding fontconfig cache..."
+  # a full forced directory scan is required here
+  /usr/bin/fc-cache -rs
+  echo " done."
+}
+
+post_remove() {
+  cat << _EOF
+
+  Check for dead symlinks and leftover files 
+  in /etc/fonts/conf.d/
+  
+_EOF
+}

Copied: fontconfig/repos/extra-x86_64/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch (from rev 297023, fontconfig/trunk/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
===================================================================
--- extra-x86_64/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch	                        (rev 0)
+++ extra-x86_64/0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,70 @@
+From 6d60728439b94847e62e8f2d1c7d4a799073f524 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Wed, 31 May 2017 21:38:26 +0200
+Subject: [PATCH] Fix testing PCF_CONFIG_OPTION_LONG_FAMILY_NAMES (CFLAGS need
+ to be right)
+
+---
+ configure.ac | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 15633ec1e74b5747..50ab113cc4d01673 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -301,43 +301,45 @@ AC_DEFINE_UNQUOTED(USE_ICONV,$use_iconv,[Use iconv.])
+ PKG_CHECK_MODULES(FREETYPE, freetype2)
+ PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
+ 
++AC_SUBST(FREETYPE_LIBS)
++AC_SUBST(FREETYPE_CFLAGS)
++
++fontconfig_save_libs="$LIBS"
++fontconfig_save_cflags="$CFLAGS"
++LIBS="$LIBS $FREETYPE_LIBS"
++CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
++
+ dnl See http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/VERSIONS.TXT for versioning in freetype
+ dnl
+ dnl The outcome of the family property has been changed in freetype-2.7.1.
+ dnl Our test cases relies on it and need to update the dependency to get it success.
+ dnl However it isn't exactly required to run fontconfig itself.
+ dnl so adding another test here for compatibility. it might be simplified in the future.
+ PKG_CHECK_EXISTS([freetype2 = 19.0.13], [have_freetype_2_7_1=yes], [have_freetype_2_7_1=no])
+ PKG_CHECK_EXISTS([freetype2 >= 20.0.14],
+ 	[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ 		#include <ft2build.h>
+ 		#include FT_CONFIG_OPTIONS_H
+ 		#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
+ 		#  error "No pcf long family names support"
+ 		#endif
+ 		]])], [have_pcf_long_family_names=yes], [have_pcf_long_family_names=no])],
+ 	[have_pcf_long_family_names=no])
+ AM_CONDITIONAL(FREETYPE_PCF_LONG_FAMILY_NAMES, test "x$have_freetype_2_7_1" = xyes -o "x$have_pcf_long_family_names" = xyes)
+ 
+-AC_SUBST(FREETYPE_LIBS)
+-AC_SUBST(FREETYPE_CFLAGS)
+-
+-fontconfig_save_libs="$LIBS"
+-fontconfig_save_cflags="$CFLAGS"
+-LIBS="$LIBS $FREETYPE_LIBS"
+-CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
+ AC_CHECK_FUNCS(FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size)
+ AC_CHECK_MEMBER(FT_Bitmap_Size.y_ppem,
+ 		HAVE_FT_BITMAP_SIZE_Y_PPEM=1,
+ 		HAVE_FT_BITMAP_SIZE_Y_PPEM=0,
+ [#include <ft2build.h>
+ #include FT_FREETYPE_H])
+ AC_DEFINE_UNQUOTED(HAVE_FT_BITMAP_SIZE_Y_PPEM,$HAVE_FT_BITMAP_SIZE_Y_PPEM,
+ 		   [FT_Bitmap_Size structure includes y_ppem field])
+ AC_CHECK_MEMBERS([TT_OS2.usLowerOpticalPointSize, TT_OS2.usUpperOpticalPointSize], [], [], [[
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ #include FT_TRUETYPE_TABLES_H]])
++
+ CFLAGS="$fontconfig_save_cflags"
+ LIBS="$fontconfig_save_libs"
+ 
+-- 
+2.13.0
+

Deleted: extra-x86_64/0001-fix-test-with-freetype2-2.7.1.patch
===================================================================
--- extra-x86_64/0001-fix-test-with-freetype2-2.7.1.patch	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-x86_64/0001-fix-test-with-freetype2-2.7.1.patch	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,42 +0,0 @@
-From 165f0f012f8d4bebb12d188c1c2a369d233d586e Mon Sep 17 00:00:00 2001
-From: Christian Hesse <mail at eworm.de>
-Date: Tue, 10 Jan 2017 10:01:54 +0100
-Subject: [PATCH 1/1] fix test with freetype2 2.7.1
-
-Upstream freetype2 applied a patch from openSuSE [0]:
-
-[pcf] Enrich family name with foundry name and glyph width info.
-3576487add2f0e9691e8c43f8b0cd8e61aebf14f
-
-This prepends the foundry name plus a space to the family name. We needs
-change the font name in expexted test output.
-
-[0] http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3576487add2f0e9691e8c43f8b0cd8e61aebf14f
-
-Signed-off-by: Christian Hesse <mail at eworm.de>
----
- test/out.expected | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/test/out.expected b/test/out.expected
-index 39634c5..f3a8856 100644
---- a/test/out.expected
-+++ b/test/out.expected
-@@ -1,8 +1,8 @@
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
- =
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
- =
--Fixed:pixelsize=16
--Fixed:pixelsize=6
-+Misc Fixed:pixelsize=6
-+Sony Fixed:pixelsize=16
--- 
-2.11.0
-

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-x86_64/PKGBUILD	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=fontconfig
-pkgver=2.12.1
-pkgrel=4
-pkgdesc="A library for configuring and customizing font access"
-arch=(i686 x86_64)
-url="http://www.fontconfig.org/release/"
-license=('custom')
-depends=('expat' 'freetype2')
-makedepends=('python2' 'docbook2x')
-install=fontconfig.install
-source=(http://www.fontconfig.org/release/$pkgname-$pkgver.tar.bz2
-        fontconfig.hook
-        0001-fix-test-with-freetype2-2.7.1.patch)
-sha256sums=('b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3'
-            '672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274'
-            'b4992aab4e2b4ddae01f7565486752fa877edb6cd5ed435e15938ed21dfe22c8')
-
-# a nice page to test font matching:
-# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
-# http://getemoji.com/
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -Np1 < "$srcdir/0001-fix-test-with-freetype2-2.7.1.patch"
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-templatedir=/etc/fonts/conf.avail \
-    --with-xmldir=/etc/fonts \
-    --localstatedir=/var \
-    --disable-static \
-    --with-default-fonts=/usr/share/fonts \
-    --with-add-fonts=/usr/share/fonts
-  make
-}
-
-check() {
-  cd $pkgname-$pkgver
-  make -k check
-}
-
-_install_conf() {
-  install -m644 "$1" "$pkgdir/etc/fonts/conf.avail"
-  ln -s "../conf.avail/${1##*/}" "$pkgdir/etc/fonts/conf.d"
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-  install -Dm644 $srcdir/fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
-}

Copied: fontconfig/repos/extra-x86_64/PKGBUILD (from rev 297023, fontconfig/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=fontconfig
+pkgver=2.12.3
+pkgrel=1
+pkgdesc="A library for configuring and customizing font access"
+arch=(i686 x86_64)
+url="https://www.freedesktop.org/wiki/Software/fontconfig/"
+license=(custom)
+depends=(expat freetype2)
+makedepends=(git autoconf-archive gperf python-lxml python-six docbook-utils docbook-sgml
+             perl-sgmls texlive-htmlxml lynx)
+install=fontconfig.install
+_commit=690f822a1b26b089d86e9843746cab80f3c07fe3  # tags/2.12.3^0
+source=("git+https://anongit.freedesktop.org/git/fontconfig#commit=$_commit"
+        fontconfig.hook
+        0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch)
+sha256sums=('SKIP'
+            '672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274'
+            '02aa1f39e69aa16fdf9ca91c011a2f0853c896f257e5c14d0c2759a1d93012aa')
+
+# a nice page to test font matching:
+# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
+# http://getemoji.com/
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  patch -Np1 -i ../0001-Fix-testing-PCF_CONFIG_OPTION_LONG_FAMILY_NAMES-CFLA.patch
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-templatedir=/etc/fonts/conf.avail \
+    --with-xmldir=/etc/fonts \
+    --localstatedir=/var \
+    --disable-static \
+    --with-default-fonts=/usr/share/fonts \
+    --with-add-fonts=/usr/share/fonts
+  make
+}
+
+check() {
+  cd $pkgname
+  make -k check
+}
+
+_install_conf() {
+  install -m644 "$1" "$pkgdir/etc/fonts/conf.avail"
+  ln -s "../conf.avail/${1##*/}" "$pkgdir/etc/fonts/conf.d"
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dm644 ../fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
+}

Deleted: extra-x86_64/fontconfig.hook
===================================================================
--- extra-x86_64/fontconfig.hook	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-x86_64/fontconfig.hook	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,11 +0,0 @@
-[Trigger]
-Type = File
-Operation = Install
-Operation = Upgrade
-Operation = Remove
-Target = usr/share/fonts/*
-
-[Action]
-Description = Updating fontconfig cache...
-When = PostTransaction
-Exec = /usr/bin/fc-cache -s

Copied: fontconfig/repos/extra-x86_64/fontconfig.hook (from rev 297023, fontconfig/trunk/fontconfig.hook)
===================================================================
--- extra-x86_64/fontconfig.hook	                        (rev 0)
+++ extra-x86_64/fontconfig.hook	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*
+
+[Action]
+Description = Updating fontconfig cache...
+When = PostTransaction
+Exec = /usr/bin/fc-cache -s

Deleted: extra-x86_64/fontconfig.install
===================================================================
--- extra-x86_64/fontconfig.install	2017-05-31 20:10:43 UTC (rev 297023)
+++ extra-x86_64/fontconfig.install	2017-05-31 20:13:03 UTC (rev 297024)
@@ -1,40 +0,0 @@
-post_install() {
-  cat << _EOF
-  
-  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
-  Read /etc/fonts/conf.d/README for more information.
-
-  Configuration via /etc/fonts/local.conf is still possible,
-  but is no longer recommended for options available in conf.avail.
-
-  Main systemwide configuration should be done by symlinks
-  (especially for autohinting, sub-pixel and lcdfilter):
-  
-  cd /etc/fonts/conf.d
-  ln -s ../conf.avail/XX-foo.conf
-  
-  Check also https://wiki.archlinux.org/index.php/Font_Configuration
-  and https://wiki.archlinux.org/index.php/Fonts.
-
-_EOF
-
-  echo -n "updating font cache... "
-  # a full forced directory scan is required here
-  /usr/bin/fc-cache -f
-  echo "done."
-}
-
-post_upgrade() {
-  echo -n "updating font cache... "
-  /usr/bin/fc-cache -f
-  echo "done."
-}
-
-post_remove() {
-  cat << _EOF
-
-  Check for dead symlinks and leftover files 
-  in /etc/fonts/conf.d/
-  
-_EOF
-}

Copied: fontconfig/repos/extra-x86_64/fontconfig.install (from rev 297023, fontconfig/trunk/fontconfig.install)
===================================================================
--- extra-x86_64/fontconfig.install	                        (rev 0)
+++ extra-x86_64/fontconfig.install	2017-05-31 20:13:03 UTC (rev 297024)
@@ -0,0 +1,38 @@
+post_install() {
+  cat << _EOF
+  
+  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
+  Read /etc/fonts/conf.d/README for more information.
+
+  Configuration via /etc/fonts/local.conf is still possible,
+  but is no longer recommended for options available in conf.avail.
+
+  Main systemwide configuration should be done by symlinks
+  (especially for autohinting, sub-pixel and lcdfilter):
+  
+  cd /etc/fonts/conf.d
+  ln -s ../conf.avail/XX-foo.conf
+  
+  Check also https://wiki.archlinux.org/index.php/Font_Configuration
+  and https://wiki.archlinux.org/index.php/Fonts.
+
+_EOF
+
+  post_upgrade $1
+}
+
+post_upgrade() {
+  echo -n "Rebuilding fontconfig cache..."
+  # a full forced directory scan is required here
+  /usr/bin/fc-cache -rs
+  echo " done."
+}
+
+post_remove() {
+  cat << _EOF
+
+  Check for dead symlinks and leftover files 
+  in /etc/fonts/conf.d/
+  
+_EOF
+}



More information about the arch-commits mailing list