Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1904 - (hide annotations) (download)
Tue Jun 9 20:33:28 2009 UTC (14 years, 11 months ago) by niro
File size: 1717 byte(s)
auto added: ver bump to 2.4-r1
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     )
28    
29     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}/Qt4
35    
36     # create a makefile
37     ${QTDIR}/bin/qmake4 -o Makefile qscintilla.pro || die
38    
39     # fix cflags
40     sed -i "s/CFLAGS = -pipe -w -O2/CFLAGS = ${CFLAGS} -w/" Makefile || die
41     sed -i "s/CXXFLAGS = -pipe -w -O2/CXXFLAGS = ${CXXFLAGS} -w/" Makefile || die
42     }
43    
44     src_compile()
45     {
46     cd ${SRCDIR}/Qt4
47    
48     # fix buggy makefile; TARGETA & MOVE -> do not install in MROOT
49     # DEL_FILE -> do not remove orig files from MROOT
50     make all staticlib \
51     TARGETA=libqscintilla.a \
52     MOVE=true \
53     DEL_FILE=true || die
54     }
55    
56     src_install()
57     {
58     cd ${SRCDIR}/Qt4
59    
60     # needed directories
61     minstalldir ${QTDIR}/include || die
62     minstalldir ${QTDIR}/translations || die
63     minstalldir ${QTDIR}/$(mlibdir) || die
64    
65     # includes
66     minstallfile qextscintilla\*.h ${QTDIR}/include || die
67    
68     # libs
69     minstallexec libqscintilla.a\* ${QTDIR}/$(mlibdir) || die
70     cp -d libqscintilla.so.* ${BINDIR}/${QTDIR}/$(mlibdir) || die
71    
72     # trans
73     minstallfile qscintilla\*.qm ${QTDIR}/translations || die
74    
75     # docs
76     cd ${SRCDIR}; minstalldocs ChangeLog LICENSE NEWS README || die
77     }

Properties

Name Value
svn:keywords Id