Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23321 - (show annotations) (download)
Mon Nov 10 14:46:19 2014 UTC (9 years, 6 months ago) by niro
Original Path: trunk/extras/qscintilla-qt4/qscintilla-qt4-2.8.4-r1.smage2
File size: 1257 byte(s)
auto added: ver bump to 2.8.4-r1
1 # $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 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 cd ${SRCDIR}/designer-Qt4Qt5
43 ${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 cd ${SRCDIR}/designer-Qt4Qt5
53 mmake || die
54 }
55
56 src_install()
57 {
58 cd ${SRCDIR}/Qt4Qt5
59 mmake INSTALL_ROOT=${BINDIR} install || die
60
61 # designer plugin
62 cd ${SRCDIR}/designer-Qt4Qt5
63 mmake INSTALL_ROOT=${BINDIR} install || die
64
65 # docs
66 cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die
67 }