Kaydet (Commit) 175fcbb0 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

İlk commit vatana millete hayırlı olsun.

üst
This diff is collapsed.
<INARY>
<Name>desktop</Name>
</INARY>
<INARY>
<Name>desktop.font</Name>
</INARY>
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import libtools
from inary.actionsapi import get
def setup():
# Do not rebuild docs
shelltools.export("HASDOCBOOK", "no")
libtools.libtoolize("-f")
autotools.autoreconf("-fi")
autotools.configure("--disable-static \
--disable-docs \
--with-cache-dir=/var/cache/fontconfig \
--with-default-fonts=/usr/share/fonts \
--with-add-fonts=/usr/local/share/fonts")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32": return
inarytools.insinto("/etc/fonts", "fonts.conf", "fonts.conf.new")
enabled_configs = ("10-sub-pixel-rgb.conf", "70-yes-bitmaps.conf")
disabled_configs = ("10-no-sub-pixel.conf",)
for cfg in enabled_configs:
inarytools.dosym("../conf.avail/%s" % cfg, "/etc/fonts/conf.d/%s" % cfg)
for cfg in disabled_configs:
inarytools.remove("/usr/share/fontconfig/conf.avail/%s" % cfg)
for i in ["fc-cat", "fc-list", "fc-match", "fc-cache"]:
inarytools.doman("%s/*.1" % i)
inarytools.doman("doc/*.3")
inarytools.dodoc("AUTHORS", "COPYING", "README", "doc/*.txt")
From 165f0f012f8d4bebb12d188c1c2a369d233d586e Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@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@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
\ No newline at end of file
diff -Nur fontconfig-2.6.0-old/conf.d/10-antialias.conf fontconfig-2.6.0/conf.d/10-antialias.conf
--- fontconfig-2.6.0-old/conf.d/10-antialias.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-antialias.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use the Antialiasing -->
+ <match target="font">
+ <edit name="antialias" mode="assign"><bool>true</bool></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting.conf fontconfig-2.6.0/conf.d/10-hinting.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Hinting -->
+ <match target="font">
+ <edit name="hinting" mode="assign"><bool>true</bool></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-full.conf fontconfig-2.6.0/conf.d/10-hinting-full.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-full.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-full.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Full Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-medium.conf fontconfig-2.6.0/conf.d/10-hinting-medium.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-medium.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-medium.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Medium Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-slight.conf fontconfig-2.6.0/conf.d/10-hinting-slight.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-slight.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-slight.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Slight Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
+ </match>
+</fontconfig>
Index: fontconfig-2.8.0/conf.d/30-urw-aliases.conf
===================================================================
--- fontconfig-2.8.0.orig/conf.d/30-urw-aliases.conf
+++ fontconfig-2.8.0/conf.d/30-urw-aliases.conf
@@ -5,6 +5,13 @@
URW provides metric and shape compatible fonts for some Adobe families.
Helvetica, Courier, and Times are handled in 30-metric-aliases.conf.
-->
+
+<!--
+ However, these fonts are quite ugly and do not render well on-screen,
+ so we avoid matching them if the application said `anymetrics'; in that
+ case, a more generic font with different metrics but better appearance
+ will be used.
+
<alias binding="same">
<family>Avant Garde</family>
<accept><family>URW Gothic L</family></accept>
@@ -29,6 +36,109 @@
<family>Zapf Dingbats</family>
<accept><family>Dingbats</family></accept>
</alias>
+ -->
+
+ <match target="pattern">
+ <test name="family">
+ <string>Avant Garde</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Gothic L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Bookman</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Bookman L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Courier</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Nimbus Mono L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Helvetica</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Nimbus Sans L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>New Century Schoolbook</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Century Schoolbook L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Palatino</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Palladio L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Times</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Nimbus Roman No9 L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Zapf Chancery</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Chancery L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Zapf Dingbats</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Dingbats</string>
+ </edit>
+ </match>
+
+
<match target="pattern">
<test name="family">
<string>Symbol</string>
--- conf.d/50-user.conf.orig 2013-04-09 15:15:06.170861118 +0300
+++ conf.d/50-user.conf 2013-04-09 15:15:37.679861962 +0300
@@ -9,7 +9,4 @@
-->
<include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
<include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
- <!-- the following elements will be removed in the future -->
- <include ignore_missing="yes" deprecated="yes">~/.fonts.conf.d</include>
- <include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include>
</fontconfig>
diff -pruN fontconfig-2.8.90.orig/fc-cache/fc-cache.c fontconfig-2.8.90/fc-cache/fc-cache.c
--- fontconfig-2.8.90.orig/fc-cache/fc-cache.c 2012-02-20 12:49:18.000000000 +0900
+++ fontconfig-2.8.90/fc-cache/fc-cache.c 2012-03-06 12:28:26.000000000 +0900
@@ -465,7 +465,7 @@ main (int argc, char **argv)
FcConfigDestroy (config);
FcFini ();
if (changed)
- sleep (2);
+ sleep (1);
if (verbose)
printf ("%s: %s\n", argv[0], ret ? "failed" : "succeeded");
return ret;
Index: fontconfig-2.8.0/conf.d/60-latin.conf
===================================================================
--- fontconfig-2.8.0.orig/conf.d/60-latin.conf
+++ fontconfig-2.8.0/conf.d/60-latin.conf
@@ -4,8 +4,8 @@
<alias>
<family>serif</family>
<prefer>
- <family>Bitstream Vera Serif</family>
<family>DejaVu Serif</family>
+ <family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>Thorndale AMT</family>
<family>Luxi Serif</family>
@@ -16,8 +16,8 @@
<alias>
<family>sans-serif</family>
<prefer>
- <family>Bitstream Vera Sans</family>
<family>DejaVu Sans</family>
+ <family>Bitstream Vera Sans</family>
<family>Verdana</family>
<family>Arial</family>
<family>Albany AMT</family>
@@ -32,8 +32,8 @@
<alias>
<family>monospace</family>
<prefer>
- <family>Bitstream Vera Sans Mono</family>
<family>DejaVu Sans Mono</family>
+ <family>Bitstream Vera Sans Mono</family>
<family>Inconsolata</family>
<family>Andale Mono</family>
<family>Courier New</family>
diff -Nur fontconfig-2.6.0-old/conf.d/53-monospace-lcd-filter.conf fontconfig-2.6.0/conf.d/53-monospace-lcd-filter.conf
--- fontconfig-2.6.0-old/conf.d/53-monospace-lcd-filter.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/53-monospace-lcd-filter.conf 2008-09-22 11:07:17.000000000 +0300
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- conf.d/monospace-lcd-filter.conf -->
+<fontconfig>
+<!-- Use legacy LCD filter on smaller Monospace fonts -->
+ <match target="font">
+ <test name="family">
+ <string>DejaVu Sans Mono</string>
+ <string>Bitstream Vera Sans Mono</string>
+ </test>
+ <test name="pixelsize" compare="less_eq">
+ <double>12.0</double>
+ </test>
+
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdlegacy</const>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+</fontconfig>
<!DOCTYPE INARY SYSTEM "https://gitlab.com/sulinos/sulinproject/inary/raw/master/inary-spec.dtd">
<INARY>
<Source>
<Name>fontconfig</Name>
<Homepage>http://fontconfig.org</Homepage>
<Packager>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<Summary>A library for configuring and customizing font access</Summary>
<Description>Fontconfig is a library designed to provide system-wide font configuration, customization and application access.</Description>
<Archive sha1sum="b7bcc5d47211b7bbac35bb221860407db3601f5b" type="tarbz2">https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.0.tar.bz2</Archive>
<BuildDependencies>
<Dependency>freetype-devel</Dependency>
<Dependency>expat-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- prefer dejavu over bitstream -->
<Patch level="1">0001-fix-test-with-freetype2-2.7.1.patch</Patch>
<Patch level="1">prefer_dejavu.patch</Patch>
<Patch level="1">use_legacy_lcdfilter_on_small_monospace.patch</Patch>
<!-- <Patch level="1">add_hinting_and_antialiasing_to_proper_fonts.patch</Patch> -->
<!-- Sleep less in fc-cache -->
<Patch level="1">fontconfig-2.8.0-sleep-less.patch</Patch>
<!-- remove deprecated user conf dir -->
<Patch level="0">deprecated-user-conf.patch</Patch>
</Patches>
</Source>
<Package>
<Name>fontconfig</Name>
<RuntimeDependencies>
<Dependency>freetype</Dependency>
<Dependency>expat</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/fonts</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/var/cache/fontconfig</Path>
<Path fileType="data">/usr/share</Path>
</Files>
<Provides>
<SCOM script="package.py">System.Package</SCOM>
<SCOM script="pakhandler.py">System.PackageHandler</SCOM>
</Provides>
</Package>
<Package>
<Name>fontconfig-devel</Name>
<Summary>Development files for fontconfig</Summary>
<RuntimeDependencies>
<Dependency release="current">fontconfig</Dependency>
<Dependency>freetype-devel</Dependency>
<Dependency>expat-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
<Path fileType="doc">/usr/share/doc/fontconfig/fontconfig-devel.txt</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>fontconfig-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for fontconfig</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>expat-32bit</Dependency>
<Dependency>freetype-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">fontconfig</Dependency>
<Dependency>expat-32bit</Dependency>
<Dependency>freetype-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>