Gentoo Archives: gentoo-commits

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