Annotation of /trunk/extras/qscintilla/qscintilla-1.71-r3.smage2
Parent Directory | Revision Log
Revision 4474 -
(hide annotations)
(download)
Wed Dec 23 20:56:08 2009 UTC (14 years, 6 months ago) by niro
File size: 1660 byte(s)
Wed Dec 23 20:56:08 2009 UTC (14 years, 6 months ago) by niro
File size: 1660 byte(s)
auto added: ver bump to 1.71-r3
1 | niro | 4474 | # $Id$ |
2 | |||
3 | PNAME="qscintilla" | ||
4 | PVER="1.71" | ||
5 | PBUILD="r3" | ||
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.6" | ||
14 | SDEPEND=">= sys-apps/sed-4" | ||
15 | |||
16 | SRCFILE="QScintilla-${PVER}-gpl-${PVER:0:3}.${PVER:3:4}.tar.gz" | ||
17 | SRCDIR="${BUILDDIR}/QScintilla-${PVER}-gpl-${PVER:0:3}.${PVER:3:4}" | ||
18 | |||
19 | # we needs the qtdir var | ||
20 | sminclude qt3 mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | http://www.riverbankcomputing.com/static/Downloads/QScintilla1/${SRCFILE} | ||
24 | mirror://${PNAME}/${SRCFILE} | ||
25 | ) | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR}/qt | ||
31 | |||
32 | # create a makefile | ||
33 | ${QMAKE} -o Makefile qscintilla.pro || die | ||
34 | |||
35 | # fix cflags | ||
36 | sed -i "s/CFLAGS = -pipe -w -O2/CFLAGS = ${CFLAGS} -w/" Makefile || die | ||
37 | sed -i "s/CXXFLAGS = -pipe -w -O2/CXXFLAGS = ${CXXFLAGS} -w/" Makefile || die | ||
38 | } | ||
39 | |||
40 | src_compile() | ||
41 | { | ||
42 | cd ${SRCDIR}/qt | ||
43 | |||
44 | # fix buggy makefile; TARGETA & MOVE -> do not install in MROOT | ||
45 | # DEL_FILE -> do not remove orig files from MROOT | ||
46 | make all staticlib \ | ||
47 | TARGETA=libqscintilla.a \ | ||
48 | MOVE=true \ | ||
49 | DEL_FILE=true || die | ||
50 | } | ||
51 | |||
52 | src_install() | ||
53 | { | ||
54 | cd ${SRCDIR}/qt | ||
55 | |||
56 | # needed directories | ||
57 | minstalldir ${QTDIR}/include || die | ||
58 | minstalldir ${QTDIR}/translations || die | ||
59 | minstalldir ${QTDIR}/$(mlibdir) || die | ||
60 | |||
61 | # includes | ||
62 | minstallfile qextscintilla\*.h ${QTDIR}/include || die | ||
63 | |||
64 | # libs | ||
65 | minstallexec libqscintilla.a\* ${QTDIR}/$(mlibdir) || die | ||
66 | cp -d libqscintilla.so.* ${BINDIR}/${QTDIR}/$(mlibdir) || die | ||
67 | |||
68 | # trans | ||
69 | minstallfile qscintilla\*.qm ${QTDIR}/translations || die | ||
70 | |||
71 | # docs | ||
72 | cd ${SRCDIR}; minstalldocs ChangeLog LICENSE NEWS README || die | ||
73 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |