Magellan Linux

Annotation of /trunk/extras/qscintilla-qt4/qscintilla-qt4-2.8.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26589 - (hide annotations) (download)
Wed Jul 8 08:42:34 2015 UTC (8 years, 11 months ago) by niro
File size: 1334 byte(s)
auto added: ver bump to 2.8.4-r2
1 niro 26589 # $Id$
2    
3     PNAME="qscintilla-qt4"
4     PVER="2.8.4"
5     PBUILD="r2"
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     SDEPEND=">= virtual/sed
18     >= x11-apps/qt4-designer-4.8"
19    
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     ${QMAKE} -o Makefile designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5 || die
45     }
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     }