vim: Switch to patchdir rather than applying in do_configure
authorTom Rini <tom_rini@mentor.com>
Thu, 31 Mar 2011 17:21:07 +0000 (10:21 -0700)
committerTom Rini <tom_rini@mentor.com>
Thu, 31 Mar 2011 17:22:47 +0000 (10:22 -0700)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/vim/vim_7.2.bb

index 6e14991..1ff1434 100644 (file)
@@ -14,17 +14,10 @@ require vim.inc
 PR = "${INC_PR}.3"
 
 # 001-411.diff contains 411 patches fetched from upstream
-SRC_URI += "file://001-411.diff;apply=no"
-SRC_URI += "file://configure.in_remove_CC_quotes.patch;apply=no"
+SRC_URI += "file://001-411.diff;patchdir=.."
+SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.."
 SRC_URI += "file://vimrc"
 
-# we need to apply patches in other dir then ${S}
-do_patch() {
-       cd ${WORKDIR}/vim${VIMVER}
-       patch -p1 <${WORKDIR}/001-411.diff
-       patch -p1 <${WORKDIR}/configure.in_remove_CC_quotes.patch
-}
-
 do_install_append() {
     install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
 }