Magellan Linux

Contents of /trunk/extras/qscintilla/qscintilla-1.71-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 6 months ago) by niro
File size: 1790 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/qscintilla/qscintilla-1.71-r2.smage2,v 1.1 2008/04/20 22:50:09 niro Exp $
2
3 PNAME="qscintilla"
4 PVER="1.71"
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.co.uk/qscintilla/"
12
13 DEPEND=">= dev-lang/python-2.5
14 >= x11-libs/qt-3.3"
15
16 SDEPEND=">= sys-apps/sed-4"
17
18 SRCFILE="QScintilla-${PVER}-gpl-${PVER:0:3}.${PVER:3:4}.tar.gz"
19 SRCDIR="${BUILDDIR}/QScintilla-${PVER}-gpl-${PVER:0:3}.${PVER:3:4}"
20
21 # we needs the qtdir var
22 sminclude kde3 mtools
23
24 SRC_URI=(
25 http://www.riverbankcomputing.com/static/Downloads/QScintilla1/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}/qt
33
34 # create a makefile
35 ${QTDIR}/bin/qmake -o Makefile qscintilla.pro || die
36
37 # fix cflags
38 sed -i "s/CFLAGS = -pipe -w -O2/CFLAGS = ${CFLAGS} -w/" Makefile || die
39 sed -i "s/CXXFLAGS = -pipe -w -O2/CXXFLAGS = ${CXXFLAGS} -w/" Makefile || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}/qt
45
46 # fix buggy makefile; TARGETA & MOVE -> do not install in MROOT
47 # DEL_FILE -> do not remove orig files from MROOT
48 make all staticlib \
49 TARGETA=libqscintilla.a \
50 MOVE=true \
51 DEL_FILE=true || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}/qt
57
58 # needed directories
59 minstalldir ${QTDIR}/include || die
60 minstalldir ${QTDIR}/translations || die
61 minstalldir ${QTDIR}/$(mlibdir) || die
62
63 # includes
64 minstallfile qextscintilla\*.h ${QTDIR}/include || die
65
66 # libs
67 minstallexec libqscintilla.a\* ${QTDIR}/$(mlibdir) || die
68 cp -d libqscintilla.so.* ${BINDIR}/${QTDIR}/$(mlibdir) || die
69
70 # trans
71 minstallfile qscintilla\*.qm ${QTDIR}/translations || die
72
73 # docs
74 cd ${SRCDIR}; minstalldocs ChangeLog LICENSE NEWS README || die
75 }

Properties

Name Value
svn:keywords Id