From bfee0d5645262b956c56df279280233b757d1911 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 29 Dec 2005 14:59:03 +0000 Subject: Update the pkgsrc guide to reflect the following changes to the pkginstall framework: * USE_PKGINSTALL is no longer needed. * X11 font directories should be listed in FONTS_DIRS. * fonts.mk is no longer needed as the functionality has been completely reimplemented within the pkginstall framework. * PKG_UPDATE_FONTS_DB may be set to "yes" or "no" to indicate whether the fonts databases should be updated or not. This defaults to "yes". --- doc/guide/files/fixes.xml | 12 ++++------ doc/guide/files/pkginstall.xml | 54 +++++++++++++++++++++++++++++++++++------- 2 files changed, 50 insertions(+), 16 deletions(-) (limited to 'doc') diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml index e7f202f01c3..438243129db 100644 --- a/doc/guide/files/fixes.xml +++ b/doc/guide/files/fixes.xml @@ -1,4 +1,4 @@ - + Making your package work @@ -1357,14 +1357,12 @@ If a package installs font files, you will need to rebuild the fonts database in the directory where they get installed at installation and deinstallation time. This can be automatically - done by using mk/fonts.mk, which you need to - include in your Makefile. + done by using the pkginstall framework. - When the file is included, you can list the directories where - fonts are installed in the - FONTS_type_DIRS + You can list the directories where fonts are installed in the + FONTS_DIRS.type variables, where type can be one of - TTF, TYPE1 or X11. + ttf, type1 or x11. Also make sure that the database file fonts.dir is not listed in the PLIST. diff --git a/doc/guide/files/pkginstall.xml b/doc/guide/files/pkginstall.xml index 869f5f1c3d9..f1e97d97172 100644 --- a/doc/guide/files/pkginstall.xml +++ b/doc/guide/files/pkginstall.xml @@ -1,4 +1,4 @@ - + The pkginstall framework @@ -30,15 +30,13 @@ Registration of system shells. + + Automatic updating of fonts databases. + + -The following sections inspect each of the above points in detail. -Note that in order to use any of the described functionalities, you must -add the following to your package's Makefile: - - - USE_PKGINSTALL= YES - +The following sections inspect each of the above points in detail. You may be thinking that many of the things described here could be easily done with simple code in the package's post-installation target @@ -475,7 +473,6 @@ add some hooks to the installation scripts to handle it. Consider the following example, taken from shells/zsh: - USE_PKGINSTALL= YES PKG_SHELL= ${PREFIX}/bin/zsh @@ -494,4 +491,43 @@ environment variable to NO. + + + +Fonts + +Packages that install X11 fonts should update the database files +that index the fonts within each fonts directory. This can easily be +accomplished within the pkginstall framework. + +When a package installs X11 fonts, it must list the directories in +which fonts are installed in the +FONTS_DIRS.type variables, +where type can be one of ttf, +type1 or x11. This will add hooks to the +installation scripts to run the appropriate commands to update the fonts +database files within each of those directories. For convenience, if the +directory path is relative, it is taken to be relative to the package's +installation prefix. Consider the following example, taken from fonts/dbz-ttf: + + + FONTS_DIRS.ttf= ${PREFIX}/lib/X11/fonts/TTF + + + + + +Disabling automatic update of the fonts databases + + + +The automatic update of fonts databases can be disabled by +the administrator by setting the PKG_UPDATE_FONTS_DB +environment variable to NO. + + + + + -- cgit v1.2.3