Date: Saturday, October 10, 2020 @ 20:21:29 Author: heftig Revision: 397936
archrelease: copy trunk to testing-x86_64 Added: freetype2/repos/testing-x86_64/ freetype2/repos/testing-x86_64/0001-Enable-table-validation-modules.patch (from rev 397935, freetype2/trunk/0001-Enable-table-validation-modules.patch) freetype2/repos/testing-x86_64/0002-Enable-subpixel-rendering.patch (from rev 397935, freetype2/trunk/0002-Enable-subpixel-rendering.patch) freetype2/repos/testing-x86_64/0003-Enable-infinality-subpixel-hinting.patch (from rev 397935, freetype2/trunk/0003-Enable-infinality-subpixel-hinting.patch) freetype2/repos/testing-x86_64/0004-Enable-long-PCF-family-names.patch (from rev 397935, freetype2/trunk/0004-Enable-long-PCF-family-names.patch) freetype2/repos/testing-x86_64/PKGBUILD (from rev 397935, freetype2/trunk/PKGBUILD) freetype2/repos/testing-x86_64/freetype2.install (from rev 397935, freetype2/trunk/freetype2.install) freetype2/repos/testing-x86_64/freetype2.sh (from rev 397935, freetype2/trunk/freetype2.sh) -----------------------------------------------+ 0001-Enable-table-validation-modules.patch | 42 ++++++++++ 0002-Enable-subpixel-rendering.patch | 22 +++++ 0003-Enable-infinality-subpixel-hinting.patch | 24 +++++ 0004-Enable-long-PCF-family-names.patch | 22 +++++ PKGBUILD | 99 ++++++++++++++++++++++++ freetype2.install | 8 + freetype2.sh | 12 ++ 7 files changed, 229 insertions(+) Copied: freetype2/repos/testing-x86_64/0001-Enable-table-validation-modules.patch (from rev 397935, freetype2/trunk/0001-Enable-table-validation-modules.patch) =================================================================== --- testing-x86_64/0001-Enable-table-validation-modules.patch (rev 0) +++ testing-x86_64/0001-Enable-table-validation-modules.patch 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steff...@gmail.com> +Date: Tue, 23 Jun 2015 08:40:29 +0200 +Subject: [PATCH] Enable table validation modules + +--- + modules.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules.cfg b/modules.cfg +index d6cdbe523..181f91541 100644 +--- a/modules.cfg ++++ b/modules.cfg +@@ -111,26 +111,26 @@ 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). + # + # See include/freetype/ftgzip.h for the API. + AUX_MODULES += gzip + + # Support for streams compressed with LZW (files with suffix .Z). + # + # See include/freetype/ftlzw.h for the API. + AUX_MODULES += lzw + + # Support for streams compressed with bzip2 (files with suffix .bz2). + # + # See include/freetype/ftbzip2.h for the API. + AUX_MODULES += bzip2 + + # OpenType table validation. Needs `ftotval.c' below. + # +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # Copied: freetype2/repos/testing-x86_64/0002-Enable-subpixel-rendering.patch (from rev 397935, freetype2/trunk/0002-Enable-subpixel-rendering.patch) =================================================================== --- testing-x86_64/0002-Enable-subpixel-rendering.patch (rev 0) +++ testing-x86_64/0002-Enable-subpixel-rendering.patch 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steff...@gmail.com> +Date: Tue, 23 Jun 2015 08:43:07 +0200 +Subject: [PATCH] Enable subpixel rendering + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index 097f19b8a..e5de62e35 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -124,7 +124,7 @@ FT_BEGIN_HEADER + * When this macro is not defined, FreeType offers alternative LCD + * rendering technology that produces excellent output. + */ +-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ ++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING + + + /************************************************************************** Copied: freetype2/repos/testing-x86_64/0003-Enable-infinality-subpixel-hinting.patch (from rev 397935, freetype2/trunk/0003-Enable-infinality-subpixel-hinting.patch) =================================================================== --- testing-x86_64/0003-Enable-infinality-subpixel-hinting.patch (rev 0) +++ testing-x86_64/0003-Enable-infinality-subpixel-hinting.patch 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steff...@gmail.com> +Date: Mon, 29 Aug 2016 08:43:10 +0200 +Subject: [PATCH] Enable infinality subpixel hinting + +--- + include/freetype/config/ftoption.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index e5de62e35..acb4d6d6a 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -672,8 +672,8 @@ FT_BEGIN_HEADER + * https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx + */ + /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ +-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /************************************************************************** Copied: freetype2/repos/testing-x86_64/0004-Enable-long-PCF-family-names.patch (from rev 397935, freetype2/trunk/0004-Enable-long-PCF-family-names.patch) =================================================================== --- testing-x86_64/0004-Enable-long-PCF-family-names.patch (rev 0) +++ testing-x86_64/0004-Enable-long-PCF-family-names.patch 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steff...@gmail.com> +Date: Sun, 14 May 2017 18:09:31 +0200 +Subject: [PATCH] Enable long PCF family names + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index acb4d6d6a..efa13b9c6 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -861,7 +861,7 @@ FT_BEGIN_HEADER + * If this option is activated, it can be controlled with the + * `no-long-family-names` property of the 'pcf' driver module. + */ +-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ ++#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES + + + /*************************************************************************/ Copied: freetype2/repos/testing-x86_64/PKGBUILD (from rev 397935, freetype2/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,99 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> +# Maintainer: Jan de Groot <j...@archlinux.org> + +pkgbase=freetype2 +pkgname=(freetype2 freetype2-demos freetype2-docs) +pkgver=2.10.3 +pkgrel=1 +pkgdesc="Font rasterization library" +url="https://www.freetype.org/" +arch=(x86_64) +license=(GPL) +# 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) +makedepends=(libx11) +source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz{,.sig} + https://download-mirror.savannah.gnu.org/releases/freetype/freetype-doc-$pkgver.tar.xz{,.sig} + https://download-mirror.savannah.gnu.org/releases/freetype/ft2demos-$pkgver.tar.xz{,.sig} + 0001-Enable-table-validation-modules.patch + 0002-Enable-subpixel-rendering.patch + 0003-Enable-infinality-subpixel-hinting.patch + 0004-Enable-long-PCF-family-names.patch + freetype2.sh) +sha256sums=('c22244bc766b2d8152f22db7370965431dcb1e408260428208c24984f78e6659' + 'SKIP' + 'e4ebf0a4ca0b59cfe71976dfd0e2713a3e2de1f87d5f9666dd1d3246556d184f' + 'SKIP' + '38a0cf3c47725213877b7620ce4153ab35c1e03345093469e85d7a7c2b3e94de' + 'SKIP' + 'f41df4f336d5e82e58733c7a4594476c9216cfc85c096327745a7e1b559e17e1' + 'dc77c1cfee4bf8e7e0690628c95d211df09e0d0750e4c8f075b78b5f105514f7' + '21a62bc12b848320c686d602d8d4e3bcd51294a9def4dc9c301736e077b59f3f' + '266384222f87a02fb02b2179828f6c26fe6d7b1fd09d1f7e3734e7fcb09cda2e' + 'f7f8e09c44f7552c883846e9a6a1efc50377c4932234e74adc4a8ff750606467') +validpgpkeys=(58E0C111E39F5408C5D3EC76C1A60EACE707FDA5) # Werner Lemberg <w...@gnu.org> + +prepare() { + # Rename source dir to allow building the demos + mv freetype-$pkgver freetype2 + mv ft2demos-$pkgver freetype2-demos + + cd freetype2 + patch -Np1 -i ../0001-Enable-table-validation-modules.patch + patch -Np1 -i ../0002-Enable-subpixel-rendering.patch + patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch + patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch + + cd ../freetype2-demos + + # Suppress RPATH + sed -i '/X11_LIB:%=-R%/d' graph/x11/rules.mk +} + +build() { + cd freetype2 + ./configure --prefix=/usr --disable-static + make + + # Build demos + cd ../freetype2-demos + make +} + +check() { + cd freetype2 + make -k check +} + +package_freetype2() { + provides=(libfreetype.so) + install=freetype2.install + backup=(etc/profile.d/freetype2.sh) + + cd freetype2 + make DESTDIR="$pkgdir" install + install -Dt "$pkgdir/etc/profile.d" -m644 ../freetype2.sh +} + +package_freetype2-demos() { + pkgdesc="Freetype tools and demos" + depends=(freetype2 libx11) + + cd freetype2-demos + install -d "$pkgdir/usr/bin" + for _i in bin/{f,t}t*; do + libtool --mode=install install $_i "$pkgdir/usr/bin" + done +} + +package_freetype2-docs() { + pkgdesc="Freetype documentation" + depends=(freetype2) + + cd freetype2 + install -d "${pkgdir}/usr/share/doc" + cp -a docs "${pkgdir}/usr/share/doc/freetype2" +} + +# vim:set ts=2 sw=2 et: Copied: freetype2/repos/testing-x86_64/freetype2.install (from rev 397935, freetype2/trunk/freetype2.install) =================================================================== --- testing-x86_64/freetype2.install (rev 0) +++ testing-x86_64/freetype2.install 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,8 @@ +post_upgrade() { + if (( $(vercmp $2 2.7-1) < 0 )); then + cat <<MSG + The Arch-specific FT2_SUBPIXEL_HINTING has been removed. + Subpixel hinting is now configured in /etc/profile.d/freetype2.sh . +MSG + fi +} Copied: freetype2/repos/testing-x86_64/freetype2.sh (from rev 397935, freetype2/trunk/freetype2.sh) =================================================================== --- testing-x86_64/freetype2.sh (rev 0) +++ testing-x86_64/freetype2.sh 2020-10-10 20:21:29 UTC (rev 397936) @@ -0,0 +1,12 @@ +# Subpixel hinting mode can be chosen by setting the right TrueType interpreter +# version. The available settings are: +# +# truetype:interpreter-version=35 # Classic mode (default in 2.6) +# truetype:interpreter-version=38 # Infinality mode +# truetype:interpreter-version=40 # Minimal mode (default in 2.7) +# +# There are more properties that can be set, separated by whitespace. Please +# refer to the FreeType documentation for details. + +# Uncomment and configure below +#export FREETYPE_PROPERTIES="truetype:interpreter-version=40"