Permalink
Browse files

vim: Switch to patchdir rather than applying in do_configure

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
Tom Rini authored and sledz committed Mar 31, 2011
1 parent f522410 commit 179569aab89bc61e3191d902550a936d9ce9760e
Showing with 2 additions and 9 deletions.
  1. +2 −9 recipes/vim/vim_7.2.bb
View
@@ -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
}

0 comments on commit 179569a

Please sign in to comment.