From 9a4e596172f58859d024baa49eb8907ea0b4459e Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 27 Apr 2004 10:40:54 +0000 Subject: gather depends at runtime using OE's elegant python functions BKrev: 408e38b6zRWU1rzlNi8IGXsRgEK6Kw --- opie/meta-opie.oe | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'opie') diff --git a/opie/meta-opie.oe b/opie/meta-opie.oe index 36906b2658..25a880c116 100644 --- a/opie/meta-opie.oe +++ b/opie/meta-opie.oe @@ -1,12 +1,14 @@ DESCRIPTION = "Meta-package for Opie" -DEPENDS = "qte-for-opie libqpe-opie libopie2 \ -opie-aboutapplet opie-addressbook opie-advancedfm opie-alarm opie-bartender opie-batteryapplet \ -opie-button-settings opie-calibrate opie-camera opie-cardmon opie-checkbook opie-citytime \ -opie-clipboardapplet opie-clock opie-clockapplet opie-confeditor opie-console \ -opie-embeddedkonsole opie-helpbrowser opie-homeapplet opie-i18n opie-irdaapplet opie-keypebble opie-keyz-cfg \ -opie-light-and-power opie-login opie-logoutapplet opie-multikeyapplet opie-odict opie-oxygen opie-packagemanager \ -opie-qashmoney opie-qcop opie-quicklauncher opie-reader opie-restartapplet opie-rotateapplet opie-screenshotapplet \ -opie-search opie-security opie-sheet opie-solitaire opie-suspendapplet opie-tableviewer opie-taskbar \ -opie-textedit opie-vmemo opie-volumeapplet opie-vtapplet opie-write opie-zsafe " - +DEPENDS = "qte-for-opie libqpe-opie libopie2" MAINTAINER = "Greg Gilbert " + +def opie_packages(d): + import oe, os + files = os.listdir( oe.data.getVar( "TOPDIR", d, True ) ) + pkgs = [ f for f in files if f.startswith( "opie-" ) ] + return " ".join( pkgs ) + +OPIE_PACKAGES := "${@opie_packages(d)}" + +DEPENDS = "qte-for-opie libqpe-opie libopie2 ${OPIE_PACKAGES}" + -- cgit v1.2.3