Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
authorMichael Lauer <mickey@vanille-media.de>
Sun, 3 Apr 2005 13:48:55 +0000 (13:48 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sun, 3 Apr 2005 13:48:55 +0000 (13:48 +0000)
into gandalf.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages

2005/04/03 15:48:27+02:00 uni-frankfurt.de!mickeyl
improve update-qtfontdir to only run if necessary, i.e. when its timestamp is older than anything in QTDIR/fonts/

BKrev: 424ff447OlzQOKD9EGJ4PtRiMqzZGg

conf/distro/openzaurus-3.5.3.conf
packages/meta/opie-kdepim-image.bb
packages/qpf-fonts/files/update-qtfontdir
packages/qpf-fonts/qpf-font-common_1.0.bb
packages/qte-fonts-common/qte-fonts-common/update-qtfontdir
packages/qte-fonts-common/qte-fonts-common_3.3.3.bb

index 4fa56f2..e8ed020 100644 (file)
@@ -1,10 +1,8 @@
 include conf/distro/openzaurus.conf
 DISTRO = "openzaurus"
 DISTRO_NAME = "OpenZaurus"
-DISTRO_VERSION = "3.5.2-snapshot-${DATE}"
-# DISTRO_VERSION = "3.5.3"
-DISTRO_TYPE = "debug"
-# DISTRO_TYPE = "release"
+DISTRO_VERSION = "3.5.3"
+DISTRO_TYPE = "release"
 
 FEED_URIS += " \
        upgrades##http://openzaurus.org/official/unstable/3.5.3/upgrades/       \
@@ -13,7 +11,7 @@ FEED_URIS += " \
        console##http://openzaurus.org/official/unstable/3.5.3/feed/console     \
        devel##http://openzaurus.org/official/unstable/3.5.3/feed/devel"
 
-CVSDATE = "20050331"
+CVSDATE = "20050403"
 
 #
 # Zaurus
@@ -21,7 +19,7 @@ CVSDATE = "20050331"
 
 ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95"
 OEINCLUDELOGS = "yes"
-KERNEL_CONSOLE = "tty1"
+KERNEL_CONSOLE = "ttyS0"
 #DEBUG_OPTIMIZATION = "-O -g3"
 #DEBUG_BUILD = "1"
 #INHIBIT_PACKAGE_STRIP = "1"
@@ -31,6 +29,7 @@ KERNEL_CONSOLE = "tty1"
 #
 
 PREFERRED_VERSION_binutils-cross = "2.15.94.0.1"
+PREFERRED_VERSION_ipkg-native = "0.99.144"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
index c3c84af..380ba70 100644 (file)
@@ -1,6 +1,6 @@
+include opie-image.bb
+
 export IMAGE_BASENAME = "opie-kdepim-image"
-export IMAGE_LINGUAS = ""
-include opie-collections.inc
 
 #
 # Putting it altogether. Better state IPKG_INSTALL and DEPENDS twice, because library names != package names.
@@ -16,10 +16,3 @@ DEPENDS = "task-bootstrap ${OPIE_LIBS_DEPENDS} ${OPIE_BASE} ${OPIE_BASE_APPLETS}
             ${OPIE_BASE_SETTINGS}  ${OPIE_BASE_APPS} ${OPIE_BASE_DEPENDS} ${KDE_PIM_DEPENDS} \
             ${OPIE_EXTRA_APPLETS} ${OPIE_EXTRA_SETTINGS} ${OPIE_EXTRA_APPS} \
             ${OPIE_BASE_STYLES} ${OPIE_BASE_DECOS} ${OPIE_BASE_INPUTMETHODS}"
-
-
-# zap the root password
-#IMAGE_POSTPROCESS_COMMAND = "zap_root_password"
-
-inherit image_ipk
-LICENSE = MIT
index e69de29..788c0b3 100644 (file)
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+usage()
+{
+    echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]"
+    exit 1
+}
+
+setVar()
+{
+    eval "$1='$2'"
+}
+
+getVar()
+{
+    eval "echo \$$1"
+}
+
+handleQPF()
+{
+    base=`basename $1`
+    family=`echo $base|cut -d_ -f1`
+    pt=`echo $base|cut -d_ -f2`
+    weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'`
+    if (echo $base|cut -d_ -f3|grep -q 'i$'); then
+        italic="y"
+    else
+        italic="n"
+    fi
+    echo "$family $base.qpf QPF $italic $weight $pt u"
+}
+
+if [ -z "$1" ]; then
+    if [ -n "$QTDIR" ]; then
+        fontdir=$QTDIR/lib/fonts
+    else
+        fontdir=/opt/QtPalmtop/lib/fonts
+    fi
+else
+    fontdir=$1
+fi
+    
+if ! [ -d $fontdir ]; then
+    echo Error: $fontdir not a directory
+    exit 1
+fi
+
+if [ -e $fontdir/fontdir ]; then
+        if find $fontdir -newer $fontdir/fontdir | grep "\(qpf\|ttf\)"; then
+                echo "fontdir needs updating..."                                  
+        else                                                                      
+                echo "fontdir already up to date - exiting"                       
+                exit 0                                     
+        fi 
+    cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new
+else
+        echo "fontdir not existing. creating..."
+fi
+
+(
+    for file in `ls $fontdir/*.qpf|sed -e's,\.qpf$,,; s,_t[^_]*$,,;'|sort -u`; do
+        handleQPF $file
+    done
+) >> $fontdir/fontdir.new
+
+mv $fontdir/fontdir.new $fontdir/fontdir
+
+exit 0
+
+# vim:ai:et:sts=4:sw=4:tw=0:
index f06ea7a..c3801c2 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "opie/fonts"
 PRIORITY = "optional"
 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
 LICENSE = "GPL QPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "file://update-qtfontdir"
 S = "${WORKDIR}/qt-${PV}"
