Magellan Linux

Diff of /trunk/extras/qscintilla-qt4/qscintilla-qt4-2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1906 by niro, Tue Jun 9 20:41:27 2009 UTC revision 1907 by niro, Tue Jun 9 20:46:57 2009 UTC
# Line 24  sminclude kde4 mtools Line 24  sminclude kde4 mtools
24  SRC_URI=(  SRC_URI=(
25   http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${SRCFILE}   http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${SRCFILE}
26   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-${PVER}-designer.patch
28  )  )
29    
30  UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"  UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
# Line 31  UP2DATE="updatecmd ${HOMEPAGE}/download Line 32  UP2DATE="updatecmd ${HOMEPAGE}/download
32  src_prepare()  src_prepare()
33  {  {
34   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
35   cd ${SRCDIR}/Qt4   cd ${SRCDIR}
36     mpatch ${PNAME}-${PVER}-designer.patch || die
37    
38   # create a makefile   # create a makefile
39     cd ${SRCDIR}/Qt4
40   ${QTDIR}/bin/qmake4 -o Makefile qscintilla.pro || die   ${QTDIR}/bin/qmake4 -o Makefile qscintilla.pro || die
41    
42   # fix cflags   # designer plugin
43   sed -i "s/CFLAGS   = -pipe -w -O2/CFLAGS   = ${CFLAGS} -w/" Makefile || die   cd ${SRCDIR}/designer-Qt4
44   sed -i "s/CXXFLAGS = -pipe -w -O2/CXXFLAGS = ${CXXFLAGS} -w/" Makefile || die   ${QTDIR}/bin/qmake4 -o Makefile designer.pro || die
45  }  }
46    
47  src_compile()  src_compile()
48  {  {
49   cd ${SRCDIR}/Qt4   cd ${SRCDIR}/Qt4
50     mmake all staticlib || die
51    
52   # fix buggy makefile; TARGETA & MOVE -> do not install in MROOT   # designer plugin
53   # DEL_FILE -> do not remove orig files from MROOT   cd ${SRCDIR}/designer-Qt4
54   make all staticlib \   mmake || die
  TARGETA=libqscintilla.a \  
  MOVE=true \  
  DEL_FILE=true || die  
55  }  }
56    
57  src_install()  src_install()
# Line 64  src_install() Line 65  src_install()
65   # libs   # libs
66   minstalldir ${QTDIR}/$(mlibdir) || die   minstalldir ${QTDIR}/$(mlibdir) || die
67   minstallexec libqscintilla2.a\* ${QTDIR}/$(mlibdir) || die   minstallexec libqscintilla2.a\* ${QTDIR}/$(mlibdir) || die
68   cp -d libqscintilla2.so.* ${BINDIR}/${QTDIR}/$(mlibdir) || die   cp -d libqscintilla2.so* ${BINDIR}/${QTDIR}/$(mlibdir) || die
69    
70   # trans   # trans
71   minstalldir ${QTDIR}/translations || die   minstalldir ${QTDIR}/translations || die

Legend:
Removed from v.1906  
changed lines
  Added in v.1907