Magellan Linux

Annotation of /branches/R11-stable/extras/qscintilla-qt4/qscintilla-qt4-2.7.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18245 - (hide annotations) (download)
Thu Jun 27 10:05:39 2013 UTC (10 years, 11 months ago) by niro
File size: 1257 byte(s)
-release branches/R11-stable
1 niro 17511 # $Id$
2    
3     PNAME="qscintilla-qt4"
4     PVER="2.7.2"
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     SDEPEND=">= virtual/sed"
18    
19     SRCFILE="QScintilla-gpl-${PVER}.tar.gz"
20     SRCDIR="${BUILDDIR}/QScintilla-gpl-${PVER}"
21    
22     # we need the qtdir var
23     sminclude qt4 mtools
24    
25     SRC_URI=(
26     sourceforge://pyqt/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     )
29    
30     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35     cd ${SRCDIR}
36    
37     # create a makefile
38     cd ${SRCDIR}/Qt4Qt5
39     ${QMAKE} -o Makefile qscintilla.pro || die
40    
41     # designer plugin
42 niro 17513 cd ${SRCDIR}/designer-Qt4Qt5
43 niro 17511 ${QMAKE} -o Makefile designer.pro || die
44     }
45    
46     src_compile()
47     {
48     cd ${SRCDIR}/Qt4Qt5
49     mmake all staticlib || die
50    
51     # designer plugin
52 niro 17513 cd ${SRCDIR}/designer-Qt4Qt5
53 niro 17511 mmake || die
54     }
55    
56     src_install()
57     {
58     cd ${SRCDIR}/Qt4Qt5
59     mmake INSTALL_ROOT=${BINDIR} install || die
60    
61     # designer plugin
62 niro 17513 cd ${SRCDIR}/designer-Qt4Qt5
63 niro 17511 mmake INSTALL_ROOT=${BINDIR} install || die
64    
65     # docs
66     cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die
67     }