Contents of /branches/R11-stable/extras/qscintilla-qt4/qscintilla-qt4-2.7-r1.smage2
Parent Directory | Revision Log
Revision 15347 -
(show annotations)
(download)
Wed Jan 2 11:33:02 2013 UTC (11 years, 4 months ago) by niro
File size: 1339 byte(s)
Wed Jan 2 11:33:02 2013 UTC (11 years, 4 months ago) by niro
File size: 1339 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="qscintilla-qt4" |
4 | PVER="2.7" |
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=">= sys-apps/sed-4" |
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 | mirror://${PNAME}/${PNAME}-2.4-designer.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | mpatch ${PNAME}-2.4-designer.patch || die |
38 | |
39 | # create a makefile |
40 | cd ${SRCDIR}/Qt4Qt5 |
41 | ${QMAKE} -o Makefile qscintilla.pro || die |
42 | |
43 | # designer plugin |
44 | cd ${SRCDIR}/designer-Qt4 |
45 | ${QMAKE} -o Makefile designer.pro || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR}/Qt4Qt5 |
51 | mmake all staticlib || die |
52 | |
53 | # designer plugin |
54 | cd ${SRCDIR}/designer-Qt4 |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR}/Qt4Qt5 |
61 | mmake INSTALL_ROOT=${BINDIR} install || die |
62 | |
63 | # designer plugin |
64 | cd ${SRCDIR}/designer-Qt4 |
65 | mmake INSTALL_ROOT=${BINDIR} install || die |
66 | |
67 | # docs |
68 | cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die |
69 | } |