diff options
author | erich@mine.nu <erich@mine.nu> | 2004-04-11 19:53:59 +0000 |
---|---|---|
committer | erich@mine.nu <erich@mine.nu> | 2004-04-11 19:53:59 +0000 |
commit | cffba98ea36ea7c1340418340cab7f7b9e906f8f (patch) | |
tree | d8de2abc722d56bdf47b992bcb8d4c596d25c962 /glibc/glibc_2.3.2.oe | |
parent | 183b342b4b5afdcfca08ae093800eb26d3efc0ca (diff) |
Split up the gconv modules into separate packages, and ship just the iso8859-1 one in gpe-image (patch from pb_).
BKrev: 4079a257TyLSYPCKB8PNq9CPgPM47A
Diffstat (limited to 'glibc/glibc_2.3.2.oe')
-rw-r--r-- | glibc/glibc_2.3.2.oe | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/glibc/glibc_2.3.2.oe b/glibc/glibc_2.3.2.oe index 9b8445f010..9f88d1a3d8 100644 --- a/glibc/glibc_2.3.2.oe +++ b/glibc/glibc_2.3.2.oe @@ -5,7 +5,7 @@ PRIORITY = "required" MAINTAINER = "Chris Larson <kergoth@handhelds.org>" DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial" PROVIDES = "virtual/libc" -PACKAGES = "glibc glibc-dev glibc-doc glibc-gconv glibc-i18n glibc-locale" +PACKAGES = "glibc glibc-dev glibc-doc glibc-i18n glibc-locale" FILES_glibc_append = " ${datadir}/zoneinfo" FILES_glibc-dev_append = " ${libdir}/*.o" FILES_glibc-gconv = "${libdir}/gconv" @@ -211,6 +211,51 @@ do_install() { done } +python populate_packages_prepend () { + import os + def do_split(root, pattern, format, description, postinst): + dvar = oe.data.getVar('D', d, 1) + if not dvar: + oe.error("D not defined") + return + + packages = oe.data.getVar('PACKAGES', d, 1).split() + if not packages: + oe.error("PACKAGES not defined") + return + + if postinst: + postinst = '#!/bin/sh\n' + postinst + objs = os.listdir(dvar + root) + mainpkg = oe.data.getVar('PKG_' + packages[0], d) or packages[0] + for o in objs: + import re + m = re.match(pattern, o) + if not m: + continue + on = m.group(1).lower().replace('_', '+').replace('@', '+') + pkg = format % on + packages.append(pkg) + oe.data.setVar('FILES_' + pkg, os.path.join(root, o), d) + oe.data.setVar('RDEPENDS_' + pkg, mainpkg, d) + oe.data.setVar('DESCRIPTION_' + pkg, description % on, d) + if postinst: + oe.data.setVar('pkg_postinst_' + pkg, postinst, d) + + oe.data.setVar('PACKAGES', ' '.join(packages), d) + + libdir = oe.data.getVar('libdir', d, 1) + if not libdir: + oe.error("libdir not defined") + return + + gconv_libdir = os.path.join(libdir, "gconv") + + do_split(gconv_libdir, '^(.*)\.so$', 'glibc-gconv-%s', 'gconv module for character set %s', None) + + oe.data.setVar('PACKAGES', oe.data.getVar('PACKAGES', d) + ' glibc-gconv', d) +} + python do_package () { if oe.data.getVar('DEBIAN_NAMES', d, 1): oe.data.setVar('PKG_glibc', 'libc6', d) |