Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1907 - (hide annotations) (download)
Tue Jun 9 20:46:57 2009 UTC (14 years, 11 months ago) by niro
File size: 1716 byte(s)
-fixed src_install()
1 niro 1904 # $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 niro 1907 mirror://${PNAME}/${PNAME}-${PVER}-designer.patch
28 niro 1904 )
29    
30     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35 niro 1907 cd ${SRCDIR}
36     mpatch ${PNAME}-${PVER}-designer.patch || die
37 niro 1904
38     # create a makefile
39 niro 1907 cd ${SRCDIR}/Qt4
40 niro 1904 ${QTDIR}/bin/qmake4 -o Makefile qscintilla.pro || die
41    
42 niro 1907 # designer plugin
43     cd ${SRCDIR}/designer-Qt4
44     ${QTDIR}/bin/qmake4 -o Makefile designer.pro || die
45 niro 1904 }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}/Qt4
50 niro 1907 mmake all staticlib || die
51 niro 1904
52 niro 1907 # designer plugin
53     cd ${SRCDIR}/designer-Qt4
54     mmake || die
55 niro 1904 }
56    
57     src_install()
58     {
59     cd ${SRCDIR}/Qt4
60    
61     # includes
62 niro 1906 minstalldir ${QTDIR}/include/Qsci || die
63     minstallfile Qsci/\*.h ${QTDIR}/include/Qsci/ || die
64 niro 1904
65     # libs
66 niro 1906 minstalldir ${QTDIR}/$(mlibdir) || die
67     minstallexec libqscintilla2.a\* ${QTDIR}/$(mlibdir) || die
68 niro 1907 cp -d libqscintilla2.so* ${BINDIR}/${QTDIR}/$(mlibdir) || die
69 niro 1904
70     # trans
71 niro 1906 minstalldir ${QTDIR}/translations || die
72 niro 1904 minstallfile qscintilla\*.qm ${QTDIR}/translations || die
73    
74 niro 1906 # designer plugin
75     cd ${SRCDIR}/designer-Qt4
76     mmake INSTALL_ROOT=${BINDIR} install || die
77    
78 niro 1904 # docs
79     cd ${SRCDIR}; minstalldocs ChangeLog LICENSE NEWS README || die
80     }

Properties

Name Value
svn:keywords Id