]> git.openpandora.org Git - openembedded.git/commitdiff
split QPF fonts into one-size packages via "qpf" bbclass
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 15 Feb 2005 12:12:20 +0000 (12:12 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 15 Feb 2005 12:12:20 +0000 (12:12 +0000)
BKrev: 4211e724Lhd2ybrh-IXMaPuPThuqvA

classes/qpf.bbclass [new file with mode: 0644]
packages/qpf-fonts/qpf-helvetica_1.0.bb
packages/qpf-fonts/qpf-hunky_0.3.0.bb
packages/qpf-fonts/qpf-qte_2.3.10.bb
packages/qpf-fonts/qpf-unifont_1.0.bb
packages/qpf-fonts/qpf-utopia_1.0.bb
packages/qpf-fonts/terminus.bb

diff --git a/classes/qpf.bbclass b/classes/qpf.bbclass
new file mode 100644 (file)
index 0000000..e69de29
index 9e10bc7dc4f56722d4399b53fa29bfbcafc90924..f5f00518c5749a825970d66b51f37d864eca5644 100644 (file)
@@ -4,30 +4,16 @@ SECTION = "opie/fonts"
 PRIORITY = "optional"
 MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
 HOMEPAGE = "http://www.pobox.sk/~mico/zaurus.html"
-PACKAGE_ARCH = "all"
+PR = "r1"
 
 SRC_URI = "http://www.hrw.one.pl/_pliki/oe/files/qpf-helvetica.tar.bz2"
 S = "${WORKDIR}/helvetica"
 
 do_install () { 
         install -d ${D}${palmqtdir}/lib/fonts/ 
-        for i in *.qpf; do 
-                install -m 644 $i ${D}${palmqtdir}/lib/fonts/${i} 
+        for font in *.qpf; do 
+                install -m 644 $font ${D}${palmqtdir}/lib/fonts/
         done 
 } 
 
-pkg_postinst () {
-#!/bin/sh
-if [ -n "$D" ]; then exit 1; fi
-set -e
-. /etc/profile
-${sbindir}/update-qtfontdir
-}
-
-PACKAGES = "qpf-helvetica-small qpf-helvetica-large"
-
-FILES_qpf-helvetica-small = "${palmqtdir}/lib/fonts/helvetica_80* \
-${palmqtdir}/lib/fonts/helvetica_100* ${palmqtdir}/lib/fonts/helvetica_120*"
-
-FILES_qpf-helvetica-large = "${palmqtdir}/lib/fonts/helvetica_140* \
-${palmqtdir}/lib/fonts/helvetica_180* ${palmqtdir}/lib/fonts/helvetica_240*"
+inherit qpf
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..61908253997befa7085677a0503e8e73b765b2fd 100644 (file)
@@ -0,0 +1,20 @@
+DESCRIPTION = "Hunky fonts - QPF Edition"
+SECTION = "opie/fonts"
+PRIORITY = "optional"
+MAINTAINER = "Gints Polis <gints.polis@cc.lv>"
+LICENSE = "GPL"
+HOMEPAGE = "http://www.yoper.com/ariszlo/hunky.html"
+PACKAGE_ARCH = "all"
+PR = "r1"
+
+SRC_URI = "http://handhelds.org/~gints/hunkyfonts-${PV}.tar.gz"
+S = "${WORKDIR}/hunkyfonts-${PV}/QPF"
+
+do_install () { 
+        install -d ${D}${palmqtdir}/lib/fonts/ 
+        for i in *.qpf; do 
+                install -m 644 $i ${D}${palmqtdir}/lib/fonts/${i} 
+        done 
+} 
+
+inherit qpf
index 0ab77560bfaadb2858d3eed6e94a6d766872ed63..f130c5f253f075c7ca91a6c11e6d7af84b7bb54c 100644 (file)
@@ -9,31 +9,10 @@ SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-${PV}-free.tar.gz \
           file://update-qtfontdir"
 S = "${WORKDIR}/qt-${PV}"
 
-do_configure() {
-       :
-}
-
-do_compile() {
-       :
-}
+inherit qpf
 
-pkg_postinst_fonts() {
-#!/bin/sh
-set -e
-. /etc/profile
-${sbindir}/update-qtfontdir
-}
-
-python populate_packages_prepend() {
-       postinst = bb.data.getVar('pkg_postinst_fonts', d, 1)
-       postrm = postinst
-       pkgregex = "^([a-z]*_[0-9]*).*.qpf$"
-       pkgpattern = "qte-font-%s"
-
-        do_split_packages(d, root='/opt/QtPalmtop/lib/fonts', file_regex=pkgregex, output_pattern=pkgpattern, 
-                         description='Qt/E font %s', postinst=postinst, postrm=postrm, recursive=True, hook=None, 
-                         extra_depends='qte-font-common')
-}
+QPF_PKGPATTERN = "qte-font-%s"
+QPF_DESCRIPTION = "Qt/E font %s"
 
 do_install() {
        install -d ${D}/${sbindir}/
index 5ab88e26dce8c84002600ea499917f27f0bc4520..f5101f5b47c0c8b01e080fa954a3d949a9aea66d 100644 (file)
@@ -3,6 +3,7 @@ LICENSE = "GPL QPL"
 SECTION = "opie/fonts"
 PRIORITY = "optional"
 PACKAGE_ARCH = "all"
+PR = "r1"
 
 SRC_URI = "http://www.openzaurus.org/mirror/qpf-unifont.tar.bz2"
 S = "${WORKDIR}"
@@ -14,12 +15,4 @@ do_install () {
         done 
 } 
 
-pkg_postinst () {
-#!/bin/sh
-if [ -n "$D" ]; then exit 1; fi
-set -e
-. /etc/profile
-${sbindir}/update-qtfontdir
-}
-
-FILES_${PN} = "${palmqtdir}/lib/fonts"
+inherit qpf
index 315f086136f0ab1854016a42c10ea80d35072fea..e40dd1248370c7fa54adc5f87c6f3941ade8d381 100644 (file)
@@ -5,6 +5,7 @@ MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
 LICENSE = "GPL QPL"
 HOMEPAGE = "http://www.pobox.sk/~mico/zaurus.html"
 PACKAGE_ARCH = "all"
+PR = "r1"
 
 SRC_URI = "http://www.hrw.one.pl/_pliki/oe/files/qpf-utopia.tar.bz2"
 S = "${WORKDIR}/utopia"
@@ -16,17 +17,4 @@ do_install () {
         done 
 } 
 
-pkg_postinst () {
-#!/bin/sh
-if [ -n "$D" ]; then exit 1; fi
-set -e
-. /etc/profile
-${sbindir}/update-qtfontdir
-}
-
-PACKAGES = "qpf-utopia-small qpf-utopia-large"
-
-FILES_qpf-utopia-small = "${palmqtdir}/lib/fonts/utopia_100* ${palmqtdir}/lib/fonts/utopia_120*"
-
-FILES_qpf-utopia-large = "${palmqtdir}/lib/fonts/utopia_140* \
-${palmqtdir}/lib/fonts/utopia_180* ${palmqtdir}/lib/fonts/utopia_240*"
+inherit qpf
index 68e569ea28a2c3ecb534e5c9c7e50a8592656ab9..462794384d599c4655b59d284591e164da7183a0 100644 (file)
@@ -4,28 +4,15 @@ SECTION = "opie/fonts"
 PRIORITY = "optional"
 MAINTAINER = "M&N Solutions GmbH <info@mn-solutions.de>"
 LICENSE = "GPL"
-RDEPENDS = "qte-fonts-common"
 PACKAGE_ARCH = "all"
-PV = "1.0"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.mn-solutions.de/downloads/mnci/terminus-fonts.tar.bz2"
 S = ${WORKDIR}/terminus-fonts
 
-
 do_install() {
        mkdir -p ${D}${palmqtdir}/lib/fonts
        cp *.qpf ${D}${palmqtdir}/lib/fonts
 }
 
-PACKAGES = "qpf-terminus"
-FILES = ""
-FILES_qpf-terminus = "${palmqtdir}/lib/fonts"
-
-pkg_postinst() {
-#!/bin/sh
-if [ -n "$D" ]; then exit 1; fi
-set -e
-. /etc/profile
-${sbindir}/update-qtfontdir
-}
+inherit qpf