Magellan Linux

Annotation of /branches/R11-unstable/extras/qscintilla-qt4/qscintilla-qt4-2.8.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23323 - (hide annotations) (download)
Mon Nov 10 15:12:32 2014 UTC (9 years, 6 months ago) by niro
Original Path: trunk/extras/qscintilla-qt4/qscintilla-qt4-2.8.4-r1.smage2
File size: 1334 byte(s)
-fixed build of the designer plugin
1 niro 23321 # $Id$
2    
3     PNAME="qscintilla-qt4"
4     PVER="2.8.4"
5     PBUILD="r1"
6    
7     PCAT="dev-python"
8    
9     DESCRIPTION="QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class."
10     HOMEPAGE="http://www.riverbankcomputing.com/software/qscintilla/"
11    
12     DEPEND=">= dev-lang/python-2.7
13     >= x11-libs/qt4-core-4.8
14     >= x11-libs/qt4-gui-4.8
15     >= x11-libs/qt4-script-4.8"
16    
17 niro 23322 SDEPEND=">= virtual/sed
18     >= x11-apps/qt4-designer-4.8"
19 niro 23321
20     SRCFILE="QScintilla-gpl-${PVER}.tar.gz"
21     SRCDIR="${BUILDDIR}/QScintilla-gpl-${PVER}"
22    
23     # we need the qtdir var
24     sminclude qt4 mtools
25    
26     SRC_URI=(
27     sourceforge://pyqt/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     )
30    
31     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
32    
33     src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     # create a makefile
39     cd ${SRCDIR}/Qt4Qt5
40     ${QMAKE} -o Makefile qscintilla.pro || die
41    
42     # designer plugin
43     cd ${SRCDIR}/designer-Qt4Qt5
44 niro 23323 ${QMAKE} -o Makefile designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5 || die
45 niro 23321 }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}/Qt4Qt5
50     mmake all staticlib || die
51    
52     # designer plugin
53     cd ${SRCDIR}/designer-Qt4Qt5
54     mmake || die
55     }
56    
57     src_install()
58     {
59     cd ${SRCDIR}/Qt4Qt5
60     mmake INSTALL_ROOT=${BINDIR} install || die
61    
62     # designer plugin
63     cd ${SRCDIR}/designer-Qt4Qt5
64     mmake INSTALL_ROOT=${BINDIR} install || die
65    
66     # docs
67     cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die
68     }