From 2e0c54a6d2fd62c47c5813a0dbac93eb9fc44a67 Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Fri, 18 Apr 2008 08:34:40 +0200 Subject: [PATCH] Add 4.4.0_rc1 --- eclass/qt4-build.eclass | 516 +++++++++++++++++++++ eclass/qt4.eclass | 226 +++++++++ x11-libs/qt-assistant/Manifest | 4 + x11-libs/qt-assistant/files/Assistant.desktop | 20 + .../qt-assistant/qt-assistant-4.4.0_rc1.ebuild | 51 ++ x11-libs/qt-core/Manifest | 3 + x11-libs/qt-core/qt-core-4.4.0_rc1.ebuild | 171 +++++++ x11-libs/qt-dbus/Manifest | 3 + x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild | 47 ++ x11-libs/qt-gui/Manifest | 6 + x11-libs/qt-gui/files/Designer.desktop | 20 + x11-libs/qt-gui/files/Linguist.desktop | 20 + x11-libs/qt-gui/files/xinerama.patch | 15 + x11-libs/qt-gui/qt-gui-4.4.0_rc1.ebuild | 117 +++++ x11-libs/qt-opengl/Manifest | 3 + x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild | 38 ++ x11-libs/qt-phonon/Manifest | 3 + x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild | 36 ++ x11-libs/qt-qt3support/Manifest | 3 + .../qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild | 47 ++ x11-libs/qt-script/Manifest | 3 + x11-libs/qt-script/qt-script-4.4.0_rc1.ebuild | 37 ++ x11-libs/qt-sql/Manifest | 3 + x11-libs/qt-sql/qt-sql-4.4.0_rc1.ebuild | 60 +++ x11-libs/qt-svg/Manifest | 3 + x11-libs/qt-svg/qt-svg-4.4.0_rc1.ebuild | 35 ++ x11-libs/qt-test/Manifest | 3 + x11-libs/qt-test/qt-test-4.4.0_rc1.ebuild | 30 ++ x11-libs/qt-webkit/Manifest | 3 + x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild | 28 ++ x11-libs/qt-xmlpatterns/Manifest | 3 + .../qt-xmlpatterns/qt-xmlpatterns-4.4.0_rc1.ebuild | 28 ++ x11-libs/qt/Manifest | 9 +- x11-libs/qt/qt-3.3.8-r4.ebuild | 2 +- x11-libs/qt/qt-4.3.2-r1.ebuild | 8 +- x11-libs/qt/qt-4.3.3.ebuild | 6 + x11-libs/qt/qt-4.3.4-r1.ebuild | 6 + x11-libs/qt/qt-4.4.0_rc1.ebuild | 27 ++ 38 files changed, 1637 insertions(+), 6 deletions(-) create mode 100644 eclass/qt4-build.eclass create mode 100644 eclass/qt4.eclass create mode 100644 x11-libs/qt-assistant/Manifest create mode 100644 x11-libs/qt-assistant/files/Assistant.desktop create mode 100644 x11-libs/qt-assistant/qt-assistant-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-core/Manifest create mode 100644 x11-libs/qt-core/qt-core-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-dbus/Manifest create mode 100644 x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-gui/Manifest create mode 100644 x11-libs/qt-gui/files/Designer.desktop create mode 100644 x11-libs/qt-gui/files/Linguist.desktop create mode 100644 x11-libs/qt-gui/files/xinerama.patch create mode 100644 x11-libs/qt-gui/qt-gui-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-opengl/Manifest create mode 100644 x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-phonon/Manifest create mode 100644 x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-qt3support/Manifest create mode 100644 x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-script/Manifest create mode 100644 x11-libs/qt-script/qt-script-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-sql/Manifest create mode 100644 x11-libs/qt-sql/qt-sql-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-svg/Manifest create mode 100644 x11-libs/qt-svg/qt-svg-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-test/Manifest create mode 100644 x11-libs/qt-test/qt-test-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-webkit/Manifest create mode 100644 x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt-xmlpatterns/Manifest create mode 100644 x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.4.0_rc1.ebuild create mode 100644 x11-libs/qt/qt-4.4.0_rc1.ebuild diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass new file mode 100644 index 0000000..deebd78 --- /dev/null +++ b/eclass/qt4-build.eclass @@ -0,0 +1,516 @@ +# Copyright 2007-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# @ECLASS: qt4-build.eclass +# @MAINTAINER: +# Caleb Tennis +# @BLURB: Eclass for Qt4 split ebuilds. +# @DESCRIPTION: +# This eclass contains various functions that are used when building Qt4 + +KMNAME="qt-copy" +KMMODULE="patches" +ESVN_PROJECT="KDE/${KMNAME}" +ESVN_MIRROR="svn://anonsvn.kde.org/home/kde" +ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" +ESVN_REPO_URI="${ESVN_REPO_URI}/${KMMODULE}" + +RESTRICT="mirror" + +inherit eutils multilib toolchain-funcs flag-o-matic subversion + +IUSE="${IUSE} debug qt-copy exceptions" + +case "${PV}" in + 4.4.0_rc*) + SRCTYPE="${SRCTYPE:-opensource-src}" + MY_PV="${PV/_rc/-rc}" + SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${MY_PV}.tar.bz2" + ;; + *) + SRCTYPE="${SRCTYPE:-opensource-src}" + MY_PV=${PV/_pre/-snapshot-} + SRC_URI="ftp://ftp.trolltech.com/qt/snapshots/qt-x11-${SRCTYPE}-${MY_PV}.tar.gz" + ;; +esac + +MY_P=qt-x11-${SRCTYPE}-${MY_PV} +S=${WORKDIR}/${MY_P} + +case "${PV}" in + 4.4.0_rc*) + SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" + ;; + *) + ;; +esac + +qt4-build_pkg_setup() { + # Check USE requirements + qt4-build_check_use + + # Set up installation directories + QTBASEDIR=/usr/$(get_libdir)/qt4 + QTPREFIXDIR=/usr + QTBINDIR=/usr/bin + QTLIBDIR=/usr/$(get_libdir)/qt4 + QTPCDIR=/usr/$(get_libdir)/pkgconfig + QTDATADIR=/usr/share/qt4 + QTDOCDIR=/usr/share/doc/qt-${PV} + QTHEADERDIR=/usr/include/qt4 + QTPLUGINDIR=${QTLIBDIR}/plugins + QTSYSCONFDIR=/etc/qt4 + QTTRANSDIR=${QTDATADIR}/translations + QTEXAMPLESDIR=${QTDATADIR}/examples + QTDEMOSDIR=${QTDATADIR}/demos + + PLATFORM=$(qt_mkspecs_dir) + + PATH="${S}/bin:${PATH}" + LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" +} + +qt4_unpack() { + local target targets + + case "${PV}" in + 4.4.0_rc*) + if use !qt-copy; then + for target in configure LICENSE.{GPL2,GPL3,QPL} projects.pro \ + src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ + ${QT4_EXTRACT_DIRECTORIES} ${QT4_TARGET_DIRECTORIES}; do + targets="${targets} ${MY_P}/${target}" + done + echo tar xjpf "${DISTDIR}/${MY_P}.tar.bz2" ${targets} + tar xjpf "${DISTDIR}/${MY_P}.tar.bz2" ${targets} + else + echo tar xjpf "${DISTDIR}/${MY_P}.tar.bz2" + tar xjpf "${DISTDIR}/${MY_P}.tar.bz2" + fi + echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 + tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 + ;; + *) + for target in configure LICENSE.SNAPSHOT.OPENSOURCE.{GPL2,GPL3} projects.pro \ + src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ + src/corelib/global \ + ${QT4_EXTRACT_DIRECTORIES} ${QT4_TARGET_DIRECTORIES}; do + targets="${targets} ${MY_P}/${target}" + done + #echo tar xzpf "${DISTDIR}/${MY_P}.tar.gz" ${targets} + #tar xzpf "${DISTDIR}/${MY_P}.tar.gz" ${targets} + echo tar xzpf "${DISTDIR}/${MY_P}.tar.gz" + tar xzpf "${DISTDIR}/${MY_P}.tar.gz" + ;; + esac +} + +qt4_qt-copy() { + S_="${S}" + S="${S}/patches" + subversion_src_unpack + for x in $(ls "${S}"); do + mv -vi ${x} $(echo ${x}|sed "s/[0-9]*/&_all_/;s/_all_-/_all_/") + done + S="${S_}" + cd "${S}" + + EPATCH_SOURCE="${S}/patches" + EPATCH_EXCLUDE="0178_all_transparency-window-types.diff + 0217_all_qurl-isempty-regression.diff + 0218_all_qassert-macro-fix.diff + 0172_all_prefer-xrandr-over-xinerama.diff + 0184_all_dlopen-defaults-to-local.diff + 0215_all_compile-with-Xcursor-linkage.diff" + case "${PV}" in + 4.4.0_rc*) + ;; + *) + EPATCH_EXCLUDE="${EPATCH_EXCLUDE} 0221_all__qdbus_to_dbus_fix.diff" + ;; + esac + EPATCH_SUFFIX="diff" epatch +} + +qt4-build_src_unpack() { + qt4_unpack + if [[ ${PN} != qt-core ]]; then + cd "${S}" + skip_qmake_build_patch + skip_project_generation_patch + symlink_binaries_to_buildtree + fi + + sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ + -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ + -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ + -e "s:X11R6/::" \ + -i "${S}"/mkspecs/$(qt_mkspecs_dir)/qmake.conf || die "sed ${S}/mkspecs/$(qt_mkspecs_dir)/qmake.conf failed" + + sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ + -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ + -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ + -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" + + # Apply QT Copy patches: + use qt-copy && qt4_qt-copy +} + +qt4-build_src_compile() { + # Don't let the user go too overboard with flags. If you really want to, uncomment + # out the line below and give 'er a whirl. + strip-flags + replace-flags -O3 -O2 + + if [[ $(gcc-fullversion) == "3.4.6" && gcc-specs-ssp ]] ; then + ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" + append-flags -fno-stack-protector + fi + + # Bug 178652 + if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then + ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" + append-flags -fno-gcse + fi + + myconf="$(standard_configure_options) ${myconf}" + + echo ./configure ${myconf} + ./configure ${myconf} || die "./configure failed" + + build_target_directories +} + +qt4-build_src_install() { + install_directories "${QT4_TARGET_DIRECTORIES}" + install_qconfigs + fix_library_files +} + +standard_configure_options() { + local myconf="" + + [[ $(get_libdir) != "lib" ]] && myconf="${myconf} -L/usr/$(get_libdir)" + + # Disable visibility explicitly if gcc version isn't 4 + if [[ "$(gcc-major-version)" -lt "4" ]]; then + myconf="${myconf} -no-reduce-exports" + fi + + if use debug; then + myconf="${myconf} -debug -no-separate-debug-info" + else + myconf="${myconf} -release -no-separate-debug-info" + fi + + # ARCH is set on Gentoo. QT now falls back to generic on an unsupported + # ${ARCH}. Therefore we convert it to supported values. + case "${ARCH}" in + amd64) myconf="${myconf} -arch x86_64" ;; + ppc|ppc64) myconf="${myconf} -arch powerpc" ;; + x86) myconf="${myconf} -arch i386" ;; + alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch ${ARCH}" ;; + hppa|sh) myconf="${myconf} -arch generic" ;; + *) die "${ARCH} is unsupported by this eclass. Please file a bug." ;; + esac + + if [[ ${PN} != qt-xmlpatterns ]] && use !exceptions; then + myconf="${myconf} -no-exceptions" + fi + + myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath + -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} + -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} + -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} + -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} + -demosdir ${QTDEMOSDIR} -silent -fast -reduce-relocations + -nomake examples -nomake demos" + + echo "${myconf}" +} + +build_target_directories() { + build_directories "${QT4_TARGET_DIRECTORIES}" +} + +build_directories() { + local dirs="$@" + for x in ${dirs}; do + cd "${S}"/${x} + "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed" + emake || die "emake failed" + done +} + +install_directories() { + local dirs="$@" + for x in ${dirs}; do + pushd "${S}"/${x} >/dev/null || die "Can't pushd ${S}/${x}" + emake INSTALL_ROOT="${D}" install || die "emake install failed" + popd >/dev/null || die "Can't popd from ${S}/${x}" + done +} + +# @ECLASS-VARIABLE: QCONFIG_ADD +# @DESCRIPTION: +# List options that need to be added to QT_CONFIG in qconfig.pri +QCONFIG_ADD="${QCONFIG_ADD:-}" + +# @ECLASS-VARIABLE: QCONFIG_REMOVE +# @DESCRIPTION: +# List options that need to be removed from QT_CONFIG in qconfig.pri +QCONFIG_REMOVE="${QCONFIG_REMOVE:-}" + +# @ECLASS-VARIABLE: QCONFIG_DEFINE +# @DESCRIPTION: +# List variables that should be defined at the top of QtCore/qconfig.h +QCONFIG_DEFINE="${QCONFIG_DEFINE:-}" + +install_qconfigs() { + local x + if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} ]]; then + for x in QCONFIG_ADD QCONFIG_REMOVE; do + [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri + done + insinto ${QTDATADIR}/mkspecs/gentoo + doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed" + fi + + if [[ -n ${QCONFIG_DEFINE} ]]; then + for x in ${QCONFIG_DEFINE}; do + echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h + done + insinto ${QTHEADERDIR}/Gentoo + doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed" + fi +} + +# Stubs for functions used by the Qt 4.4.0_technical_preview_1. +qconfig_add_option() { : ; } +qconfig_remove_option() { : ; } + +generate_qconfigs() { + if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} || -n ${QCONFIG_DEFINE} || ${CATEGORY}/${PN} == x11-libs/qt-core ]]; then + local x qconfig_add qconfig_remove qconfig_new + for x in "${ROOT}${QTDATADIR}"/mkspecs/gentoo/*-qconfig.pri; do + [[ -f ${x} ]] || continue + qconfig_add="${qconfig_add} $(sed -n 's/^QCONFIG_ADD=//p' "${x}")" + qconfig_remove="${qconfig_remove} $(sed -n 's/^QCONFIG_REMOVE=//p' "${x}")" + done + + # these error checks do not use die because dying in pkg_post{inst,rm} + # just makes things worse. + if [[ -e "${ROOT}${QTDATADIR}"/mkspecs/gentoo/qconfig.pri ]]; then + # start with the qconfig.pri that qt-core installed + if ! cp "${ROOT}${QTDATADIR}"/mkspecs/gentoo/qconfig.pri \ + "${ROOT}${QTDATADIR}"/mkspecs/qconfig.pri; then + eerror "cp qconfig failed." + return 1 + fi + + # generate list of QT_CONFIG entries from the existing list + # including qconfig_add and excluding qconfig_remove + for x in $(sed -n 's/^QT_CONFIG +=//p' \ + "${ROOT}${QTDATADIR}"/mkspecs/qconfig.pri) ${qconfig_add}; do + hasq ${x} ${qconfig_remove} || qconfig_new="${qconfig_new} ${x}" + done + + # replace the existing QT_CONFIG list with qconfig_new + if ! sed -i -e "s/QT_CONFIG +=.*/QT_CONFIG += ${qconfig_new}/" \ + "${ROOT}${QTDATADIR}"/mkspecs/qconfig.pri; then + eerror "Sed for QT_CONFIG failed" + return 1 + fi + + # create Gentoo/qconfig.h + if [[ ! -e ${ROOT}${QTHEADERDIR}/Gentoo ]]; then + if ! mkdir -p "${ROOT}${QTHEADERDIR}"/Gentoo; then + eerror "mkdir ${QTHEADERDIR}/Gentoo failed" + return 1 + fi + fi + : > "${ROOT}${QTHEADERDIR}"/Gentoo/gentoo-qconfig.h + for x in "${ROOT}${QTHEADERDIR}"/Gentoo/gentoo-*-qconfig.h; do + [[ -f ${x} ]] || continue + cat "${x}" >> "${ROOT}${QTHEADERDIR}"/Gentoo/gentoo-qconfig.h + done + else + rm -f "${ROOT}${QTDATADIR}"/mkspecs/qconfig.pri + rm -f "${ROOT}${QTHEADERDIR}"/Gentoo/gentoo-qconfig.h + rmdir "${ROOT}${QTDATADIR}"/mkspecs \ + "${ROOT}${QTDATADIR}" \ + "${ROOT}${QTHEADERDIR}"/Gentoo \ + "${ROOT}${QTHEADERDIR}" 2>/dev/null + fi + fi +} + +qt4-build_pkg_postrm() { + generate_qconfigs +} + +qt4-build_pkg_postinst() { + generate_qconfigs + if use qt-copy || use exceptions; then + ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy or exceptions!" + fi +} + +skip_qmake_build_patch() { + # Don't need to build qmake, as it's already installed from qt-core + sed -i -e "s:if true:if false:g" "${S}"/configure || die "Sed failed" +} + +skip_project_generation_patch() { + # Exit the script early by throwing in an exit before all of the .pro files are scanned + sed -e "s:echo \"Finding:exit 0\n\necho \"Finding:g" \ + -i "${S}"/configure || die "Sed failed" +} + +symlink_binaries_to_buildtree() { + for bin in qmake moc uic rcc; do + ln -s ${QTBINDIR}/${bin} "${S}"/bin/ || die "Symlinking ${bin} to ${S}/bin failed." + done +} + +fix_library_files() { + for libfile in "${D}"/${QTLIBDIR}/{*.la,*.prl,pkgconfig/*.pc}; do + if [[ -e ${libfile} ]]; then + sed -i -e "s:${S}/lib:${QTLIBDIR}:g" ${libfile} || die "Sed on ${libfile} failed." + fi + done + + # pkgconfig files refer to WORKDIR/bin as the moc and uic locations. Fix: + for libfile in "${D}"/${QTLIBDIR}/pkgconfig/*.pc; do + if [[ -e ${libfile} ]]; then + sed -i -e "s:${S}/bin:${QTBINDIR}:g" ${libfile} || die "Sed failed" + + # Move .pc files into the pkgconfig directory + + dodir ${QTPCDIR} + mv ${libfile} "${D}"/${QTPCDIR}/ \ + || die "Moving ${libfile} to ${D}/${QTPCDIR}/ failed." + fi + done + + # Don't install an empty directory + rmdir "${D}"/${QTLIBDIR}/pkgconfig +} + +qt_use() { + local flag="${1}" + local feature="${1}" + local enableval= + + [[ -n ${2} ]] && feature=${2} + [[ -n ${3} ]] && enableval="-${3}" + + if use ${flag}; then + echo "${enableval}-${feature}" + else + echo "-no-${feature}" + fi +} + +# @ECLASS-VARIABLE: QT4_BUILT_WITH_USE_CHECK +# @DESCRIPTION: +# The contents of $QT4_BUILT_WITH_USE_CHECK gets fed to built_with_use +# (eutils.eclass), line per line. +# +# Example: +# @CODE +# pkg_setup() { +# use qt3support && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} +# ~x11-libs/qt-gui-${PV} qt3support" +# qt4-build_check_use +# } +# @CODE + +# Run built_with_use on each flag and print appropriate error messages if any +# flags are missing +_qt_built_with_use() { + local missing opt pkg flag flags + + if [[ ${1} = "--missing" ]]; then + missing="${1} ${2}" && shift 2 + fi + if [[ ${1:0:1} = "-" ]]; then + opt=${1} && shift + fi + + pkg=${1} && shift + + for flag in "${@}"; do + flags="${flags} ${flag}" + if ! built_with_use ${missing} ${opt} ${pkg} ${flag}; then + flags="${flags}*" + else + [[ ${opt} = "-o" ]] && return 0 + fi + done + if [[ "${flags# }" = "${@}" ]]; then + return 0 + fi + if [[ ${opt} = "-o" ]]; then + eerror "This package requires '${pkg}' to be built with any of the following USE flags: '$*'." + else + eerror "This package requires '${pkg}' to be built with the following USE flags: '${flags# }'." + fi + return 1 +} + +# @FUNCTION: qt4-build_check_use +# @DESCRIPTION: +# Check if the listed packages in $QT4_BUILT_WITH_USE_CHECK are built with the +# USE flags listed. +# +# If any of the required USE flags are missing, an eerror will be printed for +# each package with missing USE flags. +qt4-build_check_use() { + local line missing + while read line; do + [[ -z ${line} ]] && continue + if ! _qt_built_with_use ${line}; then + missing=true + fi + done <<< "${QT4_BUILT_WITH_USE_CHECK}" + if [[ -n ${missing} ]]; then + echo + eerror "Flags marked with an * are missing." + die "Missing USE flags found" + fi +} + +qt_mkspecs_dir() { + # Allows us to define which mkspecs dir we want to use. + local spec + + case ${CHOST} in + *-freebsd*|*-dragonfly*) + spec="freebsd" ;; + *-openbsd*) + spec="openbsd" ;; + *-netbsd*) + spec="netbsd" ;; + *-darwin*) + spec="darwin" ;; + *-linux-*|*-linux) + spec="linux" ;; + *) + die "Unknown CHOST, no platform choosen." + esac + + CXX=$(tc-getCXX) + if [[ ${CXX/g++/} != ${CXX} ]]; then + spec="${spec}-g++" + elif [[ ${CXX/icpc/} != ${CXX} ]]; then + spec="${spec}-icc" + else + die "Unknown compiler ${CXX}." + fi + + echo "${spec}" +} + +EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postrm pkg_postinst diff --git a/eclass/qt4.eclass b/eclass/qt4.eclass new file mode 100644 index 0000000..bd418c5 --- /dev/null +++ b/eclass/qt4.eclass @@ -0,0 +1,226 @@ +# Copyright 2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.38 2008/03/06 01:23:13 ingmar Exp $ + +# @ECLASS: qt4.eclass +# @MAINTAINER: +# Caleb Tennis +# @BLURB: Eclass for Qt4 packages +# @DESCRIPTION: +# This eclass contains various functions that may be useful +# when dealing with packages using Qt4 libraries. + +# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass. +# - Caleb Tennis + +inherit eutils multilib toolchain-funcs versionator + +QTPKG="x11-libs/qt-" +QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0" +QT4VERSIONS="4.4.1_pre20080411 4.4.0_rc1 4.4.0_beta1 4.3.4 4.3.3 4.3.2-r1 4.3.2 4.3.1-r1 4.3.1 4.3.0-r2 4.3.0-r1 4.3.0 4.3.0_rc1 4.3.0_beta1 4.2.3-r1 4.2.3 4.2.2 4.2.1 4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" + +# @FUNCTION: qt4_min_version +# @USAGE: [minimum version] +# @DESCRIPTION: +# This function should be called in package DEPENDs whenever it depends on qt4. +# Simple example - in your depend, do something like this: +# DEPEND="$(qt4_min_version 4.2)" +# if the package can be build with qt-4.2 or higher. +# +# For builds that use an EAPI with support for SLOT dependencies, this will +# return a SLOT dependency, rather than a list of versions. +qt4_min_version() { + case ${EAPI:-0} in + # EAPIs without SLOT dependencies + 0) echo "|| (" + qt4_min_version_list "$@" + echo ")" + ;; + # EAPIS with SLOT dependencies. + *) echo ">=${QTPKG}${1}:4" + ;; + esac +} + +qt4_min_version_list() { + local MINVER="$1" + local VERSIONS="" + + case "${MINVER}" in + 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";; + 4.1|4.1.0|4.2|4.2.0|4.3|4.3.0|4.4|4.4.0) + for x in ${QT4MAJORVERSIONS}; do + if $(version_is_at_least "${MINVER}" "${x}"); then + VERSIONS="${VERSIONS} =${QTPKG}${x}*" + fi + done + ;; + 4*) + for x in ${QT4VERSIONS}; do + if $(version_is_at_least "${MINVER}" "${x}"); then + VERSIONS="${VERSIONS} =${QTPKG}${x}" + fi + done + ;; + *) VERSIONS="=${QTPKG}4*";; + esac + + echo "${VERSIONS}" +} + +# @FUNCTION: qt4_pkg_setup +# @MAINTAINER: +# Caleb Tennis +# Przemyslaw Maciag +# @DESCRIPTION: +# Default pkg_setup function for packages that depends on qt4. If you have to +# create ebuilds own pkg_setup in your ebuild, call qt4_pkg_setup in it. +# This function uses two global vars from ebuild: +# - QT4_BUILT_WITH_USE_CHECK - contains use flags that need to be turned on for +# =x11-libs/qt-4* +# - QT4_OPTIONAL_BUILT_WITH_USE_CHECK - qt4 flags that provides some +# functionality, but can alternatively be disabled in ${CATEGORY}/${PN} +# (so qt4 don't have to be recompiled) +# +# flags to watch for for Qt4.4: +# zlib png | opengl dbus qt3support | sqlite3 ssl +qt4_pkg_setup() { + + QT4_BEST_VERSION="$(best_version =x11-libs/qt-4*)" + QT4_MINOR_VERSION="$(get_version_component_range 2 ${QT4_BEST_VERSION/*qt-/})" + + local requiredflags="" + for x in ${QT4_BUILT_WITH_USE_CHECK}; do + if [[ "${QT4_MINOR_VERSION}" -ge 4 ]]; then + # The use flags are different in 4.4 and above, and it's a split package, so this is used to catch + # the various use flag combos specified in the ebuilds to make sure we don't error out. + + if [[ ${x} == zlib || ${x} == png ]]; then + # Qt 4.4+ is built with zlib and png by default, so the use flags aren't needed + continue; + elif [[ ${x} == opengl || ${x} == dbus || ${x} == qt3support ]]; then + # Make sure the qt-${x} package has been already installed + + if ! has_version x11-libs/qt-${x}; then + eerror "You must first install the x11-libs/qt-${x} package." + die "Install x11-libs/qt-${x}" + fi + elif [[ ${x} == ssl ]]; then + if ! has_version x11-libs/qt-core || ! built_with_use x11-libs/qt-core ssl; then + eerror "You must first install the x11-libs/qt-core package with the ssl flag enabled." + die "Install x11-libs/qt-core with USE=\"ssl\"" + fi + elif [[ ${x} == sqlite3 ]]; then + if ! has_version x11-libs/qt-sql || ! built_with_use x11-libs/qt-sql sqlite; then + eerror "You must first install the x11-libs/qt-sql package with the sqlite flag enabled." + die "Install x11-libs/qt-sql with USE=\"sqlite\"" + fi + fi + elif ! built_with_use =x11-libs/qt-4* ${x}; then + requiredflags="${requiredflags} ${x}" + fi + done + + local optionalflags="" + for x in ${QT4_OPTIONAL_BUILT_WITH_USE_CHECK}; do + if use ${x} && ! built_with_use =x11-libs/qt-4* ${x}; then + optionalflags="${optionalflags} ${x}" + fi + done + + local diemessage="" + if [[ ${requiredflags} != "" ]]; then + eerror + eerror "(1) In order to compile ${CATEGORY}/${PN} first you need to build" + eerror "=x11-libs/qt-4* with USE=\"${requiredflags}\" flag(s)" + eerror + diemessage="(1) recompile qt4 with \"${requiredflags}\" USE flag(s) ; " + fi + if [[ ${optionalflags} != "" ]]; then + eerror + eerror "(2) You are trying to compile ${CATEGORY}/${PN} package with" + eerror "USE=\"${optionalflags}\"" + eerror "while qt4 is built without this particular flag(s): it will" + eerror "not work." + eerror + eerror "Possible solutions to this problem are:" + eerror "a) install package ${CATEGORY}/${PN} without \"${optionalflags}\" USE flag(s)" + eerror "b) re-emerge qt4 with \"${optionalflags}\" USE flag(s)" + eerror + diemessage="${diemessage}(2) recompile qt4 with \"${optionalflags}\" USE flag(s) or disable them for ${PN} package\n" + fi + + [[ ${diemessage} != "" ]] && die "can't emerge ${CATEGORY}/${PN}: ${diemessage}" +} + +# @FUNCTION: eqmake4 +# @USAGE: [.pro file] [additional parameters to qmake] +# @MAINTAINER: +# Przemyslaw Maciag +# Davide Pesavento +# @DESCRIPTION: +# Runs qmake on the specified .pro file (defaults to +# ${PN}.pro if eqmake4 was called with no argument). +# Additional parameters are passed unmodified to qmake. +eqmake4() { + local LOGFILE="${T}/qmake-$$.out" + local projprofile="${1}" + [[ -z ${projprofile} ]] && projprofile="${PN}.pro" + shift 1 + + ebegin "Processing qmake ${projprofile}" + + # file exists? + if [[ ! -f ${projprofile} ]]; then + echo + eerror "Project .pro file \"${projprofile}\" does not exists" + eerror "qmake cannot handle non-existing .pro files" + echo + eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org" + echo + die "Project file not found in ${PN} sources" + fi + + echo >> ${LOGFILE} + echo "****** qmake ${projprofile} ******" >> ${LOGFILE} + echo >> ${LOGFILE} + + # as a workaround for broken qmake, put everything into file + if has debug ${IUSE} && use debug; then + echo -e "\nCONFIG -= release\nCONFIG += no_fixpath debug" >> ${projprofile} + else + echo -e "\nCONFIG -= debug\nCONFIG += no_fixpath release" >> ${projprofile} + fi + + /usr/bin/qmake ${projprofile} \ + QTDIR=/usr/$(get_libdir) \ + QMAKE=/usr/bin/qmake \ + QMAKE_CC=$(tc-getCC) \ + QMAKE_CXX=$(tc-getCXX) \ + QMAKE_LINK=$(tc-getCXX) \ + QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ + QMAKE_CFLAGS_DEBUG="${CFLAGS}" \ + QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ + QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \ + QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \ + QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \ + QMAKE_RPATH= \ + "${@}" >> ${LOGFILE} 2>&1 + + local result=$? + eend ${result} + + # was qmake successful? + if [[ ${result} -ne 0 ]]; then + echo + eerror "Running qmake on \"${projprofile}\" has failed" + echo + eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org" + echo + die "qmake failed on ${projprofile}" + fi + + return ${result} +} + +EXPORT_FUNCTIONS pkg_setup diff --git a/x11-libs/qt-assistant/Manifest b/x11-libs/qt-assistant/Manifest new file mode 100644 index 0000000..d389f4f --- /dev/null +++ b/x11-libs/qt-assistant/Manifest @@ -0,0 +1,4 @@ +AUX Assistant.desktop 368 RMD160 dd28aea43bc8e013e6631d0ee91449b8a2e9594d SHA1 515684005a50bfa19ed84fb4105fbb9317ad5d99 SHA256 77b0852193675857141e0ce9ac521cfdab1506a822436a0dec4c4221a680cc4b +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-assistant-4.4.0_rc1.ebuild 1390 RMD160 55b7ef10249abaf87ae62997a5e624a75771f939 SHA1 fdb9e6a97d93a92c9739a0591ebc57389aea61f3 SHA256 ddcffb66619870c39d8b85ed124d42a0de552f3471748eccc61c6ffd22e59005 diff --git a/x11-libs/qt-assistant/files/Assistant.desktop b/x11-libs/qt-assistant/files/Assistant.desktop new file mode 100644 index 0000000..fe8f472 --- /dev/null +++ b/x11-libs/qt-assistant/files/Assistant.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Categories=Qt;Development;GUIDesigner; +Comment= +Comment[en_US]= +Encoding=UTF-8 +Exec=/usr/bin/assistant +GenericName=Assistant +GenericName[en_US]=Assistant +Icon=assistant +MimeType= +Name=Assistant +Name[en_US]=Assistant +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +X-DCOP-ServiceType= +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/x11-libs/qt-assistant/qt-assistant-4.4.0_rc1.ebuild b/x11-libs/qt-assistant/qt-assistant-4.4.0_rc1.ebuild new file mode 100644 index 0000000..f851b79 --- /dev/null +++ b/x11-libs/qt-assistant/qt-assistant-4.4.0_rc1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The assistant help module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="~x11-libs/qt-gui-${PV} + ~x11-libs/qt-sql-${PV}" +RDEPEND="${DEPEND}" + +# Pixeltool isn't really assistant related, but it relies on +# the assistant libraries. +QT4_TARGET_DIRECTORIES="tools/assistant tools/pixeltool" +QT4_EXTRACT_DIRECTORIES=" +src/3rdparty/clucene/ +tools/shared/fontpanel" + +pkg_setup() { + qt4-build_pkg_setup + + if ! built_with_use x11-libs/qt-sql sqlite; then + die "You must first emerge x11-libs/qt-sql with the \"sqlite\" use flag in order to use qt-assistant" + fi +} + +src_compile() { + local myconf + + myconf="${myconf} -no-xkb -no-tablet -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-webkit -no-phonon + -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility -no-fontconfig + -no-glib -no-opengl -no-qt3support -no-svg" + + qt4-build_src_compile +} + +src_install() { + qt4-build_src_install + domenu "${FILESDIR}"/assistant.desktop + use doc && dohtml -r doc/html/* +} diff --git a/x11-libs/qt-core/Manifest b/x11-libs/qt-core/Manifest new file mode 100644 index 0000000..a02bf47 --- /dev/null +++ b/x11-libs/qt-core/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-core-4.4.0_rc1.ebuild 4878 RMD160 32ad7a8275cc2a1d91403c65cfbac56092e8279c SHA1 946dbe304bf4e5c0a72b83b5bda3245010e1a91f SHA256 71ac224fa027445e6534c2a83b5a8185b55910ae027b03fc6e65000baccbf8b6 diff --git a/x11-libs/qt-core/qt-core-4.4.0_rc1.ebuild b/x11-libs/qt-core/qt-core-4.4.0_rc1.ebuild new file mode 100644 index 0000000..e472954 --- /dev/null +++ b/x11-libs/qt-core/qt-core-4.4.0_rc1.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit qt4-build + +DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="doc glib +qt3support ssl" + +RDEPEND="sys-libs/zlib + glib? ( dev-libs/glib ) + ssl? ( dev-libs/openssl ) + !<=x11-libs/qt-4.4.0_alpha:${SLOT}" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +QT4_TARGET_DIRECTORIES=" +src/tools/moc/ +src/tools/rcc/ +src/tools/uic/ +src/corelib/ +src/xml/ +src/network/ +src/plugins/codecs/" +QT4_EXTRACT_DIRECTORIES=" +include/Qt/ +include/QtCore/ +include/QtNetwork/ +include/QtScript/ +include/QtXml/ +src/plugins/plugins.pro +src/plugins/qpluginbase.pri +src/src.pro +src/3rdparty/des/ +src/3rdparty/harfbuzz/ +src/3rdparty/md4/ +src/3rdparty/md5/ +src/3rdparty/sha1/ +src/script/ +translations/" + +pkg_setup() { + qt4-build_pkg_setup + + if has_version x11-libs/qt-core; then + # Check to see if they've changed the glib flag since the last time installing this package. + + if use glib && ! built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then + ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." + ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." + elif ! use glib && built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then + ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." + ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." + fi + + # Check to see if they've changed the qt3support flag since the last time installing this package. + # If so, give a list of packages they need to uninstall first. + + if use qt3support && ! built_with_use x11-libs/qt-core qt3support; then + local need_to_remove + ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." + for x in sql opengl gui qt3support; do + local pkg="x11-libs/qt-${x}" + if has_version $pkg; then + need_to_remove="${need_to_remove} ${pkg}" + fi + done + if [[ -n ${need_to_remove} ]]; then + die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" + fi + elif ! use qt3support && built_with_use x11-libs/qt-core qt3support; then + local need_to_remove + ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." + for x in sql opengl gui qt3support; do + local pkg="x11-libs/qt-${x}" + if has_version $pkg; then + need_to_remove="${need_to_remove} ${pkg}" + fi + done + if [[ -n ${need_to_remove} ]]; then + die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" + fi + fi + fi +} + +src_unpack() { + use doc && QT4_EXTRACT_DIRECTORIES="${QT4_EXTRACT_DIRECTORIES} + doc/ + tools/qdoc3/" + + qt4-build_src_unpack +} + +src_compile() { + unset QMAKESPEC + local myconf + + myconf="${myconf} + $(qt_use glib) + $(qt_use ssl openssl) + $(qt_use qt3support)" + + myconf="${myconf} -no-xkb -no-tablet -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 -system-zlib -no-webkit -no-phonon -no-xmlpatterns + -no-freetype -no-libtiff -no-accessibility -no-fontconfig -no-opengl + -no-svg" + + if ! use doc; then + myconf="${myconf} -nomake docs" + fi + + qt4-build_src_compile +} + +src_install() { + dobin "${S}"/bin/{qmake,moc,rcc,uic} || die "dobin failed." + + install_directories src/{corelib,xml,network,plugins/codecs} + + emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed" + + if use doc; then + emake INSTALL_ROOT="${D}" install_htmldocs || die "emake install_htmldocs failed." + fi + + emake INSTALL_ROOT="${D}" install_translations || die "emake install_translations failed" + + fix_library_files + + # List all the multilib libdirs + local libdirs + for libdir in $(get_all_libdirs); do + libdirs="${libdirs}:/usr/${libdir}/qt4" + done + + cat <<-EOF > "${T}/44qt4" + LDPATH=${libdirs:1} + EOF + doenvd "${T}/44qt4" + + dodir /${QTDATADIR}/mkspecs/gentoo + mv "${D}"/${QTDATADIR}/mkspecs/qconfig.pri "${D}${QTDATADIR}"/mkspecs/gentoo || \ + die "Failed to move qconfig.pri" + + sed -i -e '2a#include \n' \ + "${D}${QTHEADERDIR}"/QtCore/qconfig.h \ + "${D}${QTHEADERDIR}"/Qt/qconfig.h || die "sed for qconfig.h failed." + + if use glib; then + QCONFIG_DEFINE="$(use glib && echo QT_GLIB) + $(use ssl && echo QT_OPENSSL)" + install_qconfigs + fi + + keepdir "${QTSYSCONFDIR}" +} + +pkg_postinst() { + if use qt-copy ; then + ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!!!" + fi +} diff --git a/x11-libs/qt-dbus/Manifest b/x11-libs/qt-dbus/Manifest new file mode 100644 index 0000000..f40b411 --- /dev/null +++ b/x11-libs/qt-dbus/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-dbus-4.4.0_rc1.ebuild 1107 RMD160 2d5856cd56452bc2ca16e775f9cf2dba90168494 SHA1 6c258dfbfe53e2b82564c71309b63cf1a0f1a7f6 SHA256 c86940d2dc3fac7f29581d57006fa139080ad63dd366423639cfc9eda2f6c6e8 diff --git a/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild b/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild new file mode 100644 index 0000000..92cd410 --- /dev/null +++ b/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The DBus module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# depend on gui instead of core. There's a GUI based viewer that's built, and since it's a desktop +# protocol I don't know if there's value trying to derive it out into a core build +# The library itself, however, only depends on core and xml +DEPEND="~x11-libs/qt-core-${PV} + >=sys-apps/dbus-1.0.2" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES=" +src/dbus +tools/qdbus/qdbus +tools/qdbus/qdbusxml2cpp +tools/qdbus/qdbuscpp2xml" +QCONFIG_ADD="dbus dbus-linked" +QCONFIG_DEFINE="QT_DBUS" + +#FIXME: Check if these are still needed with the header package +QT4_EXTRACT_DIRECTORIES=" +include/Qt/ +include/QtCore/ +include/QtDBus/ +src/corelib/global/ +src/corelib/io/ +src/corelib/kernel/ +src/corelib/thread/ +src/corelib/tools/ +" + +src_compile() { + local myconf + myconf="${myconf} -dbus-linked" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-gui/Manifest b/x11-libs/qt-gui/Manifest new file mode 100644 index 0000000..d21023f --- /dev/null +++ b/x11-libs/qt-gui/Manifest @@ -0,0 +1,6 @@ +AUX Designer.desktop 374 RMD160 bdd36d944e2549649cd0a51382296d86d5c2ac37 SHA1 2ca9fc952d204635a2b62480cf4531faf2938110 SHA256 96a2d2a6c0723c1ce7cbb9fd295eadcc300450ce2b585d1168a380142be0e741 +AUX Linguist.desktop 362 RMD160 ce7f588d57300eb859634cabdccd5331da572c76 SHA1 ba914198e37fbf94a8bcbcbfb33bf0f5b45aec8b SHA256 3c527616f52bf533256150dab7f5f6e94bc4f73e2193fae20314cf3d70c4b1f7 +AUX xinerama.patch 693 RMD160 c5bdfb4184c4b94059b8c095545355a0b5c48643 SHA1 6848994884a62a0d599e0cb499e546688bfba062 SHA256 ca1afcdd29fe2a1c02af3dbe4640fd4ec2aafa4f0bae4c01e0b6a40e23303a0b +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-gui-4.4.0_rc1.ebuild 3575 RMD160 ac2ea9de0d25cec5f9f8bde00b4f316abf913bab SHA1 fb3d9f14b75face0b6fe208b77cd7ee559fc7097 SHA256 307996801fda312dc74497f660f70c705a024065ab75dd106fba6e5e4d307b5d diff --git a/x11-libs/qt-gui/files/Designer.desktop b/x11-libs/qt-gui/files/Designer.desktop new file mode 100644 index 0000000..aaeb24f --- /dev/null +++ b/x11-libs/qt-gui/files/Designer.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Comment= +Comment[en_US]= +Encoding=UTF-8 +Exec=/usr/bin/designer +GenericName=Qt Designer +GenericName[en_US]=Qt Designer +Icon=designer +MimeType= +Name=Qt Designer +Name[en_US]=Qt Designer +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +X-DCOP-ServiceType= +X-KDE-SubstituteUID=false +X-KDE-Username= +Categories=Qt;Development;GUIDesigner; diff --git a/x11-libs/qt-gui/files/Linguist.desktop b/x11-libs/qt-gui/files/Linguist.desktop new file mode 100644 index 0000000..2a2c3de --- /dev/null +++ b/x11-libs/qt-gui/files/Linguist.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Comment= +Comment[en_US]= +Encoding=UTF-8 +Exec=/usr/bin/linguist +GenericName=Linguist +GenericName[en_US]=Linguist +Icon=linguist +MimeType= +Name=Linguist +Name[en_US]=Linguist +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +X-DCOP-ServiceType= +X-KDE-SubstituteUID=false +X-KDE-Username= +Categories=Qt;Development;GUIDesigner; diff --git a/x11-libs/qt-gui/files/xinerama.patch b/x11-libs/qt-gui/files/xinerama.patch new file mode 100644 index 0000000..5edd033 --- /dev/null +++ b/x11-libs/qt-gui/files/xinerama.patch @@ -0,0 +1,15 @@ +--- src/gui/kernel/qapplication_x11.cpp.orig 2007-12-23 15:10:43.000000000 -0500 ++++ src/gui/kernel/qapplication_x11.cpp 2007-12-23 15:11:01.000000000 -0500 +@@ -1715,9 +1715,9 @@ + (PtrXineramaQueryScreens) xineramaLib.resolve("XineramaQueryScreens"); + } + #else +- ptrXineramaQueryScreens = XineramaQueryScreens; +- ptrXineramaIsActive = XineramaIsActive; +- ptrXineramaQueryExtension = XineramaQueryExtension; ++ X11->ptrXineramaQueryScreens = XineramaQueryScreens; ++ X11->ptrXineramaIsActive = XineramaIsActive; ++ X11->ptrXineramaQueryExtension = XineramaQueryExtension; + #endif // QT_RUNTIME_XINERAMA + #endif // QT_NO_XINERAMA + diff --git a/x11-libs/qt-gui/qt-gui-4.4.0_rc1.ebuild b/x11-libs/qt-gui/qt-gui-4.4.0_rc1.ebuild new file mode 100644 index 0000000..ed29f35 --- /dev/null +++ b/x11-libs/qt-gui/qt-gui-4.4.0_rc1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit eutils qt4-build + +DESCRIPTION="The GUI module(s) for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" + +IUSE_INPUT_DEVICES="input_devices_wacom" +IUSE="+accessibility cups dbus debug glib mng nas nis tiff +qt3support xinerama ${IUSE_INPUT_DEVICES}" + +RDEPEND=" + media-libs/fontconfig + >=media-libs/freetype-2 + media-libs/jpeg + media-libs/libpng + sys-libs/zlib + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXfont + x11-libs/libSM + ~x11-libs/qt-core-${PV} + ~x11-libs/qt-script-${PV} + cups? ( net-print/cups ) + dbus? ( ~x11-libs/qt-dbus-${PV} ) + input_devices_wacom? ( x11-libs/libXi x11-drivers/linuxwacom ) + mng? ( >=media-libs/libmng-1.0.9 ) + nas? ( >=media-libs/nas-1.5 ) + tiff? ( media-libs/tiff ) + xinerama? ( x11-libs/libXinerama )" +DEPEND="${RDEPEND} + xinerama? ( x11-proto/xineramaproto ) + x11-proto/xextproto + x11-proto/inputproto" + +QT4_TARGET_DIRECTORIES=" +src/gui +tools/designer +tools/linguist +src/plugins/imageformats/gif +src/plugins/imageformats/ico +src/plugins/imageformats/jpeg" +QT4_EXTRACT_DIRECTORIES=" +src/tools/rcc/ +tools/shared/" + +pkg_setup() { + use glib && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-core-${PV} glib" + use qt3support && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-core-${PV} qt3support" + + qt4-build_pkg_setup +} + +src_unpack() { + use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer" + use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng" + use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff" + + qt4-build_src_unpack + + # Don't build plugins this go around, because they depend on qt3support lib + sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro +} + +src_compile() { + export PATH="${S}/bin:${PATH}" + export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" + + local myconf + myconf="$(qt_use accessibility) + $(qt_use cups) + $(qt_use glib) + $(qt_use input_devices_wacom tablet) + $(qt_use mng libmng system) + $(qt_use nis) + $(qt_use tiff libtiff system) + $(qt_use qdbus) + $(qt_use qt3support) + $(qt_use xinerama)" + + use nas && myconf="${myconf} -system-nas-sound" + + myconf="${myconf} -qt-gif -system-libpng -system-libjpeg + -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc + -xrender -xrandr -xkb -xshape -sm -no-svg" + + # Explictly don't compile these packages. + # Emerge "qt-webkit", "qt-phonon", etc for their functionality. + myconf="${myconf} -no-webkit -no-phonon -no-dbus -no-opengl" + + qt4-build_src_compile +} + +src_install() { + QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig + $(use input_devices_wacom && echo tablet) $(usev accessibility) + $(usev xinerama) $(usev cups) $(usev nas) gif png system-png system-jpeg + $(use mng && echo system-mng) $(use tiff && echo system-tiff)" + QCONFIG_REMOVE="no-gif no-png" + QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY) + $(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG + $(use mng && echo QT_IMAGEFORMAT_MNG) $(use nas && echo QT_NAS) + $(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE + $(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR + $(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER" + qt4-build_src_install + + domenu "${FILESDIR}"/{Designer,Linguist}.desktop +} diff --git a/x11-libs/qt-opengl/Manifest b/x11-libs/qt-opengl/Manifest new file mode 100644 index 0000000..c946adc --- /dev/null +++ b/x11-libs/qt-opengl/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-opengl-4.4.0_rc1.ebuild 856 RMD160 154f846fb5a2f8b84895743dfd79cccbc5ba45db SHA1 90868e365f5bf3cfae217ef36e40795f53618203 SHA256 0067e1620b9810902790eacc3c9b8d55fa2beb6ee44d9effa166be15a226550e diff --git a/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild b/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild new file mode 100644 index 0000000..ba45e29 --- /dev/null +++ b/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit qt4-build + +DESCRIPTION="The OpenGL module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="+qt3support" + +DEPEND="~x11-libs/qt-gui-${PV} + virtual/opengl + virtual/glu" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/opengl" +QCONFIG_ADD="opengl" +QCONFIG_DEFINE="QT_OPENGL" + +pkg_setup() { + use qt3support && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-core-${PV} qt3support" + qt4-build_pkg_setup +} + +src_compile() { + local myconf + myconf="${myconf} -opengl + $(qt_use qt3support)" + + # Not building tools/designer/src/plugins/tools/view3d as it's commented out of the build in the source + qt4-build_src_compile +} diff --git a/x11-libs/qt-phonon/Manifest b/x11-libs/qt-phonon/Manifest new file mode 100644 index 0000000..b54989b --- /dev/null +++ b/x11-libs/qt-phonon/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-phonon-4.4.0_rc1.ebuild 778 RMD160 7e99e47a794554776613fb14998ac35862159f74 SHA1 20556f96169929bc66862676e4c2c1b84400b5db SHA256 bb382b5d484527a929b475de08ea04e263f5a5a0e9e41573ae7ce64477042b24 diff --git a/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild b/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild new file mode 100644 index 0000000..306bb51 --- /dev/null +++ b/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The Phonon module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="dbus" + +DEPEND="~x11-libs/qt-gui-${PV} + media-libs/gstreamer + media-libs/gst-plugins-base + dbus? ( =x11-libs/qt-dbus-${PV} )" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES=" +src/phonon +src/plugins/phonon" +QT4_EXTRACT_DIRECTORIES=" +src/3rdparty/kdelibs/phonon/ +src/3rdparty/kdebase/runtime/phonon/" +QCONFIG_ADD="phonon" +QCONFIG_DEFINE="QT_GSTREAMER" + +src_compile() { + local myconf + myconf="${myconf} -phonon -no-opengl -no-svg + $(qt_use dbus qdbus)" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-qt3support/Manifest b/x11-libs/qt-qt3support/Manifest new file mode 100644 index 0000000..5aeb86b --- /dev/null +++ b/x11-libs/qt-qt3support/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-qt3support-4.4.0_rc1.ebuild 1036 RMD160 7d52e6cd1e3d9ecc82257e67f7c4f0e9934a99dc SHA1 3d7a395a1f3adeaa96ada890d61b60e6693cdd94 SHA256 26186ce892870e9d279cae35e4645a6fe9f9332ba58af4d9166d831f5bd5e822 diff --git a/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild b/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild new file mode 100644 index 0000000..7076163 --- /dev/null +++ b/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit qt4-build + +DESCRIPTION="The Qt3 support module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="+accessibility" + +DEPEND="~x11-libs/qt-gui-${PV} + ~x11-libs/qt-sql-${PV}" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES=" +src/qt3support +src/tools/uic3 +tools/designer/src/plugins/widgets +tools/qtconfig +tools/porting" +QT4_EXTRACT_DIRECTORIES=" +src/tools/uic/ +" + +pkg_setup() { + QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-core-${PV} qt3support + ~x11-libs/qt-gui-${PV} qt3support + ~x11-libs/qt-sql-${PV} qt3support" + use accessibility && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-gui-${PV} accessibility" + + qt4-build_pkg_setup +} + +src_compile() { + local myconf + myconf="${myconf} -qt3support -no-gstreamer -no-phonon + $(qt_use accessibility)" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-script/Manifest b/x11-libs/qt-script/Manifest new file mode 100644 index 0000000..439d396 --- /dev/null +++ b/x11-libs/qt-script/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-script-4.4.0_rc1.ebuild 997 RMD160 b8c0e8eb1ab9dd3b17a33e64920f98ac04775894 SHA1 3386a02ee33f464a5b66388c67d4c43e45bb6c56 SHA256 05372c07410a6afbfe0d6460d8bebf655383a2dd98870cabf9f16d89e1d437d1 diff --git a/x11-libs/qt-script/qt-script-4.4.0_rc1.ebuild b/x11-libs/qt-script/qt-script-4.4.0_rc1.ebuild new file mode 100644 index 0000000..e3ebf3e --- /dev/null +++ b/x11-libs/qt-script/qt-script-4.4.0_rc1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The ECMAScript module for the Qt toolkit" +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="~x11-libs/qt-core-${PV}" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/script/" +QT4_EXTRACT_DIRECTORIES=" +include/Qt/ +include/QtCore/ +include/QtScript/ +src/corelib/global/ +src/corelib/kernel/ +src/corelib/plugin/" + +src_compile() { + local myconf + myconf="${myconf} -no-xkb -no-tablet -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-webkit -no-phonon + -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility + -no-fontconfig -no-glib -no-opengl -no-svg" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-sql/Manifest b/x11-libs/qt-sql/Manifest new file mode 100644 index 0000000..4f2cb8a --- /dev/null +++ b/x11-libs/qt-sql/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-sql-4.4.0_rc1.ebuild 1902 RMD160 e603bc47378a94d69a9625307f04a0795ba21507 SHA1 376ecb7b627818590a5f9e65130dad6801aec073 SHA256 15a3790ae9f133e6951ef93db26bfb23c4aaee574a8a1b73e08897f554e6ac0e diff --git a/x11-libs/qt-sql/qt-sql-4.4.0_rc1.ebuild b/x11-libs/qt-sql/qt-sql-4.4.0_rc1.ebuild new file mode 100644 index 0000000..58b55ec --- /dev/null +++ b/x11-libs/qt-sql/qt-sql-4.4.0_rc1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit qt4-build + +DESCRIPTION="The SQL module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" + +IUSE="firebird mysql odbc postgres +qt3support +sqlite" + +DEPEND=" + ~x11-libs/qt-core-${PV} + firebird? ( dev-db/firebird ) + sqlite? ( dev-db/sqlite:3 ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/libpq + dev-db/postgresql ) + odbc? ( dev-db/unixODBC )" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/sql src/plugins/sqldrivers" + +pkg_setup() { + if ! (use firebird || use mysql || use odbc || use postgres || use sqlite); then + ewarn "You need to enable at least one SQL driver. Enable at least" + ewarn "one of these USE flags: \"firebird mysql odbc postgres sqlite\"" + die "Enable at least one SQL driver." + fi + + use qt3support && QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} + ~x11-libs/qt-core-${PV} qt3support" + + qt4-build_pkg_setup +} + +src_compile() { + local myconf + # Don't support sqlite2 anymore + myconf="${myconf} -no-sql-sqlite2 + $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I/usr/include/mysql -L/usr/$(get_libdir)/mysql ") + $(qt_use postgres sql-psql plugin) $(use postgres && echo "-I/usr/include/postgresql/pgsql ") + $(qt_use sqlite sql-sqlite plugin) $(qt_use sqlite system-sqlite) + $(qt_use odbc sql-odbc plugin) + $(qt_use qt3support)" + + myconf="${myconf} -no-xkb -no-tablet -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-webkit -no-phonon + -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility -no-fontconfig + -no-glib -no-opengl -no-svg" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-svg/Manifest b/x11-libs/qt-svg/Manifest new file mode 100644 index 0000000..8c77270 --- /dev/null +++ b/x11-libs/qt-svg/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-svg-4.4.0_rc1.ebuild 960 RMD160 46eb7f85959c0d7a44f4d57678dd7d10e7c678cb SHA1 502efa797c8e5e80678e7218a114b0f50e7f264d SHA256 c93acfbd4cc88f70e67a5aa685bcc4a2c8f5f72f2595caab111bd1b3f9c2a3d6 diff --git a/x11-libs/qt-svg/qt-svg-4.4.0_rc1.ebuild b/x11-libs/qt-svg/qt-svg-4.4.0_rc1.ebuild new file mode 100644 index 0000000..01f70f2 --- /dev/null +++ b/x11-libs/qt-svg/qt-svg-4.4.0_rc1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The SVG module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="~x11-libs/qt-gui-${PV}" +RDEPEND="${DEPEND}" + +QCONFIG_ADD="svg" +QCONFIG_DEFINE="QT_SVG" +QT4_TARGET_DIRECTORIES=" +src/svg +src/plugins/imageformats/svg +src/plugins/iconengines/svgiconengine" + +src_compile() { + local myconf + myconf="${myconf} -svg -no-xkb -no-tablet -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-webkit -no-phonon + -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility + -no-fontconfig -no-glib -no-opengl" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-test/Manifest b/x11-libs/qt-test/Manifest new file mode 100644 index 0000000..85bd729 --- /dev/null +++ b/x11-libs/qt-test/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-test-4.4.0_rc1.ebuild 872 RMD160 a0975477f584fc284b82b752d637c1355ad99d57 SHA1 a954f01dd6a0865f5a4323ad1747b39d1b65b0cd SHA256 2600df52e327915a35490c395adb1f4a1a8eda2dc00f430b8b2e25333de47b3a diff --git a/x11-libs/qt-test/qt-test-4.4.0_rc1.ebuild b/x11-libs/qt-test/qt-test-4.4.0_rc1.ebuild new file mode 100644 index 0000000..f5d8438 --- /dev/null +++ b/x11-libs/qt-test/qt-test-4.4.0_rc1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The testing framework module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="~x11-libs/qt-core-${PV}" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/testlib" + +src_compile() { + local myconf + myconf="${myconf} -no-xkb -no-tablet -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-webkit -no-phonon + -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility + -no-fontconfig -no-glib -no-opengl -no-svg" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-webkit/Manifest b/x11-libs/qt-webkit/Manifest new file mode 100644 index 0000000..8801e8e --- /dev/null +++ b/x11-libs/qt-webkit/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-webkit-4.4.0_rc1.ebuild 649 RMD160 e3175726540b795a3c43f26aacb79a47de6beb18 SHA1 a411a5df4e4c12a025a799b9d9832266fef4f750 SHA256 e275a6f38fd950feadbf5ada126638795eabb1a3128a2a9de0abe74852cc0a04 diff --git a/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild b/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild new file mode 100644 index 0000000..5bbf48a --- /dev/null +++ b/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4-build + +DESCRIPTION="The Webkit module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="~x11-libs/qt-gui-${PV}" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/3rdparty/webkit/WebCore tools/designer/src/plugins/qwebview" +QT4_EXTRACT_DIRECTORIES="src/3rdparty/webkit src/3rdparty/sqlite" +QCONFIG_ADD="webkit" +QCONFIG_DEFINE="QT_WEBKIT" + +src_compile() { + local myconf + myconf="${myconf} -webkit" + + qt4-build_src_compile +} diff --git a/x11-libs/qt-xmlpatterns/Manifest b/x11-libs/qt-xmlpatterns/Manifest new file mode 100644 index 0000000..ecad1b2 --- /dev/null +++ b/x11-libs/qt-xmlpatterns/Manifest @@ -0,0 +1,3 @@ +DIST qt-x11-opensource-src-4.4.0-rc1-headers.tar.bz2 2526180 RMD160 2658570a226d3f505cd4a2a3660b8f0427d43995 SHA1 24bb371329af5d82a7f2016c845b9e79c4e569d5 SHA256 d446a922da30e8834bdaa27f40b78c55f150e1c98c937cf8a403f26bbfc3e750 +DIST qt-x11-opensource-src-4.4.0-rc1.tar.bz2 97480693 RMD160 909613dd1acb9dd6138c494e8523ae33047cfa4d SHA1 1d9245c1333aaafc2dda7d138101d300318fada5 SHA256 b6634ca2bc6eb38986f46432161ee0cf94476d5c6a3a3bb300ce82f613596cdc +EBUILD qt-xmlpatterns-4.4.0_rc1.ebuild 593 RMD160 f06b798d43ffc6f26a705699fd40007e1fb1629f SHA1 d832b58b1d1f0ec350a90676b434df77a565b528 SHA256 6861b497683c5141f98bb664ce89508b63f26e992d958530c20cc52f7f3c7fc6 diff --git a/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.4.0_rc1.ebuild b/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.4.0_rc1.ebuild new file mode 100644 index 0000000..d63ae6a --- /dev/null +++ b/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.4.0_rc1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit qt4-build + +DESCRIPTION="The patternist module for the Qt toolkit." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="+exceptions" + +DEPEND="~x11-libs/qt-core-${PV}" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/xmlpatterns tools/xmlpatterns" +QCONFIG_ADD="xmlpatterns" +QCONFIG_DEFINE="QT_XMLPATTERNS" + +src_compile() { + local myconf + myconf="${myconf} -xmlpatterns" + + qt4-build_src_compile +} diff --git a/x11-libs/qt/Manifest b/x11-libs/qt/Manifest index 0afb02b..3a52461 100644 --- a/x11-libs/qt/Manifest +++ b/x11-libs/qt/Manifest @@ -26,7 +26,8 @@ DIST qt-x11-immodule-unified-qt3.3.8-20070321-gentoo.diff.bz2 137387 RMD160 7f4f DIST qt-x11-opensource-src-4.3.2.tar.gz 43462686 RMD160 b73a3d7a1edd11987544291cce80b56f5a499969 SHA1 265fb56ded2e7ff101ebd722bd2bc1638f96057d SHA256 70198d61d038007c787bab62700d35cbd3fc925b53fe920672f2a0afbae7e276 DIST qt-x11-opensource-src-4.3.3.tar.gz 42341802 RMD160 410daca03b6802ba5cc6662219c2ba7a190bd292 SHA1 77d00e2438efa793f6c16c54b64c8ba440ee3228 SHA256 89934bacc5cee5cb35a231275b0f9948f29483faf9082bed0e7255ce41751570 DIST qt-x11-opensource-src-4.3.4.tar.gz 43988710 RMD160 eb081e599e61bcaa126981aecbe2db480be35eca SHA1 639f6469d5aa07c51c2aa6795f8e3de3aab8cd25 SHA256 8864dd80f3456be70a3be60364502a0ca3f46125b2f156860ad880ff55fcabd2 -EBUILD qt-3.3.8-r4.ebuild 12253 RMD160 f86ab422483d1e824842ccaafddd79b760f896b0 SHA1 2eefb74b9be7a4bfca6fae72cd9630043632c957 SHA256 b003c84a256cf50bfeee04173e6f1f62776541bc475c8afe0b2bc8471cd0bd6e -EBUILD qt-4.3.2-r1.ebuild 9222 RMD160 f30cc7cdd8aaa6f93c2e01116eff75dfdb6a83e0 SHA1 2fff618865025e8a87bfd503daeae2398d6eb195 SHA256 516ca122ee5c6ffce312eec591850d52d2b2779df055f20e6800ba68dfaa7521 -EBUILD qt-4.3.3.ebuild 9154 RMD160 ead052d192dd363894bbb76475732a2ebe0284fd SHA1 f10924294e5e469efc3295b4c1f2619eebc50da9 SHA256 54f3fba68b3884e53f30dae10d8c4b74f862b448b4ece875e6df3ff80aea038b -EBUILD qt-4.3.4-r1.ebuild 9456 RMD160 cd179044a160c9ebb693d3b8201f7fd733b824d0 SHA1 2ba81e3faaf68f97fb33c3bb19d73f87700bbfec SHA256 5e464bc5a040f5fc9db2bbc5fe2f3015df13e1413752aaef6c8efb9c0b551989 +EBUILD qt-3.3.8-r4.ebuild 12261 RMD160 5ce1222054db6042c43fd93dc0ffb8aed9596620 SHA1 33f00ec2109673c10fd8d20f8365e8f7522d4c91 SHA256 33a253de7114c385613695662ca5926e60214b8b9505cca91cd8ab4898e3ec56 +EBUILD qt-4.3.2-r1.ebuild 9354 RMD160 b62b9422658f65a6a671adb9628ff7a73e6fc509 SHA1 5ce821cad03453755c961051ca467ff82c923fae SHA256 f4a710cf13b3199839497ac70471bf509e80d236d4f0eccf50683ec338f518a2 +EBUILD qt-4.3.3.ebuild 9278 RMD160 d999cf6cec7a1e4e22573ce429a7e7c0afcb99d6 SHA1 184af3af8a8b1bf12f49dabd185bad30cc290520 SHA256 0c261fd79c6110f56bcaff9556f16ee42b2bfb9e48776a61a0fd9d61f5dc43f4 +EBUILD qt-4.3.4-r1.ebuild 9580 RMD160 3a39d03bdbd998c1b03404365cc4bbe51487b1de SHA1 86fe152fc487564f0950709b21f6119e6bd3db03 SHA256 48bdd2cd04c098718976a44a946f8f5b3a3db3262ba4379acdaf5e2cba878578 +EBUILD qt-4.4.0_rc1.ebuild 746 RMD160 b25a6145ec05b08c87f2c1ec32d67bc8c739666d SHA1 2536fd111d09aab3ce29a8caa5f84f57f6c8eb6c SHA256 bd9b27ef5ac177d884d0fa2ef801c6f6093470d2a4913bc465f73bcfea38d0d4 diff --git a/x11-libs/qt/qt-3.3.8-r4.ebuild b/x11-libs/qt/qt-3.3.8-r4.ebuild index ac18863..4de907f 100644 --- a/x11-libs/qt/qt-3.3.8-r4.ebuild +++ b/x11-libs/qt/qt-3.3.8-r4.ebuild @@ -22,7 +22,7 @@ SRC_URI="mirror://gentoo/qt-x11-${SRCTYPE}-${PV}.tar.gz LICENSE="|| ( QPL-1.0 GPL-2 )" SLOT="3" -KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="cups debug doc examples firebird gif ipv6 mysql nas nis odbc opengl postgres qt-copy sqlite xinerama immqt immqt-bc" DEPEND="x11-libs/libXcursor diff --git a/x11-libs/qt/qt-4.3.2-r1.ebuild b/x11-libs/qt/qt-4.3.2-r1.ebuild index d71b823..db19014 100644 --- a/x11-libs/qt/qt-4.3.2-r1.ebuild +++ b/x11-libs/qt/qt-4.3.2-r1.ebuild @@ -19,7 +19,7 @@ S=${WORKDIR}/qt-x11-${SRCTYPE}-${PV} LICENSE="|| ( QPL-1.0 GPL-2 )" SLOT="4" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE_INPUT_DEVICES="input_devices_wacom" @@ -292,3 +292,9 @@ QMAKESPEC=$(qt_mkspecs_dir) EOF doenvd "${T}/44qt4" } + +pkg_postinst() { + if use qt-copy ; then + ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!!!" + fi +} diff --git a/x11-libs/qt/qt-4.3.3.ebuild b/x11-libs/qt/qt-4.3.3.ebuild index 3db1e26..28f2b31 100644 --- a/x11-libs/qt/qt-4.3.3.ebuild +++ b/x11-libs/qt/qt-4.3.3.ebuild @@ -289,3 +289,9 @@ LDPATH=${libdirs:1} EOF doenvd "${T}/44qt4" } + +pkg_postinst() { + if use qt-copy ; then + ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!!!" + fi +} diff --git a/x11-libs/qt/qt-4.3.4-r1.ebuild b/x11-libs/qt/qt-4.3.4-r1.ebuild index 2193037..5fa64ec 100644 --- a/x11-libs/qt/qt-4.3.4-r1.ebuild +++ b/x11-libs/qt/qt-4.3.4-r1.ebuild @@ -301,3 +301,9 @@ LDPATH=${libdirs:1} EOF doenvd "${T}/44qt4" } + +pkg_postinst() { + if use qt-copy ; then + ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!!!" + fi +} diff --git a/x11-libs/qt/qt-4.4.0_rc1.ebuild b/x11-libs/qt/qt-4.4.0_rc1.ebuild new file mode 100644 index 0000000..b4ba427 --- /dev/null +++ b/x11-libs/qt/qt-4.4.0_rc1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." +HOMEPAGE="http://www.trolltech.com/" + +LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" + +IUSE="opengl qt3support" + +DEPEND="!=x11-libs/qt-4.4.3*:4" +RDEPEND="${DEPEND} + ~x11-libs/qt-gui-${PV} + ~x11-libs/qt-svg-${PV} + ~x11-libs/qt-test-${PV} + ~x11-libs/qt-sql-${PV} + ~x11-libs/qt-svg-${PV} + ~x11-libs/qt-test-${PV} + ~x11-libs/qt-assistant-${PV} + ~x11-libs/qt-xmlpatterns-${PV} + ~x11-libs/qt-webkit-${PV} + opengl? ( ~x11-libs/qt-opengl-${PV} ) + qt3support? ( ~x11-libs/qt-qt3support-${PV} )" -- 2.11.4.GIT