Contents of /branches/magellan-next/extras/qscintilla-qt4/qscintilla-qt4-2.5.1-r1.smage2
Parent Directory | Revision Log
Revision 8569 -
(show annotations)
(download)
Fri Jul 22 10:47:38 2011 UTC (13 years, 3 months ago) by niro
File size: 1382 byte(s)
Fri Jul 22 10:47:38 2011 UTC (13 years, 3 months ago) by niro
File size: 1382 byte(s)
auto added: ver bump to 2.5.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="qscintilla-qt4" |
4 | PVER="2.5.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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.7 |
14 | >= x11-libs/qt4-gui-4.7 |
15 | >= x11-libs/qt4-script-4.7" |
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 | http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${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}/Qt4 |
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}/Qt4 |
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}/Qt4 |
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 | } |