qscintilla 1.65-gpl-1.6: Rework no-external-lexers.patch
authorTom Rini <tom_rini@mentor.com>
Wed, 16 Mar 2011 18:30:12 +0000 (11:30 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 16 Mar 2011 19:13:38 +0000 (12:13 -0700)
Also drop do_stage and update do_install while in here.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/qscintilla/files/no-external-lexers.patch
recipes/qscintilla/qscintilla_1.65-gpl-1.6.bb

index 5953043..0214a53 100644 (file)
@@ -1,10 +1,9 @@
-
 #
 # Patch managed by http://www.holgerschurig.de/patcher.html
 #
 
---- ../src/ExternalLexer.cpp~no-external-lexers
-+++ ../src/ExternalLexer.cpp
+--- src/ExternalLexer.cpp~no-external-lexers
++++ src/ExternalLexer.cpp
 @@ -110,7 +110,7 @@
        // Initialise some members...
        first = NULL;
index cfed35c..a88bf37 100644 (file)
@@ -1,10 +1,10 @@
 DESCRIPTION = "Qt/Embedded bindings for the Scintilla source code editor component"
 SECTION = "opie/libs"
 LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://www.mneuroth.de/privat/zaurus/qscintilla-${PV}_zaurus.tar.gz \
-           file://no-external-lexers.patch;striplevel=0"
+           file://no-external-lexers.patch;apply=false"
 
 S = "${WORKDIR}/qscintilla-${PV}/qt"
 
@@ -22,14 +22,14 @@ EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${S}/patches \
 
 PARALLEL_MAKE = ""
 
-do_stage() {
-       install -m 0644 qextscintilla*.h ${STAGING_INCDIR}/
-       oe_libinstall -so libqscintilla ${STAGING_LIBDIR}
+do_configure_prepend() {
+       (cd .. ; patch -p0 -i ${WORKDIR}/no-external-lexers.patch)
 }
 
 do_install() {
-       install -d ${D}${libdir}
+       install -d ${D}${libdir} ${D}${includedir}
        oe_libinstall -so libqscintilla ${D}${libdir}
+       install -m 0644 qextscintilla*.h ${D}${includedir}/
 }
 
 FILES_${PN} = "${libdir}"