summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2011-11-10 23:16:04 +0000
committerDavide Pesavento <pesa@gentoo.org>2011-11-10 23:16:04 +0000
commit2d035e4341b0fc9fd165c4b2161f7213d4b5b73b (patch)
treecb1e4785e27cd05561c4658c33ce59c1f1ca5149 /x11-libs/qt-mobility
parentVersion bump bug #389253 (also fixes test failure, see bug #370473). (diff)
downloadhistorical-2d035e4341b0fc9fd165c4b2161f7213d4b5b73b.tar.gz
historical-2d035e4341b0fc9fd165c4b2161f7213d4b5b73b.tar.bz2
historical-2d035e4341b0fc9fd165c4b2161f7213d4b5b73b.zip
Imported qt-mobility from qting-edge.
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64
Diffstat (limited to 'x11-libs/qt-mobility')
-rw-r--r--x11-libs/qt-mobility/ChangeLog10
-rw-r--r--x11-libs/qt-mobility/Manifest4
-rw-r--r--x11-libs/qt-mobility/metadata.xml27
-rw-r--r--x11-libs/qt-mobility/qt-mobility-1.2.0.ebuild177
4 files changed, 218 insertions, 0 deletions
diff --git a/x11-libs/qt-mobility/ChangeLog b/x11-libs/qt-mobility/ChangeLog
new file mode 100644
index 000000000000..21e7a8584eae
--- /dev/null
+++ b/x11-libs/qt-mobility/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for x11-libs/qt-mobility
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-mobility/ChangeLog,v 1.1 2011/11/10 23:16:04 pesa Exp $
+
+*qt-mobility-1.2.0 (10 Nov 2011)
+
+ 10 Nov 2011; Davide Pesavento <pesa@gentoo.org> +qt-mobility-1.2.0.ebuild,
+ +metadata.xml:
+ Initial commit, imported from qting-edge overlay.
+
diff --git a/x11-libs/qt-mobility/Manifest b/x11-libs/qt-mobility/Manifest
new file mode 100644
index 000000000000..c74ba9b7e2af
--- /dev/null
+++ b/x11-libs/qt-mobility/Manifest
@@ -0,0 +1,4 @@
+DIST qt-mobility-opensource-src-1.2.0.tar.gz 37179556 RMD160 c8c3c6c301e90a2ba9a2a249569084b9c3923322 SHA1 090d1cc0d9c27f41d6fc9022b80ab5579af5e46d SHA256 ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc154cf0ba44
+EBUILD qt-mobility-1.2.0.ebuild 4391 RMD160 7b4c92f91a2dd5d0d466f01e09fcb889d2899d8d SHA1 df4b578c6c186b309c3326748abe0150f81d24ea SHA256 6a6489d87a5a6bffcdeab9b33d16a5d72075b7aeeaeed3c2ad366cf011148f23
+MISC ChangeLog 392 RMD160 20fa6def9ff8f81c92876801f21f3b9fc8b597fe SHA1 692ff65879a061bed22fbf6c0458690fb428d953 SHA256 faab1b85402401630247271d416447a9e099e24b44a5acc5118d55d8ce0b6946
+MISC metadata.xml 1532 RMD160 eefbc0a8f75fb34dd2bd5be08078536f2e3b603d SHA1 45551a561d5befff090e365db537a9f63782b548 SHA256 6acf9a09e0be0786a810f962c0484e062765ccc65e70992d9b645da14d280836
diff --git a/x11-libs/qt-mobility/metadata.xml b/x11-libs/qt-mobility/metadata.xml
new file mode 100644
index 000000000000..8dd94f74b4d5
--- /dev/null
+++ b/x11-libs/qt-mobility/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd>
+<use>
+ <flag name="bearer">Build the QtBearer module</flag>
+ <flag name="bluetooth">Enable Bluetooth support in QtConnectivity and QtSystemInfo modules</flag>
+ <flag name="connectivity">Build the QtConnectivity module</flag>
+ <flag name="contacts">Build the QtContacts module</flag>
+ <flag name="feedback">Build the QtFeedback module</flag>
+ <flag name="gallery">Build the QtGallery module</flag>
+ <flag name="location">Build the QtLocation module</flag>
+ <flag name="messaging">Build the QtMessaging module</flag>
+ <flag name="multimedia">Build the QtMultimediaKit module</flag>
+ <flag name="networkmanager">Enable NetworkManager support in QtBearer and QtSystemInfo modules</flag>
+ <flag name="opengl">Enable OpenGL support in QtMultimediaKit module</flag>
+ <flag name="organizer">Build the QtOrganizer module</flag>
+ <flag name="publishsubscribe">Build the QtPublishSubscribe module</flag>
+ <flag name="pulseaudio">Enable PulseAudio support in QtMultimediaKit module</flag>
+ <flag name="qml">Build QML bindings</flag>
+ <flag name="sensors">Build the QtSensors module</flag>
+ <flag name="serviceframework">Build the QtServiceFramework module</flag>
+ <flag name="systeminfo">Build the QtSystemInfo module</flag>
+ <flag name="tools">Build various useful tools (e.g.: qcrmlgen, servicexmlgen, vsexplorer, ...)</flag>
+ <flag name="versit">Build the QtVersit module</flag>
+</use>
+</pkgmetadata>
diff --git a/x11-libs/qt-mobility/qt-mobility-1.2.0.ebuild b/x11-libs/qt-mobility/qt-mobility-1.2.0.ebuild
new file mode 100644
index 000000000000..5dd334ecbb49
--- /dev/null
+++ b/x11-libs/qt-mobility/qt-mobility-1.2.0.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-mobility/qt-mobility-1.2.0.ebuild,v 1.1 2011/11/10 23:16:04 pesa Exp $
+
+EAPI=4
+
+inherit multilib qt4-r2
+
+MY_P="${PN}-opensource-src-${PV}"
+
+DESCRIPTION="Additional Qt APIs for mobile devices and desktop platforms"
+HOMEPAGE="http://qt.nokia.com/products/qt-addons/mobility"
+SRC_URI="http://get.qt.nokia.com/qt/add-ons/${MY_P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# FIXME
+# Check possible automagic deps in:
+# - plugins/contacts/serviceactionmanager
+# - plugins/feedback/mmk
+
+QT_MOBILITY_MODULES="bearer connectivity contacts feedback gallery
+ location messaging multimedia organizer publishsubscribe
+ sensors serviceframework systeminfo versit"
+IUSE="bluetooth debug doc networkmanager opengl pulseaudio qml +tools
+ ${QT_MOBILITY_MODULES}"
+
+REQUIRED_USE="
+ versit? ( contacts )
+"
+
+RDEPEND="
+ >=x11-libs/qt-core-4.7.0:4
+ bearer? (
+ networkmanager? (
+ net-misc/networkmanager
+ >=x11-libs/qt-dbus-4.7.0:4
+ )
+ )
+ connectivity? (
+ bluetooth? ( net-wireless/bluez )
+ )
+ gallery? ( >=x11-libs/qt-dbus-4.7.0:4 )
+ location? (
+ >=x11-libs/qt-gui-4.7.0:4
+ >=x11-libs/qt-sql-4.7.0:4[sqlite]
+ )
+ messaging? ( net-libs/qmf )
+ multimedia? (
+ media-libs/alsa-lib
+ >=media-libs/gstreamer-0.10.19:0.10
+ >=media-libs/gst-plugins-base-0.10.19:0.10
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXv
+ >=x11-libs/qt-gui-4.7.0:4
+ opengl? ( >=x11-libs/qt-opengl-4.7.0:4 )
+ pulseaudio? ( media-sound/pulseaudio[alsa] )
+ )
+ publishsubscribe? (
+ tools? ( >=x11-libs/qt-gui-4.7.0:4 )
+ )
+ qml? ( >=x11-libs/qt-declarative-4.7.0:4 )
+ serviceframework? (
+ >=x11-libs/qt-dbus-4.7.0:4
+ >=x11-libs/qt-sql-4.7.0:4[sqlite]
+ tools? ( >=x11-libs/qt-gui-4.7.0:4 )
+ )
+ systeminfo? (
+ sys-apps/util-linux
+ sys-fs/udev
+ x11-libs/libX11
+ x11-libs/libXrandr
+ >=x11-libs/qt-dbus-4.7.0:4
+ >=x11-libs/qt-gui-4.7.0:4
+ bluetooth? ( net-wireless/bluez )
+ networkmanager? ( net-misc/networkmanager )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ multimedia? (
+ sys-kernel/linux-headers
+ x11-proto/videoproto
+ )
+ systeminfo? ( sys-kernel/linux-headers )
+"
+PDEPEND="
+ connectivity? (
+ bluetooth? ( app-mobilephone/obexd )
+ )
+ systeminfo? (
+ sys-fs/udisks
+ sys-power/upower
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+DOCS="changes-${PV}"
+
+pkg_setup() {
+ # figure out which modules to build
+ modules=
+ local m=( ${QT_MOBILITY_MODULES} )
+ for mod in ${m[@]#[+-]}; do
+ use ${mod} && modules+="${mod} "
+ done
+
+ if [[ -z ${modules} ]]; then
+ ewarn "At least one module must be selected for building, but you have selected none."
+ ewarn "The QtContacts module will be automatically enabled."
+ modules="contacts"
+ fi
+}
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ # translations aren't really translated: disable them
+ sed -i -e '/SUBDIRS +=/s:translations::' qtmobility.pro || die
+
+ # fix automagic dependency on qt-opengl
+ if ! use opengl; then
+ sed -i -e '/QT +=/s:opengl::' src/multimedia/multimedia.pro || die
+ fi
+ # fix automagic dependency on qt-declarative
+ if ! use qml; then
+ sed -i -e '/SUBDIRS += declarative/d' plugins/plugins.pro || die
+ fi
+}
+
+src_configure() {
+ if use messaging; then
+ # tell configure/qmake where QMF is installed
+ export QMF_INCLUDEDIR="${EPREFIX}"/usr/include/qt4/qmfclient
+ export QMF_LIBDIR="${EPREFIX}"/usr/$(get_libdir)/qt4
+ fi
+
+ # custom configure script
+ set -- ./configure -no-docs \
+ -prefix "${EPREFIX}/usr" \
+ -headerdir "${EPREFIX}/usr/include/qt4" \
+ -libdir "${EPREFIX}/usr/$(get_libdir)/qt4" \
+ -plugindir "${EPREFIX}/usr/$(get_libdir)/qt4/plugins" \
+ $(use debug && echo -debug || echo -release) \
+ $(use tools || echo -no-tools) \
+ -modules "${modules}"
+ echo "$@"
+ "$@" || die "configure failed"
+
+ # fix automagic dependency on bluez
+ if ! use bluetooth; then
+ sed -i -e '/^bluez_enabled =/s:yes:no:' config.pri || die
+ fi
+ # fix automagic dependency on networkmanager
+ if ! use networkmanager; then
+ sed -i -e '/^networkmanager_enabled =/s:yes:no:' config.pri || die
+ fi
+ # fix automagic dependency on pulseaudio
+ if ! use pulseaudio; then
+ sed -i -e '/^pulseaudio_enabled =/s:yes:no:' config.pri || die
+ fi
+
+ eqmake4 -recursive
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use doc; then
+ cd "${S}"/doc
+ dohtml -r html/*
+ insinto /usr/share/doc/${PF}
+ doins qch/qtmobility.qch
+ fi
+}