Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d9a3be07360b68db04c601f69effb7627862ff3b

commit d9a3be07360b68db04c601f69effb7627862ff3b
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Thu Dec 27 15:37:27 2007 +0100

asciidoc-8.2.5-3-i686
- don't try to update the font cache if there are missing commands to do so
- this is the case for example when asciidoc is only a makedepend

diff --git a/source/apps-extra/asciidoc/FrugalBuild 
b/source/apps-extra/asciidoc/FrugalBuild
index 200f4e0..dfb2eaf 100644
--- a/source/apps-extra/asciidoc/FrugalBuild
+++ b/source/apps-extra/asciidoc/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=asciidoc
pkgver=8.2.5
-pkgrel=2
+pkgrel=3
pkgdesc="AsciiDoc is a text document format for writing short documents, 
articles, books and UNIX man pages."
url="http://www.methods.co.nz/asciidoc/index.html";
depends=()
diff --git a/source/apps-extra/asciidoc/asciidoc.install 
b/source/apps-extra/asciidoc/asciidoc.install
index bb8442b..035b1b8 100644
--- a/source/apps-extra/asciidoc/asciidoc.install
+++ b/source/apps-extra/asciidoc/asciidoc.install
@@ -1,10 +1,12 @@
post_install()
{
-       echo -n "updating fonts cache..."
-       mkfontscale /usr/lib/X11/fonts/TTF
-       mkfontdir /usr/lib/X11/fonts/TTF
-       /usr/bin/fc-cache --force --system-only
-       echo "done."
+       if [ -e /usr/bin/mkfontscale -a -e /usr/bin/mkfontdir -a -e 
/usr/bin/fc-cache ]; then
+               echo -n "updating fonts cache..."
+               mkfontscale /usr/lib/X11/fonts/TTF
+               mkfontdir /usr/lib/X11/fonts/TTF
+               /usr/bin/fc-cache --force --system-only
+               echo "done."
+       fi
}

post_upgrade()
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to