diff options
author | Paul Labedan <p.labedan@mondialtelecom.be> | 2012-03-15 15:59:04 +0100 |
---|---|---|
committer | Paul Labedan <p.labedan@mondialtelecom.be> | 2012-03-15 15:59:04 +0100 |
commit | bb474dd96ce228b655caa81c87e787119d6574cf (patch) | |
tree | 4992a4413b28b74a633e78b4eb9d25d6cc7364d2 | |
download | plab-bb474dd96ce228b655caa81c87e787119d6574cf.tar.gz plab-bb474dd96ce228b655caa81c87e787119d6574cf.tar.bz2 plab-bb474dd96ce228b655caa81c87e787119d6574cf.zip |
add ebuild for qt-creator-2.5.0_beta
-rw-r--r-- | dev-util/qt-creator/Manifest | 2 | ||||
-rw-r--r-- | dev-util/qt-creator/qt-creator-2.5.0_beta.ebuild | 132 | ||||
-rw-r--r-- | overlays.xml | 11 |
3 files changed, 145 insertions, 0 deletions
diff --git a/dev-util/qt-creator/Manifest b/dev-util/qt-creator/Manifest new file mode 100644 index 0000000..bbe66df --- /dev/null +++ b/dev-util/qt-creator/Manifest @@ -0,0 +1,2 @@ +DIST qt-creator-2.5.0-beta-src.tar.gz 24375157 RMD160 0de61e42e3b08083fe06ea1e5d369ec32432c147 SHA1 bf6767f9048c060230f8eb5779039de4ddc5c4e2 SHA256 d1b80cc67356d4d5ebfcb43f26d4ef98e4aed102fad07f1cbe89c7f565c72d75 +EBUILD qt-creator-2.5.0_beta.ebuild 3961 RMD160 54e892cc0aa7f9d5a96546c227756c865658afb9 SHA1 d3302ce156f43358a91c32402ea2b39b608db590 SHA256 3f536f504d8a220733388bcef16f17e92beb87f075d6b45905b9691f443b2197 diff --git a/dev-util/qt-creator/qt-creator-2.5.0_beta.ebuild b/dev-util/qt-creator/qt-creator-2.5.0_beta.ebuild new file mode 100644 index 0000000..8593779 --- /dev/null +++ b/dev-util/qt-creator/qt-creator-2.5.0_beta.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +LANGS="cs de es fr hu it ja pl ru sl uk zh_CN" + +inherit multilib eutils flag-o-matic qt4-r2 + +MY_P=${PN}-${PV/_/-}-src + +DESCRIPTION="Lightweight IDE for C++ development centering around Qt" +HOMEPAGE="http://qt.nokia.com/products/developer-tools" +SRC_URI="http://get.qt.nokia.com/qtcreator/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +QTC_PLUGINS=(bazaar cmake:cmakeprojectmanager cvs fakevim + git madde mercurial perforce subversion valgrind) +IUSE="+botan-bundled debug doc examples ${QTC_PLUGINS[@]%:*}" + +QTVER="4.7.4:4" +CDEPEND=" + >=x11-libs/qt-core-${QTVER}[private-headers(+)] + >=x11-libs/qt-declarative-${QTVER}[private-headers(+)] + >=x11-libs/qt-gui-${QTVER}[private-headers(+)] + >=x11-libs/qt-script-${QTVER}[private-headers(+)] + >=x11-libs/qt-sql-${QTVER} + >=x11-libs/qt-svg-${QTVER} + debug? ( >=x11-libs/qt-test-${QTVER} ) + >=x11-libs/qt-assistant-${QTVER}[doc?] + !botan-bundled? ( =dev-libs/botan-1.8* ) +" +DEPEND="${CDEPEND} + !botan-bundled? ( dev-util/pkgconfig ) +" +RDEPEND="${CDEPEND} + sys-devel/gdb[python] + examples? ( >=x11-libs/qt-demo-${QTVER} ) +" +PDEPEND=" + bazaar? ( dev-vcs/bzr ) + cmake? ( dev-util/cmake ) + cvs? ( dev-vcs/cvs ) + git? ( dev-vcs/git ) + mercurial? ( dev-vcs/mercurial ) + subversion? ( dev-vcs/subversion ) + valgrind? ( dev-util/valgrind ) +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + qt4-r2_src_prepare + + # disable unwanted plugins + for plugin in "${QTC_PLUGINS[@]#[+-]}"; do + if ! use ${plugin%:*}; then + einfo "Disabling ${plugin%:*} plugin" + sed -i -e "/^[[:space:]]\+plugin_${plugin#*:}/d" src/plugins/plugins.pro \ + || die "failed to disable ${plugin} plugin" + fi + done + + if use perforce; then + ewarn + ewarn "You have enabled the perforce plugin." + ewarn "In order to use it, you need to manually download the perforce client from" + ewarn " http://www.perforce.com/perforce/downloads/index.html" + ewarn + fi + + # fix translations + sed -i -e "/^LANGUAGES/s:=.*:= ${LANGS}:" \ + share/qtcreator/translations/translations.pro || 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}"/qtcreator.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() { + eqmake4 qtcreator.pro \ + IDE_LIBRARY_BASENAME="$(get_libdir)" \ + IDE_PACKAGE_MODE=true +} + +src_compile() { + emake + use doc && emake docs +} + +src_install() { + emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install + + if use doc; then + emake INSTALL_ROOT="${D%/}${EPREFIX}/usr" install_docs + fi + + # Install icon & desktop file + doicon src/plugins/coreplugin/images/logo/128/qtcreator.png || die + make_desktop_entry qtcreator 'Qt Creator' qtcreator 'Qt;Development;IDE' || die + + # Remove unneeded translations + local lang + for lang in ${LANGS}; do + if ! has ${lang} ${LINGUAS}; then + rm "${D}"/usr/share/qtcreator/translations/qtcreator_${lang}.qm \ + || eqawarn "failed to remove ${lang} translation" + fi + done +} diff --git a/overlays.xml b/overlays.xml new file mode 100644 index 0000000..5aeea3c --- /dev/null +++ b/overlays.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" ?> +<repositories version="1.0"> + <repo priority="50" quality="experimental" status="unofficial"> + <name>pol-overlay</name> + <description>PoL's Overlay</description> + <owner> + <email>plabedan@gmail.com</email> + </owner> + <source type="git">git@vps.labedan.fr:pol-overlay.git</source> + </repo> +</repositories> |