Permalink
Browse files

Merge pull request #110 from cavalier38/fontconfig

Revert "fontconfig: Moved from xorg to core."
  • Loading branch information...
2 parents 543efd1 + a66d756 commit f504449e3f863ac2fed72e99bf047a3425a6cab1 @Ratler Ratler committed Apr 8, 2013
Showing with 76 additions and 0 deletions.
  1. +10 −0 fontconfig/10-lunar-fonts.conf
  2. +32 −0 fontconfig/BUILD
  3. +1 −0 fontconfig/CONFIGURE
  4. +3 −0 fontconfig/DEPENDS
  5. +21 −0 fontconfig/DETAILS
  6. +9 −0 fontconfig/POST_INSTALL
@@ -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>
View
@@ -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
View
@@ -0,0 +1 @@
+mquery DOCS "Build docs?" n "" "--disable-docs"
View
@@ -0,0 +1,3 @@
+depends sed
+depends expat
+depends freetype2
View
@@ -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
View
@@ -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

0 comments on commit f504449

Please sign in to comment.