Magellan Linux

Annotation of /trunk/extras/qscintilla-qt4/qscintilla-qt4-2.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1938 - (hide annotations) (download)
Wed Jun 10 17:07:56 2009 UTC (15 years, 3 months ago) by niro
File size: 1672 byte(s)
-typo
1 niro 1936 # $Id$
2    
3     PNAME="qscintilla-qt4"
4     PVER="2.4"
5     PBUILD="r2"
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     SDEPEND=">= sys-apps/sed-4"
15    
16     SRCFILE="QScintilla-gpl-${PVER}.tar.gz"
17     SRCDIR="${BUILDDIR}/QScintilla-gpl-${PVER}"
18    
19     # we need the qtdir var
20     sminclude qt4 mtools
21    
22     SRC_URI=(
23     http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-${PVER}-designer.patch
26     )
27    
28     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34     mpatch ${PNAME}-${PVER}-designer.patch || die
35    
36     # create a makefile
37     cd ${SRCDIR}/Qt4
38 niro 1938 ${QMAKE} -o Makefile qscintilla.pro || die
39 niro 1936
40     # designer plugin
41     cd ${SRCDIR}/designer-Qt4
42     ${QMAKE} -o Makefile designer.pro || die
43     }
44    
45     src_compile()
46     {
47     cd ${SRCDIR}/Qt4
48     mmake all staticlib || die
49    
50     # designer plugin
51     cd ${SRCDIR}/designer-Qt4
52     mmake || die
53     }
54    
55     src_install()
56     {
57     cd ${SRCDIR}/Qt4
58    
59     # includes
60     minstalldir ${QTDIR}/include/Qsci || die
61     minstallfile Qsci/\*.h ${QTDIR}/include/Qsci/ || die
62    
63     # libs
64     minstalldir ${QTDIR}/$(mlibdir) || die
65     minstallexec libqscintilla2.a\* ${QTDIR}/$(mlibdir) || die
66     cp -d libqscintilla2.so* ${BINDIR}/${QTDIR}/$(mlibdir) || die
67    
68     # trans
69     minstalldir ${QTDIR}/translations || die
70     minstallfile qscintilla\*.qm ${QTDIR}/translations || die
71    
72     # designer plugin
73     cd ${SRCDIR}/designer-Qt4
74     mmake INSTALL_ROOT=${BINDIR} install || die
75    
76     # docs
77     cd ${SRCDIR}; minstalldocs ChangeLog LICENSE* NEWS README || die
78     }

Properties

Name Value
svn:keywords Id