[oe-commits] org.oe.dev packages/qsvn/qsvn.inc: Propose a function to be able to set the FN

freyther commit openembedded-commits at lists.openembedded.org
Thu Dec 27 03:33:46 UTC 2007


packages/qsvn/qsvn.inc: Propose a function to be able to set the FN
    With diverting packages ${PN} can sometimes not be used. In such cases
    we don't to use the filename of the currently included file. This can
    work with immediate assignments and a helper function like this one.

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 3fc8eea01c5ced14fce38abbf8cd6d2729e52790
ViewMTN: http://monotone.openembedded.org/revision/info/3fc8eea01c5ced14fce38abbf8cd6d2729e52790
Files:
1
packages/qsvn/qsvn.inc
Diffs:

#
# mt diff -re9f582e5e08c174853b6324563c31ae156551b09 -r3fc8eea01c5ced14fce38abbf8cd6d2729e52790
#
# 
# 
# patch "packages/qsvn/qsvn.inc"
#  from [70f0237005aa91b4c2e2b8313afba489dccefc6e]
#    to [42c9403b998ba47419e92557acc1a1639b1016da]
# 
============================================================
--- packages/qsvn/qsvn.inc	70f0237005aa91b4c2e2b8313afba489dccefc6e
+++ packages/qsvn/qsvn.inc	42c9403b998ba47419e92557acc1a1639b1016da
@@ -7,9 +7,15 @@ PR = "r0"
 DEPENDS = "apr-util subversion"
 PR = "r0"
 
-SRC_URI = "http://download2.berlios.de/qsvn/qsvn-${PV}-src.tar.gz \
+def vars_from_file(filename):
+    import os
+    return os.path.splitext(os.path.basename(filename))[0]
+
+FN := "${@vars_from_file(bb.data.getVar('FILE',d))}"
+
+SRC_URI = "http://download2.berlios.de/${FN}/${FN}-${PV}-src.tar.gz \
         file://build.patch;patch=1"
-S = "${WORKDIR}/qsvn-${PV}"
+S = "${WORKDIR}/${FN}-${PV}"
 
 EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${STAGING_INCDIR}/subversion-1"
 






More information about the Openembedded-commits mailing list