void-packages/templates/fontconfig.tmpl
Juan RP 6ade2fe36a Some changes for better use of postinstall_helpers and run_stuff_*.
Introduce run_stuff_<state>_<stage>_cmd. These are used to run
a specific command before or after the specified stage.

Introduce two new helpers: fontconfig-update.sh and mkfontxx-rebuild.sh.
The first runs fc-cache once fontconfig is installed, the second
rebuilds the fonts.dir and fonts.scale files in a directory for
a template.

Allow run_stuff_* to execute a script with any path, not just
from PKGFS_TEMPLATESDIR.

That means that now if you install GTK+ and any fonts package,
gtk-demo will work without any additional stuff.

--HG--
extra : convert_revision : c8aa7eb8d1ab958f64808af0d4c1cce8760d012e
2008-10-06 16:57:36 +02:00

43 lines
1.7 KiB
Cheetah
Executable file

# Template build file for 'fontconfig'.
pkgname=fontconfig
version=2.6.0
patch_files="$pkgname-Makefile-fc-cache.diff"
extract_sufx=".tar.gz"
url=http://www.fontconfig.org/release
build_style=gnu_configure
configure_args="--with-add-fonts=$PKGFS_MASTERDIR/lib/X11/fonts
--enable-docs --with-default-fonts=$PKGFS_MASTERDIR/lib/X11/fonts"
make_cmd="$PKGFS_MASTERDIR/bin/gmake"
pkgconfig_override="fontconfig.pc"
short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=2fea7fa3fe1757b58ce53c4225b9f8e6ec7507bf
long_desc="
Fontconfig is a library for configuring and customizing font access.
Fontconfig can:
* discover new fonts when installed automatically, removing a common
source of configuration problems.
* perform font name substitution, so that appropriate alternative fonts
can be selected if fonts are missing.
* identify the set of fonts required to completely cover a set of
languages.
* have GUI configuration tools built as it uses an XML-based
configuration file (though with autodiscovery, we believe this need is
minimized).
* efficiently and quickly find the fonts you need among the set of fonts
you have installed, even if you have installed thousands of fonts,
while minimizing memory usage.
* be used in concert with the X Render Extension and FreeType to
implement high quality, anti-aliased and subpixel rendered text on a
display.
Fontconfig does not:
* render the fonts themselves (this is left to FreeType or other
rendering mechanisms).
* depend on the X Window System in any fashion, so that printer only
applications do not have such dependencies."
# Run fc-cache once installed.
postinstall_helpers="fontconfig-update.sh"