[Lunar-commits] <moonbase-core> fontconfig: Moved from xorg to core.

Peter de Ridder peter at lunar-linux.org
Tue Mar 26 20:35:50 CET 2013


commit 0d40159816fbd752cd960e0d0408a48940102bd5
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Tue, 26 Mar 2013 12:35:50 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/0d40159816fbd752cd960e0d0408a48940102bd5

fontconfig: Moved from xorg to core.
---
  fonts/fontconfig/10-lunar-fonts.conf | +10/-0    
  fonts/fontconfig/BUILD               | +32/-0    
  fonts/fontconfig/CONFIGURE           | +1/-0     
  fonts/fontconfig/DEPENDS             | +3/-0     
  fonts/fontconfig/DETAILS             | +21/-0    
  fonts/fontconfig/POST_INSTALL        | +9/-0     
  6 files changed, 76 insertions(+)

--- /dev/null
+++ b/fonts/fontconfig/10-lunar-fonts.conf
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- Provided by lunar to make fonts world accessable -->
+<fontconfig>
+
+<!-- Font directory list -->
+
+	<dir>/usr/lib/X11/fonts</dir>
+
+</fontconfig>
--- /dev/null
+++ b/fonts/fontconfig/BUILD
@@ -0,0 +1,32 @@
+(
+
+  # We need to clear the cache dir or otherwise the build is going to fail
+  if [ -d /var/cache/fontconfig ] ; then
+    rm -f /var/cache/fontconfig/*
+  fi
+
+  # There is a documented issue when the user does not have a
+  # timezone set (/etc/localtime). It creates invalid XML
+  # syntax in a comment located in /etc/fonts/fonts.conf.
+  sedit "s:\`date\`::" configure  &&
+
+
+  ./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     \
+              $OPTS                                &&
+
+
+#  sedit "s:(BASECONFIGDIR):(CONFIGDIR):" Makefile  &&
+
+  default_make &&
+
+  install -m644 $SCRIPT_DIRECTORY/10-lunar-fonts.conf \
+                /etc/fonts/conf.d/
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/fonts/fontconfig/CONFIGURE
@@ -0,0 +1 @@
+mquery DOCS "Build docs?" n "" "--disable-docs"
--- /dev/null
+++ b/fonts/fontconfig/DEPENDS
@@ -0,0 +1,3 @@
+depends  sed
+depends  expat
+depends  freetype2
--- /dev/null
+++ b/fonts/fontconfig/DETAILS
@@ -0,0 +1,21 @@
+          MODULE=fontconfig
+         VERSION=2.10.2
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://www.fontconfig.org/release
+      SOURCE_VFY=sha1:3999fc8a850c3bd07c71837f0579ec66378e1ebf
+        WEB_SITE=http://www.fontconfig.org
+         ENTERED=20030425
+         UPDATED=20121130
+           SHORT="A library for configuring and customizing font access"
+
+cat << EOF
+Fontconfig is a font configuration and customization library, which
+does not depend on the X Window System.  It is designed to locate
+fonts within the system and select them according to requirements
+specified by applications.
+
+This package contains a program to maintain the fontconfig cache
+(fc-cache), a sample program to list installed fonts (fc-list),
+and a program to test the matching rules (fc-match). It also makes
+fonts managed by defoma available to fontconfig applications.
+EOF
--- /dev/null
+++ b/fonts/fontconfig/POST_INSTALL
@@ -0,0 +1,9 @@
+if module_installed pango; then lin -c pango; fi
+
+# We need to make sure theres no symlinks left to rot
+if [ -h /usr/share/fonts/fonts ] ; then
+  rm -f /usr/share/fonts/fonts
+fi
+
+message "** Running fc-cache please be patient **"
+/usr/bin/fc-cache -f




More information about the Lunar-commits mailing list