summaryrefslogtreecommitdiff
path: root/packages/xorg-font/xorg-font-common.inc
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-07-24 20:55:10 +0000
committerRaymond Danks <raymond@edanks.com>2006-07-24 20:55:10 +0000
commit2e42be68e43c42d4ed42eca51d0a4f994dae6d4a (patch)
tree4c45807acfdaab31c4ac9f05233aa85a134cab4f /packages/xorg-font/xorg-font-common.inc
parent3591d61a7d9ea69f337ea2aaebbf8b675398b2c3 (diff)
xorg-font: Update for X11R7.0 and X11R7.1.
Diffstat (limited to 'packages/xorg-font/xorg-font-common.inc')
-rw-r--r--packages/xorg-font/xorg-font-common.inc43
1 files changed, 22 insertions, 21 deletions
diff --git a/packages/xorg-font/xorg-font-common.inc b/packages/xorg-font/xorg-font-common.inc
index 37d478bdc6..38fd1af5a5 100644
--- a/packages/xorg-font/xorg-font-common.inc
+++ b/packages/xorg-font/xorg-font-common.inc
@@ -1,31 +1,32 @@
-DESCRIPTION = "X font files"
+HOMEPAGE = "http://www.x.org"
SECTION = "x11/fonts"
-LICENSE= "MIT-X"
+#MAINTAINER = ""
+LICENSE = "MIT-X"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/font/${PN}-X11R7.0-${PV}.tar.bz2"
-S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
-FONT_DIR = "${datadir}/share/fonts"
-DEPENDS = "encodings mkfontscale mkfontdir"
+DEPENDS = " encodings font-alias font-util-native mkfontdir-native mkfontscale-native"
+RDEPENDS = "encodings font-util font-alias"
+
+XORG_PN = "${PN}"
+SRC_URI = "${XORG_MIRROR}/${@bb.data.getVar('PV', d, 1)[0:7]}/src/font/${XORG_PN}-${PV}.tar.gz"
+S = "${WORKDIR}/${XORG_PN}-${PV}"
inherit autotools pkgconfig
-do_stage () {
- autotools_stage_all
-}
+FILES_${PN} += " ${libdir}/X11/fonts"
+do_install_append() {
+ find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f
+ find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f
+}
-FILES_${PN} += " ${libdir}/X11/fonts/*.gz ${libdir}/X11/fonts/*/*.gz"
+do_stage() {
+ autotools_stage_all
+}
pkg_postinst_${PN} () {
-
- if [ "x$D" != "x" ]; then
- exit 1
- fi
-
- for fontdir in /usr/lib/X11/fonts/* /usr/lib/X11/fonts/*/* ; do
- if test -d $fontdir ; then
- mkfontdir $fontdir
- mkfontscale $fontdir
- fi
- done
+ set -x
+ for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
+ mkfontdir $fontdir
+ mkfontscale $fontdir
+ done
}