1 |
hawking 07/09/07 13:25:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qscintilla-2.1.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.3.7) |
8 |
|
9 |
Revision Changes Path |
10 |
1.76 dev-python/qscintilla/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla/ChangeLog?rev=1.76&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla/ChangeLog?rev=1.76&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla/ChangeLog?r1=1.75&r2=1.76 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/qscintilla/ChangeLog,v |
19 |
retrieving revision 1.75 |
20 |
retrieving revision 1.76 |
21 |
diff -u -r1.75 -r1.76 |
22 |
--- ChangeLog 13 Aug 2007 20:41:23 -0000 1.75 |
23 |
+++ ChangeLog 7 Sep 2007 13:25:05 -0000 1.76 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-python/qscintilla |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/ChangeLog,v 1.75 2007/08/13 20:41:23 dertobi123 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/ChangeLog,v 1.76 2007/09/07 13:25:05 hawking Exp $ |
29 |
+ |
30 |
+*qscintilla-2.1 (07 Sep 2007) |
31 |
+ |
32 |
+ 07 Sep 2007; Ali Polatel <hawking@g.o> |
33 |
+ +files/qscintilla-2.1-qt.patch, +files/qscintilla-2.1-qt4.patch, |
34 |
+ +qscintilla-2.1.ebuild: |
35 |
+ version bump. thanks to everyone on bug 158116 and jokey |
36 |
|
37 |
13 Aug 2007; Tobias Scherbaum <dertobi123@g.o> |
38 |
qscintilla-1.7.1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/qscintilla/qscintilla-2.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla/qscintilla-2.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla/qscintilla-2.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: qscintilla-2.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/qscintilla-2.1.ebuild,v 1.1 2007/09/07 13:25:05 hawking Exp $ |
52 |
|
53 |
inherit eutils toolchain-funcs python |
54 |
|
55 |
SCINTILLA_VER="1.73" |
56 |
MY_P="${PN/qs/QS}-${SCINTILLA_VER}-gpl-${PV}" |
57 |
S=${WORKDIR}/${MY_P} |
58 |
|
59 |
DESCRIPTION="QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class." |
60 |
HOMEPAGE="http://www.riverbankcomputing.co.uk/qscintilla/" |
61 |
SRC_URI="http://www.riverbankcomputing.com/Downloads/QScintilla2/${MY_P}.tar.gz" |
62 |
#SRC_URI="mirror://gentoo/${MY_P}.tar.gz" |
63 |
|
64 |
SLOT="0" |
65 |
LICENSE="GPL-2" |
66 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
67 |
IUSE="qt4 python doc examples debug" |
68 |
|
69 |
RDEPEND="qt4? ( =x11-libs/qt-4* ) |
70 |
!qt4? ( =x11-libs/qt-3* ) |
71 |
python? ( dev-lang/python |
72 |
qt4? ( dev-python/PyQt4 ) |
73 |
!qt4? ( dev-python/PyQt ) |
74 |
)" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
|
79 |
if use qt4; then |
80 |
cd ${S}/Qt4 |
81 |
sed -i -e "s:DESTDIR = \$(QTDIR)/lib:DESTDIR = lib:" qscintilla.pro |
82 |
sed -i -e "s:DESTDIR = \$\$\[QT_INSTALL_LIBS\]:DESTDIR = lib:" qscintilla.pro |
83 |
echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> qscintilla.pro |
84 |
/usr/bin/qmake -o Makefile qscintilla.pro |
85 |
|
86 |
cd ${S}/designer-Qt4 |
87 |
epatch ${FILESDIR}/${P}-qt4.patch |
88 |
|
89 |
echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> designer.pro |
90 |
/usr/bin/qmake -o Makefile designer.pro |
91 |
else |
92 |
cd ${S}/Qt3 |
93 |
sed -i -e "s:DESTDIR = \$(QTDIR)/lib:DESTDIR = lib:" qscintilla.pro |
94 |
sed -i -e "s:DESTDIR = \$\$\[QT_INSTALL_LIBS\]:DESTDIR = lib:" qscintilla.pro |
95 |
echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> qscintilla.pro |
96 |
${QTDIR}/bin/qmake -o Makefile qscintilla.pro |
97 |
|
98 |
cd ${S}/designer-Qt3 |
99 |
epatch ${FILESDIR}/${P}-qt.patch |
100 |
|
101 |
sed -i -e "s:DESTDIR = \$(QTDIR)/plugins/designer:DESTDIR = .:" designer.pro |
102 |
echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> designer.pro |
103 |
${QTDIR}/bin/qmake -o Makefile designer.pro |
104 |
fi |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
if use qt4; then |
109 |
cd ${S}/Qt4 |
110 |
else |
111 |
cd ${S}/Qt3 |
112 |
fi |
113 |
make all staticlib CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "make failed" |
114 |
|
115 |
if use qt4; then |
116 |
cd ${S}/designer-Qt4 |
117 |
make DESTDIR=${D}/usr/lib/qt4/plugins/designer || die "make failed" |
118 |
dodir /usr/lib/qt4/plugins/designer |
119 |
if use python; then |
120 |
cd ${S}/Python |
121 |
python_version |
122 |
einfo "Creating bindings for python-${PYVER} ..." |
123 |
local myconf="-d \ |
124 |
/usr/$(get_libdir)/python${PYVER}/site-packages/PyQt4 \ |
125 |
-v /usr/share/sip \ |
126 |
-p 4 \ |
127 |
-n ../Qt4 \ |
128 |
-o ../Qt4/lib" |
129 |
use debug && myconf="${myconf} -u" |
130 |
${python} configure.py ${myconf} |
131 |
emake || die "emake failed" |
132 |
fi |
133 |
else |
134 |
cd ${S}/designer-Qt3 |
135 |
make DESTDIR=${D}/${QTDIR}/plugins/designer || die "make failed" |
136 |
dodir ${QTDIR}/plugins/designer |
137 |
if use python; then |
138 |
cd ${S}/Python |
139 |
python_version |
140 |
einfo "Creating bindings for python-${PYVER} ..." |
141 |
local myconf="-d \ |
142 |
/usr/$(get_libdir)/python${PYVER}/site-packages/ \ |
143 |
-v /usr/share/sip \ |
144 |
-p 3 \ |
145 |
-n ../Qt3 \ |
146 |
-o ../Qt3/lib" |
147 |
use debug && myconf="${myconf} -u" |
148 |
${python} configure.py ${myconf} |
149 |
emake || die "emake failed" |
150 |
fi |
151 |
fi |
152 |
make |
153 |
} |
154 |
|
155 |
src_install() { |
156 |
dodoc ChangeLog LICENSE NEWS README* |
157 |
dodir /usr/{include,$(get_libdir),share/qscintilla/translations} |
158 |
if use qt4; then |
159 |
cd ${S}/Qt4 |
160 |
else |
161 |
cd ${S}/Qt3 |
162 |
fi |
163 |
cp -r Qsci "${D}/usr/include" |
164 |
#cp qextscintilla*.h "${D}/usr/include" |
165 |
cp qscintilla*.qm "${D}/usr/share/qscintilla/translations" |
166 |
cp lib/libqscintilla2.a* "${D}/usr/$(get_libdir)" |
167 |
cp -d lib/libqscintilla2.so.* "${D}/usr/$(get_libdir)" |
168 |
if use qt4; then |
169 |
dodir /usr/share/qt4/translations/ |
170 |
for I in $(ls -1 qscintilla*.qm) ; do |
171 |
dosym "/usr/share/qscintilla/translations/${I}" "/usr/share/qt4/translations/${I}" |
172 |
done |
173 |
else |
174 |
dodir ${QTDIR}/translations/ |
175 |
for I in $(ls -1 qscintilla*.qm) ; do |
176 |
dosym "/usr/share/qscintilla/translations/${I}" "${QTDIR}/translations/${I}" |
177 |
done |
178 |
fi |
179 |
if use doc ; then |
180 |
dohtml ${S}/doc/html/* |
181 |
insinto /usr/share/doc/${PF}/Scintilla |
182 |
doins ${S}/doc/Scintilla/* |
183 |
fi |
184 |
if use qt4; then |
185 |
insinto /usr/lib/qt4/plugins/ |
186 |
insopts -m0755 |
187 |
doins ${S}/designer-Qt4/libqscintillaplugin.so |
188 |
else |
189 |
insinto ${QTDIR}/plugins/designer |
190 |
insopts -m0755 |
191 |
doins ${S}/designer-Qt3/libqscintillaplugin.so |
192 |
fi |
193 |
if use python; then |
194 |
cd ${S}/Python |
195 |
make DESTDIR=${D} install || die "install failed" |
196 |
fi |
197 |
} |
198 |
|
199 |
|
200 |
|
201 |
-- |
202 |
gentoo-commits@g.o mailing list |