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: ChangeLog qt-creator-1.2.0-r2.ebuild
Date: Mon, 29 Jun 2009 20:30:05
Message-Id: E1MLNUJ-0004H1-E9@stork.gentoo.org
1 hwoarang 09/06/29 20:30:03
2
3 Modified: ChangeLog
4 Added: qt-creator-1.2.0-r2.ebuild
5 Log:
6 Rename binary file ( bug 275859 )
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.19 dev-util/qt-creator/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qt-creator/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qt-creator/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qt-creator/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 28 Jun 2009 17:06:24 -0000 1.18
23 +++ ChangeLog 29 Jun 2009 20:30:03 -0000 1.19
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/qt-creator
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.18 2009/06/28 17:06:24 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.19 2009/06/29 20:30:03 hwoarang Exp $
29 +
30 +*qt-creator-1.2.0-r2 (29 Jun 2009)
31 +
32 + 29 Jun 2009; Markos Chandras <hwoarang@g.o>
33 + +qt-creator-1.2.0-r2.ebuild:
34 + Rename binary file ( bug 275859 )
35
36 *qt-creator-1.2.0-r1 (28 Jun 2009)
37
38
39
40
41 1.1 dev-util/qt-creator/qt-creator-1.2.0-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qt-creator/qt-creator-1.2.0-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qt-creator/qt-creator-1.2.0-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qt-creator-1.2.0-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/qt-creator-1.2.0-r2.ebuild,v 1.1 2009/06/29 20:30:03 hwoarang Exp $
51
52 EAPI="2"
53
54 inherit qt4 multilib
55
56 MY_PN="${PN/-/}"
57 MY_P="${P}-src"
58
59 DESCRIPTION="Lightweight IDE for C++ development centering around Qt"
60 HOMEPAGE="http://labs.qtsoftware.com/page/Projects/Tools/QtCreator"
61 SRC_URI="http://download.qtsoftware.com/${MY_PN}/${MY_P}.zip"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
66 IUSE="bineditor bookmarks +cmake debug +debugger +designer doc examples fakevim git kde perforce qtscript subversion"
67
68 DEPEND=">=x11-libs/qt-assistant-4.5.0_rc1
69 >=x11-libs/qt-gui-4.5.0_rc1[dbus,qt3support]"
70
71 RDEPEND="${DEPEND}
72 >=x11-libs/qt-sql-4.5.0_rc1
73 >=x11-libs/qt-svg-4.5.0_rc1
74 >=x11-libs/qt-test-4.5.0_rc1
75 >=x11-libs/qt-webkit-4.5.0_rc1
76 !kde? ( || ( >=x11-libs/qt-phonon-4.5.0_rc1 media-sound/phonon ) )
77 kde? ( media-sound/phonon )
78 cmake? ( dev-util/cmake )
79 debugger? ( sys-devel/gdb )
80 examples? ( >=x11-libs/qt-demo-4.5.0_rc1 )
81 git? ( dev-util/git )
82 qtscript? ( >=x11-libs/qt-script-4.5.0_rc1 )
83 subversion? ( dev-util/subversion )"
84
85 PLUGINS="bookmarks bineditor cmake debugger designer fakevim git perforce qtscript subversion"
86
87 PATCHES=(
88 "${FILESDIR}/docs_gen.patch"
89 )
90
91 S="${WORKDIR}/${MY_P}"
92
93 LANGS="de es it ja ru"
94
95 for x in ${LANGS}; do
96 IUSE="${IUSE} linguas_${x}"
97 done
98
99 src_prepare() {
100 qt4_src_prepare
101
102 # bug 263087
103 for plugin in ${PLUGINS};do
104 if ! use ${plugin};then
105 einfo "Disabling ${plugin} support"
106 if [[ ${plugin} == "cmake" ]];then
107 plugin="cmakeprojectmanager"
108 elif [[ ${plugin} == "qtscript" ]];then
109 plugin="qtscripteditor"
110 fi
111 sed -i "/plugin_${plugin}/s:^:#:" src/plugins/plugins.pro \
112 || die "Failed to disabled ${plugin} plugin"
113 fi
114 done
115
116 if use perforce;then
117 ewarn
118 ewarn "You have enabled perforce plugin."
119 ewarn "In order to use it, you need to manually"
120 ewarn "download perforce client from http://www.perforce.com/perforce/downloads/index.html"
121 ewarn
122 ebeep 5
123 fi
124 }
125
126 src_configure() {
127 eqmake4 ${MY_PN}.pro IDE_LIBRARY_BASENAME="$(get_libdir)"
128 }
129
130 src_install() {
131 emake INSTALL_ROOT="${D}/usr" install_subtargets || die "emake install failed"
132 # because qtcreator.bin executable make nosense
133 mv "${D}"/usr/bin/${MY_PN}.bin "${D}"/usr/bin/${MY_PN} || die "failed to rename executable"
134 if use doc;then
135 emake INSTALL_ROOT="${D}/usr" install_qch_docs || die "emake install qch_docs failed"
136 fi
137 make_desktop_entry ${MY_PN} QtCreator qtcreator_logo_48 \
138 'Qt;Development;IDE' || die "make_desktop_entry failed"
139
140 # install translations
141 insinto /usr/share/${MY_PN}/translations/
142 for x in ${LINGUAS};do
143 for lang in ${LANGS};do
144 if [[ ${x} == ${lang} ]];then
145 doins share/${MY_PN}/translations/${MY_PN}_${x}.qm
146 fi
147 done
148 done
149 }