Contents of /trunk/extras/qscintilla-qt4/qscintilla-qt4-2.4-r1.smage2
Parent Directory | Revision Log
Revision 1909 -
(show annotations)
(download)
Tue Jun 9 20:49:46 2009 UTC (15 years, 3 months ago) by niro
File size: 1717 byte(s)
Tue Jun 9 20:49:46 2009 UTC (15 years, 3 months ago) by niro
File size: 1717 byte(s)
-fixed src_install()
1 | # $Id$ |
2 | |
3 | PNAME="qscintilla-qt4" |
4 | PVER="2.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-python" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class." |
11 | HOMEPAGE="http://www.riverbankcomputing.com/software/qscintilla/" |
12 | |
13 | DEPEND=">= dev-lang/python-2.6 |
14 | >= x11-libs/qt4-4.5" |
15 | |
16 | SDEPEND=">= sys-apps/sed-4" |
17 | |
18 | SRCFILE="QScintilla-gpl-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/QScintilla-gpl-${PVER}" |
20 | |
21 | # we need the qtdir var |
22 | sminclude kde4 mtools |
23 | |
24 | SRC_URI=( |
25 | http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-${PVER}-designer.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | mpatch ${PNAME}-${PVER}-designer.patch || die |
37 | |
38 | # create a makefile |
39 | cd ${SRCDIR}/Qt4 |
40 | ${QTDIR}/bin/qmake4 -o Makefile qscintilla.pro || die |
41 | |
42 | # designer plugin |
43 | cd ${SRCDIR}/designer-Qt4 |
44 | ${QTDIR}/bin/qmake4 -o Makefile designer.pro || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR}/Qt4 |
50 | mmake all staticlib || die |
51 | |
52 | # designer plugin |
53 | cd ${SRCDIR}/designer-Qt4 |
54 | mmake || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR}/Qt4 |
60 | |
61 | # includes |
62 | minstalldir ${QTDIR}/include/Qsci || die |
63 | minstallfile Qsci/\*.h ${QTDIR}/include/Qsci/ || die |
64 | |
65 | # libs |
66 | minstalldir ${QTDIR}/$(mlibdir) || die |
67 | minstallexec libqscintilla2.a\* ${QTDIR}/$(mlibdir) || die |
68 | cp -d libqscintilla2.so* ${BINDIR}/${QTDIR}/$(mlibdir) || die |
69 | |
70 | # trans |
71 | minstalldir ${QTDIR}/translations || die |
72 | minstallfile qscintilla\*.qm ${QTDIR}/translations || die |
73 | |
74 | # designer plugin |
75 | cd ${SRCDIR}/designer-Qt4 |
76 | mmake INSTALL_ROOT=${BINDIR} install || die |
77 | |
78 | # docs |
79 | cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die |
80 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |