Permalink
Browse files

synced x11-libs/qt-assistant via auto-sync

  • Loading branch information...
1 parent eedbd9d commit b54236a17a9422882f80dc0ae983608ba5ad85d2 @ahuemer ahuemer committed Mar 26, 2011
Showing with 117 additions and 0 deletions.
  1. +2 −0 x11-libs/qt-assistant/Manifest
  2. +115 −0 x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild
@@ -7,8 +7,10 @@ DIST qt-everywhere-opensource-src-4.6.2.tar.gz 160601949 RMD160 5f3fea120f2dba27
DIST qt-everywhere-opensource-src-4.6.3.tar.gz 160993454 RMD160 ceb3ca78263d0d9cdf92fef903e30c0026db6bff SHA1 1c18a564df9296c7cb0e0dedde40b9843e1b30e8 SHA256 f4e0ada8d4d516bbb8600a3ee7d9046c9c79e38cd781df9ffc46d8f16acd1768
DIST qt-everywhere-opensource-src-4.7.0.tar.gz 208320257 RMD160 3e9c0f0d9843b5c03ad4bd6193aff98531ee0746 SHA1 a5796c8f468c8f59249e5c696f913864c979f411 SHA256 e05256d560ca7d674cd4310bb791748900ad14ad662cbfe22b6d72ada43e7955
DIST qt-everywhere-opensource-src-4.7.1.tar.gz 211768512 RMD160 de6998948eb9f51a9193b9020ba80cfd52d50899 SHA1 fcf764d39d982c7f84703821582bd10c3192e341 SHA256 8cb5277c41f824cfc6dcee0e95e0bf23a9ad2c8d18d245105137481d092b124a
+DIST qt-everywhere-opensource-src-4.7.2.tar.gz 213663032 RMD160 de3d1c172c23c33681a0945c331db179c84cb7b5 SHA1 84414f82bbc9e8d356b986d5d1ebee89d06e4f2e SHA256 d4783b524b90bcd270ccf6e7a30d5fb51696c47eb5de49ebc2d553cd3eb49336
EBUILD qt-assistant-4.6.2-r2.ebuild 2914 RMD160 709081c95f2a60d54ed3ee6a6dbd9df61a044324 SHA1 b98c32debe901301aec7b6e8020f8b687c46febd SHA256 466631d5a2c94e67536db1b0ce63234e1619f070f4d73176a46e19a029db1228
EBUILD qt-assistant-4.6.2.ebuild 2661 RMD160 699a31d467d92d03191cbe0373facc6c9c6717b9 SHA1 35642ee700d18e375104e0ba52b697730e397e6f SHA256 714e700db242e432af08b60447e02e631d757d852e74b0ac0b13f0968699e167
EBUILD qt-assistant-4.6.3.ebuild 2913 RMD160 625848dbd3b0f4c2b0fe61a8237b6d4b7e645e51 SHA1 a64e8d5c9b408905ad024225d259ed1c17dbf973 SHA256 fd913d332f915244467bae08b6542db3f5ba369cc55dfb16d2c6e8dbc6b8ebe1
EBUILD qt-assistant-4.7.0.ebuild 3937 RMD160 69e846eb19204e22ccbaf7a75810283fd95bf839 SHA1 6287216a457d62ce4504dc7929afe2eb31f5c59c SHA256 c4e75937bd353a02d357c04162116fb939fa30f0c7af1fa6df9914e946ee9fa7
EBUILD qt-assistant-4.7.1.ebuild 3937 RMD160 ba10b6c4f5c7e6f0588e395268af17ff9a65110a SHA1 4daadd1a6c9975481f4281c9e2649d6f673ae238 SHA256 08e51817055878dceeeeb7db63cffc415f4bf7af098e91cf519a98c00ca9c1bf
+EBUILD qt-assistant-4.7.2.ebuild 3941 RMD160 ba0a6878bb327b4cf4f4397df924340636b8ca95 SHA1 8b2e6da3fb5b899a295e6f24f0caf2e3bf8a3df6 SHA256 ecd24c1f69441f82dd924d3b3ee81cf98ecd65e1f471ddfd0ac0136793ad8161
@@ -0,0 +1,115 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild,v 1.1 2011/03/01 19:05:55 tampakrap Exp $
+
+EAPI="3"
+inherit qt4-build multilib-native
+
+DESCRIPTION="The assistant help module for the Qt toolkit"
+SLOT="4"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="compat doc +glib qt3support trace"
+SRC_URI+=" compat? ( ftp://ftp.qt.nokia.com/qt/source/${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz )"
+
+DEPEND="~x11-libs/qt-gui-${PV}[aqua=,debug=,glib=,qt3support=,trace?,lib32?]
+ ~x11-libs/qt-sql-${PV}[aqua=,debug=,qt3support=,sqlite,lib32?]
+ ~x11-libs/qt-webkit-${PV}[aqua=,debug=,lib32?]
+ ~x11-libs/qt-declarative-${PV}[debug=,qt3support=]"
+RDEPEND="${DEPEND}"
+
+multilib-native_pkg_setup_internal() {
+ # Pixeltool isn't really assistant related, but it relies on
+ # the assistant libraries. doc/qch/
+ QT4_TARGET_DIRECTORIES="
+ tools/assistant
+ tools/pixeltool
+ tools/qdoc3"
+ QT4_EXTRACT_DIRECTORIES="
+ tools/
+ demos/
+ examples/
+ src/
+ include/
+ doc/"
+
+ use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
+ tools/qttracereplay"
+ QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
+ ${QT4_EXTRACT_DIRECTORIES}"
+ qt4-build_pkg_setup
+}
+
+multilib-native_src_unpack_internal() {
+ qt4-build_src_unpack
+ # compat version
+ # http://labs.qt.nokia.com/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/
+ if use compat; then
+ unpack "${PN}"-qassistantclient-library-compat-src-4.6.3.tar.gz
+ mv "${WORKDIR}"/"${PN}"-qassistantclient-library-compat-version-4.6.3 \
+ "${S}"/tools/assistant/compat ||
+ die "moving compat to the right place failed"
+ tar xzf "${FILESDIR}"/"${PN}"-4.7-include.tar.gz -C "${S}"/include/ ||
+ die "unpacking the include files failed"
+ fi
+}
+
+multilib-native_src_prepare_internal() {
+ qt4-build_src_prepare
+ if use compat; then
+ epatch "${FILESDIR}"/"${PN}"-4.7-fix-compat.patch
+ fi
+}
+
+multilib-native_src_configure_internal() {
+ myconf="${myconf} -no-xkb -no-fontconfig -no-xrender -no-xrandr
+ -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl
+ -no-nas-sound -no-dbus -iconv -no-cups -no-nis -no-gif -no-libpng
+ -no-libmng -no-libjpeg -no-openssl -system-zlib -no-phonon
+ -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility
+ -no-fontconfig -no-multimedia -no-svg $(qt_use qt3support)"
+ ! use glib && myconf="${myconf} -no-glib"
+ qt4-build_src_configure
+}
+
+multilib-native_src_compile_internal() {
+ # help libQtHelp find freshly built libQtCLucene (bug #289811)
+ export LD_LIBRARY_PATH="${S}/lib:${QTLIBDIR}"
+ export DYLD_LIBRARY_PATH="${S}/lib:${S}/lib/QtHelp.framework"
+
+ qt4-build_src_compile
+
+ # ugly hack to build docs
+ cd "${S}"
+ qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
+ emake qch_docs || die "emake qch_docs failed"
+ if use doc; then
+ emake docs || die "emake docs failed"
+ fi
+ qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
+}
+
+multilib-native_src_install_internal() {
+ qt4-build_src_install
+ cd "${S}"
+ emake INSTALL_ROOT="${D}" install_qchdocs \
+ || die "failed to install qch docs"
+ if use doc; then
+ emake INSTALL_ROOT="${D}" install_htmldocs \
+ || die "failed to install htmldocs"
+ fi
+ dobin "${S}"/bin/qdoc3 || die "Failed to install qdoc3"
+ # install correct assistant icon, bug 241208
+ dodir /usr/share/pixmaps/ || die "dodir failed"
+ insinto /usr/share/pixmaps/
+ doins tools/assistant/tools/assistant/images/assistant.png ||
+ die "doins failed"
+ # Note: absolute image path required here!
+ make_desktop_entry "${EPREFIX}"/usr/bin/assistant Assistant \
+ "${EPREFIX}"/usr/share/pixmaps/assistant.png 'Qt;Development;GUIDesigner' ||
+ die "make_desktop_entry failed"
+
+ if use compat; then
+ insinto /usr/share/qt4/mkspecs/features || die "insinto failed"
+ doins tools/assistant/compat/features/assistant.prf || die "doins failed"
+ fi
+}

0 comments on commit b54236a

Please sign in to comment.