diff options
author | 2011-10-01 14:36:20 +0000 | |
---|---|---|
committer | 2011-10-01 14:36:20 +0000 | |
commit | b461dd2dbcf6c09f3b2d3fe4a45d5e965c397014 (patch) | |
tree | ee654e01d844ed923a7e83b5ec1488c9343ad3de /dev-util | |
parent | Move from gnome overlay for GNOME 3 (diff) | |
download | gentoo-2-b461dd2dbcf6c09f3b2d3fe4a45d5e965c397014.tar.gz gentoo-2-b461dd2dbcf6c09f3b2d3fe4a45d5e965c397014.tar.bz2 gentoo-2-b461dd2dbcf6c09f3b2d3fe4a45d5e965c397014.zip |
Version bump
(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/qt-creator/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/qt-creator/qt-creator-2.3.1.ebuild | 167 |
2 files changed, 173 insertions, 1 deletions
diff --git a/dev-util/qt-creator/ChangeLog b/dev-util/qt-creator/ChangeLog index 619cab472cb4..a336febaa118 100644 --- a/dev-util/qt-creator/ChangeLog +++ b/dev-util/qt-creator/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/qt-creator # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.92 2011/09/29 00:11:00 ferringb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/ChangeLog,v 1.93 2011/10/01 14:36:20 hwoarang Exp $ + +*qt-creator-2.3.1 (01 Oct 2011) + + 01 Oct 2011; Markos Chandras <hwoarang@gentoo.org> +qt-creator-2.3.1.ebuild: + Version bump *qt-creator-2.3.0-r2 (29 Sep 2011) diff --git a/dev-util/qt-creator/qt-creator-2.3.1.ebuild b/dev-util/qt-creator/qt-creator-2.3.1.ebuild new file mode 100644 index 000000000000..d5653eafc847 --- /dev/null +++ b/dev-util/qt-creator/qt-creator-2.3.1.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/qt-creator/qt-creator-2.3.1.ebuild,v 1.1 2011/10/01 14:36:20 hwoarang Exp $ + +EAPI="4" +LANGS="cs de es fr hu it ja pl ru sl uk zh_CN" + +inherit qt4-r2 multilib flag-o-matic versionator +MY_PN="${PN/-/}" +MY_PV="${PV/_/-}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Lightweight IDE for C++ development centering around Qt" +HOMEPAGE="http://qt.nokia.com/products/developer-tools" +SRC_URI="http://get.qt.nokia.com/${MY_PN}/${MY_P}-src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="bazaar bineditor bookmarks +botan-bundled +cmake cvs debug doc examples fakevim git + mercurial perforce +qml qtscript rss subversion" +QTVER="4.7.4:4" +CDEPEND=">=x11-libs/qt-assistant-${QTVER}[doc?] + >=x11-libs/qt-sql-${QTVER} + >=x11-libs/qt-svg-${QTVER} + debug? ( >=x11-libs/qt-test-${QTVER} ) + !qml? ( >=x11-libs/qt-gui-${QTVER} ) + qml? ( + >=x11-libs/qt-declarative-${QTVER}[private-headers] + >=x11-libs/qt-core-${QTVER}[private-headers] + >=x11-libs/qt-gui-${QTVER}[private-headers] + >=x11-libs/qt-script-${QTVER}[private-headers] + ) + qtscript? ( >=x11-libs/qt-script-${QTVER} ) + !botan-bundled? ( =dev-libs/botan-1.8* )" + +DEPEND="${CDEPEND} + !botan-bundled? ( dev-util/pkgconfig )" + +RDEPEND="${CDEPEND} + bazaar? ( dev-vcs/bzr ) + cmake? ( dev-util/cmake ) + cvs? ( dev-vcs/cvs ) + sys-devel/gdb + examples? ( >=x11-libs/qt-demo-${QTVER} ) + git? ( dev-vcs/git ) + mercurial? ( dev-vcs/mercurial ) + subversion? ( dev-vcs/subversion )" + +PLUGINS="bookmarks bineditor cmake cvs fakevim git mercurial +perforce qml qtscript subversion" + +S="${WORKDIR}"/"${MY_P}"-src + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0_rc1-qml-plugin.patch +) + +src_prepare() { + qt4-r2_src_prepare + + # fix library path for styleplugin + sed -i -e "/target.path/s:lib:$(get_libdir):" \ + "${S}"/src/libs/qtcomponents/styleitem/styleitem.pro \ + || die "Failed to fix multilib dir for styleplugin" + + # bug 263087 + for plugin in ${PLUGINS}; do + if ! use ${plugin}; then + einfo "Disabling ${plugin} support" + if [[ ${plugin} == "cmake" ]]; then + plugin="cmakeprojectmanager" + elif [[ ${plugin} == "qtscript" ]]; then + plugin="qtscripteditor" + elif [[ ${plugin} == "qml" ]]; then + for x in qmlprojectmanager qmljsinspector qmljseditor qmljstools qmldesigner; do + einfo "Disabling ${x} support" + sed -i "/plugin_${x}/s:^:#:" src/plugins/plugins.pro \ + || die "Failed to disable ${x} plugin" + done + fi + # Now disable the plugins + sed -i "/plugin_${plugin}/s:^:#:" src/plugins/plugins.pro + fi + done + + if use perforce; then + ewarn + ewarn "You have enabled perforce plugin." + ewarn "In order to use it, you need to manually" + ewarn "download the perforce client from http://www.perforce.com/perforce/downloads/index.html" + ewarn + fi + # disable rss news on startup ( bug #302978 ) + if ! use rss; then + einfo "Disabling RSS welcome news" + sed -i "/m_rssFetcher->fetch/s:^:\/\/:" \ + src/plugins/welcome/communitywelcomepagewidget.cpp || die + fi + + # add rpath to make qtcreator actual find its *own* plugins + sed -i "/^LIBS/s:+=:& -Wl,-rpath,/usr/$(get_libdir)/${MY_PN} :" qtcreator.pri || die + + if ! use botan-bundled; then + # identify system botan and pkg-config file + local botan_version=$(best_version dev-libs/botan | cut -d '-' -f3 | \ + cut -d '.' -f1,2) + local lib_botan=$(pkg-config --libs botan-${botan_version}) + einfo "Major version of system's botan library to be used: ${botan_version}" + + # drop bundled libBotan. Bug #383033 + rm -rf "${S}"/src/libs/3rdparty/botan || die + # remove references to bundled botan + sed -i -e "s:botan::" "${S}"/src/libs/3rdparty/3rdparty.pro || die + for x in testrunner parsertests modeldemo; do + sed -i -e "/botan.pri/d" "${S}"/tests/valgrind/memcheck/${x}.pro || die + done + sed -i -e "/botan.pri/d" "${S}"/src/libs/utils/utils_dependencies.pri || die + sed -i -e "/botan.pri/d" "${S}"/tests/manual/preprocessor/preprocessor.pro || die + # link to system botan + sed -i -e "/LIBS/s:$: ${lib_botan}:" "${S}"/${MY_PN}.pri || die + sed -i -e "s:-lBotan:${lib_botan}:" "${S}"/tests/manual/appwizards/appwizards.pro || die + # append botan refs to compiler flags + append-flags $(pkg-config --cflags --libs botan-${botan_version}) + fi +} + +src_configure() { + #the path must NOT be empty + local qtheaders="False" + use qml && qtheaders="/usr/include/qt4/" + eqmake4 \ + ${MY_PN}.pro \ + IDE_LIBRARY_BASENAME="$(get_libdir)" \ + QT_PRIVATE_HEADERS=${qtheaders} +} + +src_install() { + #install wrapper + dobin bin/${MY_PN} bin/qtpromaker + if use qml; then + # qmlpuppet component. Bug #367383 + dobin bin/qmlpuppet + fi + emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install_subtargets + if use doc;then + emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install_inst_qch_docs + fi + + # Install missing icon + doicon "${S}"/share/qtcreator/templates/wizards/qtcreatorplugin/${MY_PN}_logo_24.png \ + || die "failed to install icon" + make_desktop_entry ${MY_PN} "Qt Creator" ${MY_PN}_logo_24 \ + 'Qt;Development;IDE' || die + + # install additional translations + insinto /usr/share/${MY_PN}/translations/ + for x in ${LINGUAS}; do + for lang in ${LANGS}; do + if [[ ${x} == ${lang} ]]; then + cd "${S}"/share/${MY_PN}/translations + lrelease ${MY_PN}_${x}.ts -qm ${MY_PN}_${x}.qm || die + doins ${MY_PN}_${x}.qm + fi + done + done +} |