DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/source" EXCLUDE_FROM ?= ".pc autom4te.cache" # used as part of a path. make sure it's set DISTRO ?= "openembedded" def get_src_tree(d): workdir = bb.data.getVar('WORKDIR', d, 1) if not workdir: bb.error("WORKDIR not defined, unable to find source tree.") return s = bb.data.getVar('S', d, 0) if not s: bb.error("S not defined, unable to find source tree.") return s_tree_raw = s.split('/')[1] s_tree = bb.data.expand(s_tree_raw, d) src_tree_path = os.path.join(workdir, s_tree) try: os.listdir(src_tree_path) except OSError: bb.fatal("Expected to find source tree in '%s' which doesn't exist." % src_tree_path) bb.debug("Assuming source tree is '%s'" % src_tree_path) return s_tree sourcepkg_do_create_orig_tgz(){ mkdir -p ${DEPLOY_DIR_SRC} cd ${WORKDIR} for i in ${EXCLUDE_FROM}; do echo $i >> temp/exclude-from-file done src_tree=${@get_src_tree(d)} echo $src_tree oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz" tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree tar -cf - -C $src_tree -ps . | tar -xf - -C $src_tree.orig } sourcepkg_do_archive_bb() { src_tree=${@get_src_tree(d)} dest=${WORKDIR}/$src_tree/${DISTRO} mkdir -p $dest cp ${FILE} $dest } python sourcepkg_do_dumpdata() { workdir = bb.data.getVar('WORKDIR', d, 1) distro = bb.data.getVar('DISTRO', d, 1) s_tree = get_src_tree(d) openembeddeddir = os.path.join(workdir, s_tree, distro) dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) try: os.mkdir(openembeddeddir) except OSError: # dir exists pass bb.note("Dumping metadata into '%s'" % dumpfile) f = open(dumpfile, "w") # emit variables and shell functions bb.data.emit_env(f, d, True) # emit the metadata which isnt valid shell for e in d.keys(): if bb.data.getVarFlag(e, 'python', d): f.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1))) f.close() } sourcepkg_do_create_diff_gz(){ cd ${WORKDIR} for i in ${EXCLUDE_FROM}; do echo $i >> temp/exclude-from-file done src_tree=${@get_src_tree(d)} for i in `find . -maxdepth 1 -type f`; do mkdir -p $src_tree/${DISTRO}/files cp $i $src_tree/${DISTRO}/files done oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz" LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz rm -rf $src_tree.orig } EXPORT_FUNCTIONS do_create_orig_tgz do_archive_bb do_dumpdata do_create_diff_gz addtask create_orig_tgz after do_unpack before do_patch addtask archive_bb after do_patch before do_dumpdata addtask dumpdata after archive_bb before do_create_diff_gz addtask create_diff_gz after do_dump_data before do_configure ;id=e45a2c703a0971966bcf2ac4537776aec0125287'>root/packages/python/python-logilab-common/.mtn2git_empty
ech-oe.git/commit/packages/perl/libipc-sharelite-perl_0.09.bb?id=83afd0d6983be7ab795e66f49cb8a9e7e0d9faf6'>perl modules: Bump PR since the directories they install into have changed
AgeCommit message (Expand)AuthorFiles
2007-08-15python-logilab: change package name, update to 0.9.3Michael Lauer1
Jamie Lenehan1
2007-05-04perl: Add the .debug directories that to FILES_${PN}-dbg in theJamie Lenehan1
2007-05-02perl modules: Bump PR on cpan modules effected by the recentJamie Lenehan1
2007-04-27perl 5.8.8/cpan: Fix the installation paths for cpan modules. The installedJamie Lenehan1
2006-10-10Remove MAINTAINER fields from recipes, add MAINTAINER file to replace them.Koen Kooi1
2006-10-04perl modules: Update the SRC_URI on all the modules to use PV to refer toJamie Lenehan1
2006-10-03perl: Another sh3/sh4 shared library fix. Modules build built withJamie Lenehan1
2006-09-28perl: Update the LICENSE on the modules to indicate that they are availableJamie Lenehan1
2006-09-28perl: Update cpan.bbclass to set CCFLAGS to CFLAGS so that the compilerJamie Lenehan1
2006-09-26perl modules: Add the first collection of perl modules. These modules areJamie Lenehan1