index e69de29..788c0b3 100644 (file)
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+usage()
+{
+    echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]"
+    exit 1
+}
+
+setVar()
+{
+    eval "$1='$2'"
+}
+
+getVar()
+{
+    eval "echo \$$1"
+}
+
+handleQPF()
+{
+    base=`basename $1`
+    family=`echo $base|cut -d_ -f1`
+    pt=`echo $base|cut -d_ -f2`
+    weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'`
+    if (echo $base|cut -d_ -f3|grep -q 'i$'); then
+        italic="y"
+    else
+        italic="n"
+    fi
+    echo "$family $base.qpf QPF $italic $weight $pt u"
+}
+
+if [ -z "$1" ]; then
+    if [ -n "$QTDIR" ]; then
+        fontdir=$QTDIR/lib/fonts
+    else
+        fontdir=/opt/QtPalmtop/lib/fonts
+    fi
+else
+    fontdir=$1
+fi
+    
+if ! [ -d $fontdir ]; then
+    echo Error: $fontdir not a directory
+    exit 1
+fi
+
+if [ -e $fontdir/fontdir ]; then
+        if find $fontdir -newer $fontdir/fontdir | grep "\(qpf\|ttf\)"; then
+                echo "fontdir needs updating..."                                  
+        else                                                                      
+                echo "fontdir already up to date - exiting"                       
+                exit 0                                     
+        fi 
+    cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new
+else
+        echo "fontdir not existing. creating..."
+fi
+
+(
+    for file in `ls $fontdir/*.qpf|sed -e's,\.qpf$,,; s,_t[^_]*$,,;'|sort -u`; do
+        handleQPF $file
+    done
+) >> $fontdir/fontdir.new
+
+mv $fontdir/fontdir.new $fontdir/fontdir
+
+exit 0
+
+# vim:ai:et:sts=4:sw=4:tw=0:
index 1cda5ac..803d692 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION= "Tools to update the Qt fontdir"
 MAINTAINER = "M&N Solutions <info@mn-solutions.de>"
 LICENSE = "GPL/QPL"
 PACKAGE_ARCH = "all"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-free-${PV}.tar.gz"
 SRC_URI += "file://update-qtfontdir"