1 |
hwoarang 11/11/19 20:14:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-creator-2.4.0_rc.ebuild |
5 |
Log: |
6 |
version bump. EAPI4, code fixes from qting-edge overlay |
7 |
|
8 |
(Portage version: 2.2.0_alpha71/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.96 dev-util/qt-creator/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/qt-creator/ChangeLog?rev=1.96&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/qt-creator/ChangeLog?rev=1.96&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/qt-creator/ChangeLog?r1=1.95&r2=1.96 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v |
20 |
retrieving revision 1.95 |
21 |
retrieving revision 1.96 |
22 |
diff -u -r1.95 -r1.96 |
23 |
--- ChangeLog 20 Oct 2011 18:38:12 -0000 1.95 |
24 |
+++ ChangeLog 19 Nov 2011 20:14:38 -0000 1.96 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-util/qt-creator |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.95 2011/10/20 18:38:12 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.96 2011/11/19 20:14:38 hwoarang Exp $ |
30 |
+ |
31 |
+*qt-creator-2.4.0_rc (19 Nov 2011) |
32 |
+ |
33 |
+ 19 Nov 2011; Markos Chandras <hwoarang@g.o> |
34 |
+ +qt-creator-2.4.0_rc.ebuild: |
35 |
+ version bump. EAPI4, code fixes from qting-edge overlay |
36 |
|
37 |
20 Oct 2011; Markos Chandras <hwoarang@g.o> qt-creator-2.1.0.ebuild, |
38 |
qt-creator-2.2.0-r1.ebuild, qt-creator-2.2.1.ebuild, qt-creator-2.3.0.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-util/qt-creator/qt-creator-2.4.0_rc.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/qt-creator/qt-creator-2.4.0_rc.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/qt-creator/qt-creator-2.4.0_rc.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: qt-creator-2.4.0_rc.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/qt-creator-2.4.0_rc.ebuild,v 1.1 2011/11/19 20:14:38 hwoarang Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
LANGS="cs de es fr hu it ja pl ru sl uk zh_CN" |
55 |
|
56 |
inherit qt4-r2 multilib flag-o-matic versionator |
57 |
MY_PN="${PN/-/}" |
58 |
MY_PV="${PV/_/-}" |
59 |
MY_P="${PN}-${MY_PV}" |
60 |
|
61 |
DESCRIPTION="Lightweight IDE for C++ development centering around Qt" |
62 |
HOMEPAGE="http://qt.nokia.com/products/developer-tools" |
63 |
SRC_URI="http://get.qt.nokia.com/${MY_PN}/${MY_P}-src.tar.gz" |
64 |
|
65 |
LICENSE="LGPL-2.1" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
68 |
IUSE="bazaar bineditor bookmarks +botan-bundled +cmake cvs debug doc examples fakevim git |
69 |
mercurial perforce +qml qtscript rss subversion" |
70 |
QTVER="4.7.4:4" |
71 |
CDEPEND=">=x11-libs/qt-assistant-${QTVER}[doc?] |
72 |
>=x11-libs/qt-sql-${QTVER} |
73 |
>=x11-libs/qt-svg-${QTVER} |
74 |
debug? ( >=x11-libs/qt-test-${QTVER} ) |
75 |
!qml? ( >=x11-libs/qt-gui-${QTVER} ) |
76 |
qml? ( |
77 |
>=x11-libs/qt-declarative-${QTVER}[private-headers] |
78 |
>=x11-libs/qt-core-${QTVER}[private-headers] |
79 |
>=x11-libs/qt-gui-${QTVER}[private-headers] |
80 |
>=x11-libs/qt-script-${QTVER}[private-headers] |
81 |
) |
82 |
qtscript? ( >=x11-libs/qt-script-${QTVER} ) |
83 |
!botan-bundled? ( =dev-libs/botan-1.8* )" |
84 |
|
85 |
DEPEND="${CDEPEND} |
86 |
!botan-bundled? ( dev-util/pkgconfig )" |
87 |
|
88 |
RDEPEND="${CDEPEND} |
89 |
bazaar? ( dev-vcs/bzr ) |
90 |
cmake? ( dev-util/cmake ) |
91 |
cvs? ( dev-vcs/cvs ) |
92 |
sys-devel/gdb[python] |
93 |
examples? ( >=x11-libs/qt-demo-${QTVER} ) |
94 |
git? ( dev-vcs/git ) |
95 |
mercurial? ( dev-vcs/mercurial ) |
96 |
subversion? ( dev-vcs/subversion )" |
97 |
|
98 |
PLUGINS="bookmarks bineditor cmake cvs fakevim git mercurial |
99 |
perforce qml qtscript subversion" |
100 |
|
101 |
S="${WORKDIR}"/"${MY_P}"-src |
102 |
|
103 |
src_prepare() { |
104 |
qt4-r2_src_prepare |
105 |
|
106 |
# fix library path for styleplugin |
107 |
sed -i -e "/target.path/s:lib:$(get_libdir):" \ |
108 |
"${S}"/src/libs/qtcomponents/styleitem/styleitem.pro \ |
109 |
|| die "Failed to fix multilib dir for styleplugin" |
110 |
|
111 |
# bug 263087 |
112 |
for plugin in ${PLUGINS}; do |
113 |
if ! use ${plugin}; then |
114 |
einfo "Disabling ${plugin} support" |
115 |
if [[ ${plugin} == "cmake" ]]; then |
116 |
plugin="cmakeprojectmanager" |
117 |
elif [[ ${plugin} == "qtscript" ]]; then |
118 |
plugin="qtscripteditor" |
119 |
elif [[ ${plugin} == "qml" ]]; then |
120 |
for x in qmlprojectmanager qmljsinspector qmljseditor qmljstools qmldesigner; do |
121 |
einfo "Disabling ${x} support" |
122 |
sed -i "/plugin_${x}/s:^:#:" src/plugins/plugins.pro \ |
123 |
|| die "Failed to disable ${x} plugin" |
124 |
done |
125 |
fi |
126 |
# Now disable the plugins |
127 |
sed -i "/plugin_${plugin}/s:^:#:" src/plugins/plugins.pro |
128 |
fi |
129 |
done |
130 |
|
131 |
if use perforce; then |
132 |
ewarn |
133 |
ewarn "You have enabled perforce plugin." |
134 |
ewarn "In order to use it, you need to manually" |
135 |
ewarn "download the perforce client from http://www.perforce.com/perforce/downloads/index.html" |
136 |
ewarn |
137 |
fi |
138 |
# disable rss news on startup ( bug #302978 ) |
139 |
if ! use rss; then |
140 |
einfo "Disabling RSS welcome news" |
141 |
sed -i "/m_rssFetcher->fetch/s:^:\/\/:" \ |
142 |
src/plugins/welcome/communitywelcomepagewidget.cpp || die |
143 |
fi |
144 |
|
145 |
# fix translations |
146 |
sed -i "/^LANGUAGES/s:=.*:= ${LANGS}:" \ |
147 |
share/${MY_PN}/translations/translations.pro || die |
148 |
|
149 |
# add rpath to make qtcreator actual find its *own* plugins |
150 |
sed -i "/^LIBS/s:+=:& -Wl,-rpath,/usr/$(get_libdir)/${MY_PN} :" qtcreator.pri || die |
151 |
|
152 |
if ! use botan-bundled; then |
153 |
# identify system botan and pkg-config file |
154 |
local botan_version=$(best_version dev-libs/botan | cut -d '-' -f3 | \ |
155 |
cut -d '.' -f1,2) |
156 |
local lib_botan=$(pkg-config --libs botan-${botan_version}) |
157 |
einfo "Major version of system's botan library to be used: ${botan_version}" |
158 |
|
159 |
# drop bundled libBotan. Bug #383033 |
160 |
rm -rf "${S}"/src/libs/3rdparty/botan || die |
161 |
# remove references to bundled botan |
162 |
sed -i -e "s:botan::" "${S}"/src/libs/3rdparty/3rdparty.pro || die |
163 |
for x in testrunner parsertests modeldemo; do |
164 |
sed -i -e "/botan.pri/d" "${S}"/tests/valgrind/memcheck/${x}.pro || die |
165 |
done |
166 |
sed -i -e "/botan.pri/d" "${S}"/src/libs/utils/utils_dependencies.pri || die |
167 |
sed -i -e "/botan.pri/d" "${S}"/tests/manual/preprocessor/preprocessor.pro || die |
168 |
# link to system botan |
169 |
sed -i -e "/LIBS/s:$: ${lib_botan}:" "${S}"/${MY_PN}.pri || die |
170 |
sed -i -e "s:-lBotan:${lib_botan}:" "${S}"/tests/manual/appwizards/appwizards.pro || die |
171 |
# append botan refs to compiler flags |
172 |
append-flags $(pkg-config --cflags --libs botan-${botan_version}) |
173 |
fi |
174 |
} |
175 |
|
176 |
src_configure() { |
177 |
#the path must NOT be empty |
178 |
local qtheaders="False" |
179 |
use qml && qtheaders="/usr/include/qt4/" |
180 |
eqmake4 \ |
181 |
${MY_PN}.pro \ |
182 |
IDE_LIBRARY_BASENAME="$(get_libdir)" \ |
183 |
QT_PRIVATE_HEADERS=${qtheaders} |
184 |
} |
185 |
|
186 |
src_compile() { |
187 |
emake |
188 |
use doc && emake docs |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
#install wrapper |
193 |
dobin bin/${MY_PN} bin/qtpromaker |
194 |
if use qml; then |
195 |
# qmlpuppet component. Bug #367383 |
196 |
dobin bin/qmlpuppet |
197 |
fi |
198 |
emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install_subtargets |
199 |
|
200 |
if use doc; then |
201 |
[[ -e "${S}"/share/doc/${MY_PN}/${MY_PN}.qch ]] || die "${MY_PN}.qch is missing" |
202 |
emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install_docs |
203 |
fi |
204 |
|
205 |
# Install missing icon |
206 |
doicon "${S}"/share/qtcreator/templates/wizards/qtcreatorplugin/${MY_PN}_logo_24.png \ |
207 |
|| die "failed to install icon" |
208 |
make_desktop_entry ${MY_PN} "Qt Creator" ${MY_PN}_logo_24 \ |
209 |
'Qt;Development;IDE' || die |
210 |
|
211 |
# Remove unneeded translations |
212 |
for lang in ${LANGS}; do |
213 |
if ! has $lang ${LINGUAS}; then |
214 |
rm "${D}"/usr/share/${MY_PN}/translations/${MY_PN}_${lang}.qm \ |
215 |
|| die "failed to remove translations" |
216 |
fi |
217 |
done |
218 |
} |