[oe-commits] org.oe.dreambox enigma2-plugins: parse control files from source to get RDEPENDS, DESCRIPTION
tmbinc commit
openembedded-commits at lists.openembedded.org
Mon Feb 4 11:27:58 UTC 2008
enigma2-plugins: parse control files from source to get RDEPENDS, DESCRIPTION
Author: tmbinc at openembedded.org
Branch: org.openembedded.dreambox
Revision: 6e0ba7d36754a5fc10e178a8022fabc4feb830b8
ViewMTN: http://monotone.openembedded.org/revision/info/6e0ba7d36754a5fc10e178a8022fabc4feb830b8
Files:
1
packages/enigma2/enigma2-plugins.bb
Diffs:
#
# mt diff -re340cfb3ab61947c60b682780c0db7be30f29245 -r6e0ba7d36754a5fc10e178a8022fabc4feb830b8
#
#
#
# patch "packages/enigma2/enigma2-plugins.bb"
# from [56fc939cfd48dad594f83ed539ae1a116998cd7e]
# to [117b5ee4f7f80cc84a71799a8d4db58621c9f333]
#
============================================================
--- packages/enigma2/enigma2-plugins.bb 56fc939cfd48dad594f83ed539ae1a116998cd7e
+++ packages/enigma2/enigma2-plugins.bb 117b5ee4f7f80cc84a71799a8d4db58621c9f333
@@ -1,28 +1,12 @@ MAINTAINER = "Felix Domke <tmbinc at elited
DESCRIPTION = "Additional plugins for Enigma2"
MAINTAINER = "Felix Domke <tmbinc at elitedvb.net>"
-SRCDATE = "20070926"
-PV = "1.0cvs${SRCDATE}"
+SRCDATE = "20080201"
+PV = "2.4cvs${SRCDATE}"
SRC_URI = "cvs://anonymous@cvs.schwerkraft.elitedvb.net/cvsroot/enigma2-plugins;module=enigma2-plugins;method=pserver"
FILES_${PN} += " /usr/share/enigma2 /usr/share/fonts "
-DESCRIPTION_append_enigma2-plugin-extensions-antiscrollbar = "overlays scrollbars on your tvscreen."
-DESCRIPTION_append_enigma2-plugin-extensions-dyndns = "is a client for www.dyndns.org."
-DESCRIPTION_append_enigma2-plugin-extensions-lastfm = "is a client to use last.fm, the social music revolution."
-DESCRIPTION_append_enigma2-plugin-extensions-logomanager = "manages logos to display at boottime or radiomode."
-DESCRIPTION_append_enigma2-plugin-extensions-movietagger = "adds tags to recorded movies, to sort a large list of movies."
-DESCRIPTION_append_enigma2-plugin-extensions-netcaster = "is a player for network and internet streams."
-DESCRIPTION_append_enigma2-plugin-extensions-simplerss = "is a simple rss viewer for the enigma2 gui."
-DESCRIPTION_append_enigma2-plugin-extensions-vlcplayer = "plays and transcodes movies from your pc."
-DESCRIPTION_append_enigma2-plugin-extensions-webinterface = "lets you control your dreambox from a web browser."
-DESCRIPTION_append_enigma2-plugin-extensions-wirelesslan = " is a Wireless LAN Configuration Tool."
-DESCRIPTION_append_enigma2-plugin-extensions-fritzcall = "show incoming calls on your TV (requires an AVM Fritz!box)."
-
-RDEPENDS_enigma2-plugin-extensions-vlcplayer = "neon (>= 0.26.0-r1) gst-plugin-neonhttpsrc"
-RDEPENDS_enigma2-plugin-extensions-webinterface = "twisted-web2"
-RDEPENDS_enigma2-plugin-extensions-fritzcall = "twisted-web2 twisted-web"
-
inherit autotools
S = "${WORKDIR}/enigma2-plugins"
@@ -30,5 +14,29 @@ python populate_packages_prepend () {
python populate_packages_prepend () {
enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
- do_split_packages(d, enigma2_plugindir, '(.*?/.*?)/.*', 'enigma2-plugin-%s', '%s ', recursive=True, match_path=True, prepend=True, extra_depends = "enigma2")
+ do_split_packages(d, enigma2_plugindir, '(.*?/.*?)/.*', 'enigma2-plugin-%s', 'Enigma2 Plugin: %s', recursive=True, match_path=True, prepend=True)
+
+ def getControlLines(mydir, d, package):
+ import os
+ src = open(mydir + package + "/CONTROL/control").read()
+ for line in src.split("\n"):
+ if line.startswith('Package: '):
+ full_package = line[9:]
+ if line.startswith('Depends: '):
+ bb.data.setVar('RDEPENDS_' + full_package, ' '.join(line[9:].split(', ')), d)
+ if line.startswith('Description: '):
+ bb.data.setVar('DESCRIPTION_' + full_package, line[13:], d)
+
+ def getPackageNames(mydir,d):
+ import os
+ packages =[]
+ ignore = ['CVS','autom4te.cache','m4', 'patches']
+ for packetname in os.listdir(mydir):
+ if os.path.isdir(mydir + packetname) and packetname not in ignore:
+ packages.append(packetname)
+ return packages
+
+ mydir = bb.data.getVar('D', d, 1).replace("image","enigma2-plugins/")
+ for package in getPackageNames(mydir, d):
+ getControlLines(mydir, d, package)
}
More information about the Openembedded-commits
mailing list