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
This commit is contained in:
Juan RP
2008-10-06 16:57:36 +02:00
parent ef661f001c
commit 6ade2fe36a
10 changed files with 91 additions and 26 deletions

View File

@@ -17,3 +17,8 @@ long_desc="
- Times
This is from the modular Xorg project."
# Build fonts.dir and fonts.scale files after install.
fonts_dir="$PKGFS_MASTERDIR/lib/X11/fonts/100dpi"
postinstall_helpers="mkfontxx-rebuild.sh"
ignore_files="fonts.scale fonts.dir"

View File

@@ -17,3 +17,8 @@ long_desc="
- Times
This is from the modular Xorg project."
# Build fonts.dir and fonts.scale files after install.
fonts_dir="$PKGFS_MASTERDIR/lib/X11/fonts/100dpi"
postinstall_helpers="mkfontxx-rebuild.sh"
ignore_files="fonts.scale fonts.dir"

View File

@@ -1,6 +0,0 @@
#
# Replace perl path in bdftrunace.pl before installing.
#
. $PKGFS_TMPLHELPDIR/perl-replace-path.sh
perl_transform_file $wrksrc/bdftruncate.pl

View File

@@ -16,4 +16,5 @@ long_desc="
# Transform bdftruncate.pl with correct path.
run_stuff_before="build"
run_stuff_before_build_file="$pkgname-runstuff-before-build.sh"
run_stuff_before_build_file="$PKGFS_TMPLHELPDIR/perl-replace-path.sh"
run_stuff_before_build_cmd="perl_transform_file $wrksrc/bdftruncate.pl"

View File

@@ -37,3 +37,6 @@ long_desc="
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"

View File

@@ -20,4 +20,4 @@ long_desc="
only supports C. Support for other languages is being considered."
run_stuff_before="build"
run_stuff_before_build_file="$pkgname-runstuff-before-build.sh"
run_stuff_before_build_file="$PKGFS_TEMPLATESDIR/$pkgname-runstuff-before-build.sh"

View File

@@ -25,6 +25,6 @@ long_desc="
# Perl needs to be handled specially and we have to transform some
# definitions to look at the correct directory.
run_stuff_before="build"
run_stuff_before_build_file="perl-runstuff-before-build.sh"
run_stuff_before_build_file="$PKGFS_TEMPLATESDIR/perl-runstuff-before-build.sh"
run_stuff_after="install"
run_stuff_after_install_file="perl-runstuff-after-install.sh"
run_stuff_after_install_file="$PKGFS_TEMPLATESDIR/perl-runstuff-after-install.sh"