summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-12-26 19:31:53 +0000
committerHolger Freyther <zecke@selfish.org>2007-12-26 19:31:53 +0000
commitdf105e3b26d2a3acd98a8e70ad8f308fa3ca5c4f (patch)
treefbe41ea1bbbf13b6f904f21d893d7fdadb8cf222 /packages
parent61e34ba5fa3d2a224de33f81c7e9930b5d139652 (diff)
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.
Diffstat (limited to 'packages')
-rw-r--r--packages/qsvn/qsvn.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/qsvn/qsvn.inc b/packages/qsvn/qsvn.inc
index edd9bfd951..c27bbab114 100644
--- a/packages/qsvn/qsvn.inc
+++ b/packages/qsvn/qsvn.inc
@@ -7,9 +7,15 @@ SECTION = "network"
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"