Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qscintilla: ChangeLog qscintilla-2.3.2.ebuild
Date: Fri, 21 Nov 2008 13:58:52
Message-Id: E1L3WX3-0002yJ-PQ@stork.gentoo.org
1 yngwin 08/11/21 13:58:49
2
3 Modified: ChangeLog
4 Added: qscintilla-2.3.2.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc14/cvs/Linux 2.6.27-hh5 i686)
8
9 Revision Changes Path
10 1.17 x11-libs/qscintilla/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qscintilla/ChangeLog?rev=1.17&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qscintilla/ChangeLog?rev=1.17&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qscintilla/ChangeLog?r1=1.16&r2=1.17
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qscintilla/ChangeLog,v
19 retrieving revision 1.16
20 retrieving revision 1.17
21 diff -u -r1.16 -r1.17
22 --- ChangeLog 11 Oct 2008 22:59:04 -0000 1.16
23 +++ ChangeLog 21 Nov 2008 13:58:49 -0000 1.17
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-libs/qscintilla
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qscintilla/ChangeLog,v 1.16 2008/10/11 22:59:04 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qscintilla/ChangeLog,v 1.17 2008/11/21 13:58:49 yngwin Exp $
29 +
30 +*qscintilla-2.3.2 (21 Nov 2008)
31 +
32 + 21 Nov 2008; Ben de Groot <yngwin@g.o> +qscintilla-2.3.2.ebuild:
33 + Version bump
34
35 11 Oct 2008; Diego Pettenò <flameeyes@g.o> qscintilla-2.3.ebuild:
36 Fix build dependencies.
37
38
39
40 1.1 x11-libs/qscintilla/qscintilla-2.3.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qscintilla/qscintilla-2.3.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qscintilla/qscintilla-2.3.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: qscintilla-2.3.2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qscintilla/qscintilla-2.3.2.ebuild,v 1.1 2008/11/21 13:58:49 yngwin Exp $
50
51 EAPI=1
52 inherit eutils toolchain-funcs multilib
53
54 MY_P="${PN/qs/QS}-gpl-${PV}"
55 S=${WORKDIR}/${MY_P}
56
57 DESCRIPTION="A Qt port of Neil Hodgson's Scintilla C++ editor class"
58 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
59 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${MY_P}.tar.gz"
60
61 SLOT="0"
62 LICENSE="GPL-2"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
64 IUSE="qt4 +python doc examples debug"
65
66 RDEPEND="qt4? ( || ( x11-libs/qt-gui:4
67 =x11-libs/qt-4.3*:4 )
68 )
69 !qt4? ( x11-libs/qt:3 )"
70 DEPEND="${RDEPEND}"
71 # dev-python/PyQt needs qscintilla to build and qscintilla's python bindings
72 # need dev-python/PyQt, bug 199543
73 PDEPEND="python? ( dev-python/qscintilla-python )"
74
75 src_unpack() {
76 unpack ${A}
77
78 local myqmake myqtdir
79 if use qt4; then
80 myqmake=/usr/bin/qmake
81 myqtdir=Qt4
82 else
83 myqmake="${QTDIR}/bin/qmake"
84 myqtdir=Qt3
85 fi
86
87 cd "${S}/${myqtdir}"
88 sed -i \
89 -e "s:DESTDIR = \$(QTDIR)/lib:DESTDIR = lib:" \
90 -e "s:DESTDIR = \$\$\[QT_INSTALL_LIBS\]:DESTDIR = lib:"\
91 qscintilla.pro || die "sed in qscintilla.pro failed"
92
93 cat <<- EOF >> qscintilla.pro
94 QMAKE_CFLAGS_RELEASE=${CFLAGS} -w
95 QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w
96 QMAKE_LFLAGS_RELEASE=${LDFLAGS}
97 EOF
98
99 ${myqmake} -o Makefile qscintilla.pro
100 cd "${S}/designer-${myqtdir}"
101
102 if use qt4; then
103 epatch "${FILESDIR}/${PN}-2.2-qt4.patch"
104 else
105 epatch "${FILESDIR}/${PN}-2.2-qt.patch"
106
107 sed -i \
108 -e "s:DESTDIR = \$(QTDIR)/plugins/designer:DESTDIR = .:" \
109 designer.pro || die "sed in designer.pro failed"
110 fi
111
112 cat <<- EOF >> designer.pro
113 QMAKE_CFLAGS_RELEASE=${CFLAGS} -w
114 QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w
115 QMAKE_LFLAGS_RELEASE=${LDFLAGS}
116 EOF
117
118 ${myqmake} -o Makefile designer.pro
119 }
120
121 src_compile() {
122 if use qt4; then
123 cd "${S}"/Qt4
124 else
125 cd "${S}"/Qt3
126 fi
127 make all staticlib CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "make failed"
128
129 if use qt4; then
130 cd "${S}"/designer-Qt4
131 make DESTDIR="${D}"/usr/lib/qt4/plugins/designer || die "make failed"
132 dodir /usr/lib/qt4/plugins/designer
133 else
134 cd "${S}"/designer-Qt3
135 make DESTDIR="${D}"/${QTDIR}/plugins/designer || die "make failed"
136 dodir ${QTDIR}/plugins/designer
137 fi
138 make
139 }
140
141 src_install() {
142 dodoc ChangeLog NEWS README*
143 dodir /usr/{include,$(get_libdir),share/qscintilla/translations}
144 if use qt4; then
145 cd "${S}"/Qt4
146 else
147 cd "${S}"/Qt3
148 fi
149 cp -r Qsci "${D}/usr/include"
150 #cp qextscintilla*.h "${D}/usr/include"
151 cp qscintilla*.qm "${D}/usr/share/qscintilla/translations"
152 cp libqscintilla2.a* "${D}/usr/$(get_libdir)"
153 cp -d libqscintilla2.so.* "${D}/usr/$(get_libdir)"
154 if use qt4; then
155 dodir /usr/share/qt4/translations/
156 for I in $(ls -1 qscintilla*.qm) ; do
157 dosym "/usr/share/qscintilla/translations/${I}" "/usr/share/qt4/translations/${I}"
158 done
159 else
160 dodir ${QTDIR}/translations/
161 for I in $(ls -1 qscintilla*.qm) ; do
162 dosym "/usr/share/qscintilla/translations/${I}" "${QTDIR}/translations/${I}"
163 done
164 fi
165 if use doc ; then
166 dohtml "${S}"/doc/html/*
167 insinto /usr/share/doc/${PF}/Scintilla
168 doins "${S}"/doc/Scintilla/*
169 fi
170 if use qt4; then
171 insinto /usr/$(get_libdir)/qt4/plugins/designer
172 insopts -m0755
173 doins "${S}"/designer-Qt4/libqscintillaplugin.so
174 else
175 insinto ${QTDIR}/plugins/designer
176 insopts -m0755
177 doins "${S}"/designer-Qt3/libqscintillaplugin.so
178 fi
179 }
180
181 pkg_postinst() {
182 if use qt4; then
183 ewarn "Please remerge dev-python/PyQt4 if you have problems with eric4"
184 else
185 ewarn "Please remerge dev-python/PyQt if you have problems with eric3"
186 fi
187 ewarn "or other qscintilla related packages before submitting bug reports."
188 }