aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <davidepesa@gmail.com>2012-04-04 12:45:55 +0200
committerDavide Pesavento <davidepesa@gmail.com>2012-04-04 12:45:55 +0200
commit709e1d8a0bdf31d4711e00b3c4a17fe083ce1da6 (patch)
tree9c3cf66ec6a6a2f4656f25fe3c0e9517636f93d3 /net-libs
parentx11-wm/razorqt: unbundle xdg-utils, bug #409025 (diff)
downloadqt-709e1d8a0bdf31d4711e00b3c4a17fe083ce1da6.tar.gz
qt-709e1d8a0bdf31d4711e00b3c4a17fe083ce1da6.tar.bz2
qt-709e1d8a0bdf31d4711e00b3c4a17fe083ce1da6.zip
[net-libs/qmf] Update patch and change installation paths to follow upstream.
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/qmf/files/qmf-tests.patch18
-rw-r--r--net-libs/qmf/files/qmf-use-standard-install-paths.patch275
-rw-r--r--net-libs/qmf/qmf-9999.ebuild47
3 files changed, 46 insertions, 294 deletions
diff --git a/net-libs/qmf/files/qmf-tests.patch b/net-libs/qmf/files/qmf-tests.patch
new file mode 100644
index 00000000..6262d192
--- /dev/null
+++ b/net-libs/qmf/files/qmf-tests.patch
@@ -0,0 +1,18 @@
+diff -Naur qmf-9999.orig/tests/tests.pri qmf-9999/tests/tests.pri
+--- qmf-9999.orig/tests/tests.pri 2012-04-04 01:56:41.220535387 +0200
++++ qmf-9999/tests/tests.pri 2012-04-04 01:57:11.031162699 +0200
+@@ -11,7 +11,7 @@
+ INCLUDEPATH += . $$QMFPATH $$QMFPATH/support
+ LIBS += -L$$QMFPATH/build
+ macx:LIBS += -F$$QMFPATH/build
+-!symbian:QMAKE_LFLAGS += -Wl,-rpath,$$QMFPATH
++!symbian:QMAKE_LFLAGS += -Wl,-rpath,\\\$$ORIGIN/$$QMFPATH/build
+
+ symbian {
+ TARGET.CAPABILITY = ReadUserData WriteUserData ReadDeviceData WriteDeviceData
+@@ -19,3 +19,5 @@
+
+ include(../common.pri)
+
++DESTDIR =
++
diff --git a/net-libs/qmf/files/qmf-use-standard-install-paths.patch b/net-libs/qmf/files/qmf-use-standard-install-paths.patch
deleted file mode 100644
index d387499f..00000000
--- a/net-libs/qmf/files/qmf-use-standard-install-paths.patch
+++ /dev/null
@@ -1,275 +0,0 @@
-diff -Naur qmf-9999.orig/benchmarks/tst_messageserver/tst_messageserver.pro qmf-9999/benchmarks/tst_messageserver/tst_messageserver.pro
---- qmf-9999.orig/benchmarks/tst_messageserver/tst_messageserver.pro 2011-10-28 00:16:42.818798066 +0200
-+++ qmf-9999/benchmarks/tst_messageserver/tst_messageserver.pro 2011-10-28 00:16:58.461602502 +0200
-@@ -3,7 +3,7 @@
- CONFIG += qmfmessageserver qmfclient
-
- TARGET = tst_messageserver
--target.path += $$QMF_INSTALL_ROOT/tests
-+target.path += $$[QT_INSTALL_DATA]/tests
-
- BASE=../../
- include($$BASE/common.pri)
-diff -Naur qmf-9999.orig/examples/listfilterplugin/listfilterplugin.pro qmf-9999/examples/listfilterplugin/listfilterplugin.pro
---- qmf-9999.orig/examples/listfilterplugin/listfilterplugin.pro 2011-10-28 00:16:42.863797501 +0200
-+++ qmf-9999/examples/listfilterplugin/listfilterplugin.pro 2011-10-28 00:16:58.461602503 +0200
-@@ -3,7 +3,7 @@
- CONFIG += qmfclient plugin
- QT = core
-
--target.path += $$QMF_INSTALL_ROOT/plugins/contentmanagers
-+target.path += $$[QT_INSTALL_PLUGINS]/contentmanagers
-
- DEFINES += PLUGIN_INTERNAL
-
-diff -Naur qmf-9999.orig/examples/messagingaccounts/messagingaccounts.pro qmf-9999/examples/messagingaccounts/messagingaccounts.pro
---- qmf-9999.orig/examples/messagingaccounts/messagingaccounts.pro 2011-10-28 00:16:42.907796951 +0200
-+++ qmf-9999/examples/messagingaccounts/messagingaccounts.pro 2011-10-28 00:16:58.461602503 +0200
-@@ -1,6 +1,6 @@
- TEMPLATE = app
- TARGET = messagingaccounts
--target.path += $$QMF_INSTALL_ROOT/bin
-+target.path += $$[QT_INSTALL_BINS]
- CONFIG += qmfclient qmfmessageserver
-
- DEPENDPATH += .
-diff -Naur qmf-9999.orig/examples/qtmail/app/app.pro qmf-9999/examples/qtmail/app/app.pro
---- qmf-9999.orig/examples/qtmail/app/app.pro 2011-10-28 00:16:42.875797352 +0200
-+++ qmf-9999/examples/qtmail/app/app.pro 2011-10-28 00:16:58.461602503 +0200
-@@ -1,7 +1,7 @@
- TEMPLATE = app
- TARGET = qtmail
- CONFIG += qmfutil qmfclient qmfmessageserver
--target.path += $$QMF_INSTALL_ROOT/bin
-+target.path += $$[QT_INSTALL_BINS]
-
- DEPENDPATH += .
-
-diff -Naur qmf-9999.orig/examples/qtmail/libs/qmfutil/qmfutil.pro qmf-9999/examples/qtmail/libs/qmfutil/qmfutil.pro
---- qmf-9999.orig/examples/qtmail/libs/qmfutil/qmfutil.pro 2011-10-28 00:16:42.905796975 +0200
-+++ qmf-9999/examples/qtmail/libs/qmfutil/qmfutil.pro 2011-10-28 00:16:58.461602503 +0200
-@@ -3,7 +3,7 @@
- CONFIG += qmfclient
- TARGET = qmfutil
-
--target.path += $$QMF_INSTALL_ROOT/lib
-+target.path += $$[QT_INSTALL_LIBS]
-
- DEFINES += QMFUTIL_INTERNAL
-
-diff -Naur qmf-9999.orig/examples/qtmail/plugins/composers/email/email.pro qmf-9999/examples/qtmail/plugins/composers/email/email.pro
---- qmf-9999.orig/examples/qtmail/plugins/composers/email/email.pro 2011-10-28 00:16:42.865797477 +0200
-+++ qmf-9999/examples/qtmail/plugins/composers/email/email.pro 2011-10-28 00:16:58.462602491 +0200
-@@ -2,7 +2,7 @@
- TARGET = emailcomposer
- CONFIG += qmfclient qmfutil plugin
-
--target.path += $$QMF_INSTALL_ROOT/plugins/composers
-+target.path += $$[QT_INSTALL_PLUGINS]/composers
-
- DEFINES += PLUGIN_INTERNAL
-
-diff -Naur qmf-9999.orig/examples/qtmail/plugins/viewers/generic/generic.pro qmf-9999/examples/qtmail/plugins/viewers/generic/generic.pro
---- qmf-9999.orig/examples/qtmail/plugins/viewers/generic/generic.pro 2011-10-28 00:16:42.866797465 +0200
-+++ qmf-9999/examples/qtmail/plugins/viewers/generic/generic.pro 2011-10-28 00:16:58.462602491 +0200
-@@ -2,7 +2,7 @@
- TARGET = genericviewer
- CONFIG += qmfclient qmfutil plugin
-
--target.path += $$QMF_INSTALL_ROOT/plugins/viewers
-+target.path += $$[QT_INSTALL_PLUGINS]/viewers
-
- # Use webkit to render mail if available
- contains(QT_CONFIG,webkit){
-diff -Naur qmf-9999.orig/examples/serverobserver/serverobserver.pro qmf-9999/examples/serverobserver/serverobserver.pro
---- qmf-9999.orig/examples/serverobserver/serverobserver.pro 2011-10-28 00:16:42.863797501 +0200
-+++ qmf-9999/examples/serverobserver/serverobserver.pro 2011-10-28 00:16:58.462602491 +0200
-@@ -1,6 +1,6 @@
- TEMPLATE = app
- TARGET = serverobserver
--target.path += $$QMF_INSTALL_ROOT/bin
-+target.path += $$[QT_INSTALL_BINS]
- CONFIG += qmfclient qmfmessageserver
-
- DEPENDPATH += .
-diff -Naur qmf-9999.orig/src/libraries/qmfclient/qmfclient.pro qmf-9999/src/libraries/qmfclient/qmfclient.pro
---- qmf-9999.orig/src/libraries/qmfclient/qmfclient.pro 2011-10-28 00:16:42.839797803 +0200
-+++ qmf-9999/src/libraries/qmfclient/qmfclient.pro 2011-10-28 00:16:58.463602479 +0200
-@@ -4,8 +4,7 @@
- INSTALLS += target
- CONFIG += link_pkgconfig
-
--simulator:macx:target.path += $$QMF_INSTALL_ROOT/Library/Frameworks
--else:target.path += $$QMF_INSTALL_ROOT/lib
-+target.path += $$[QT_INSTALL_LIBS]
-
- DEFINES += QT_BUILD_QCOP_LIB QMF_INTERNAL
- win32: {
-@@ -221,7 +220,7 @@
- libqtopiamail-zh_CN.ts \
- libqtopiamail-zh_TW.ts
-
--header_files.path=$$QMF_INSTALL_ROOT/include/qmfclient
-+header_files.path=$$[QT_INSTALL_HEADERS]/qmfclient
- header_files.files=$$PUBLIC_HEADERS
-
- INSTALLS += header_files
-@@ -236,7 +235,7 @@
- CONFIG += create_pc create_prl
- QMAKE_PKGCONFIG_LIBDIR = $$target.path
- QMAKE_PKGCONFIG_INCDIR = $$header_files.path
-- QMAKE_PKGCONFIG_DESTDIR = pkgconfig
-+ QMAKE_PKGCONFIG_DESTDIR = ../pkgconfig
- LIBS += -licui18n -licuuc -licudata
- PRIVATE_HEADERS += support/qcharsetdetector_p.h \
- support/qcharsetdetector.h
-diff -Naur qmf-9999.orig/src/libraries/qmfmessageserver/qmfmessageserver.pro qmf-9999/src/libraries/qmfmessageserver/qmfmessageserver.pro
---- qmf-9999.orig/src/libraries/qmfmessageserver/qmfmessageserver.pro 2011-10-28 00:16:42.862797514 +0200
-+++ qmf-9999/src/libraries/qmfmessageserver/qmfmessageserver.pro 2011-10-28 00:16:58.463602479 +0200
-@@ -3,7 +3,7 @@
- CONFIG += qmfclient
- TARGET = qmfmessageserver
-
--target.path += $$QMF_INSTALL_ROOT/lib
-+target.path += $$[QT_INSTALL_LIBS]
-
- QT = core network
- !contains(DEFINES,QMF_NO_MESSAGE_SERVICE_EDITOR):QT += gui
-@@ -48,7 +48,7 @@
- qmailtransport.cpp \
- qmailheartbeattimer_qtimer.cpp # NB: There are multiple implementations
-
--header_files.path=$$QMF_INSTALL_ROOT/include/qmfmessageserver
-+header_files.path=$$[QT_INSTALL_HEADERS]/qmfmessageserver
- header_files.files=$$PUBLIC_HEADERS
-
- INSTALLS += header_files
-@@ -57,6 +57,6 @@
- CONFIG += create_pc create_prl
- QMAKE_PKGCONFIG_LIBDIR = $$target.path
- QMAKE_PKGCONFIG_INCDIR = $$header_files.path
-- QMAKE_PKGCONFIG_DESTDIR = pkgconfig
-+ QMAKE_PKGCONFIG_DESTDIR = ../pkgconfig
- }
- include(../../../common.pri)
-diff -Naur qmf-9999.orig/src/plugins/contentmanagers/qmfstoragemanager/qmfstoragemanager.pro qmf-9999/src/plugins/contentmanagers/qmfstoragemanager/qmfstoragemanager.pro
---- qmf-9999.orig/src/plugins/contentmanagers/qmfstoragemanager/qmfstoragemanager.pro 2011-10-28 00:16:42.831797902 +0200
-+++ qmf-9999/src/plugins/contentmanagers/qmfstoragemanager/qmfstoragemanager.pro 2011-10-28 00:16:58.463602479 +0200
-@@ -3,7 +3,7 @@
- CONFIG += qmfclient plugin
- QT = core
-
--target.path += $$QMF_INSTALL_ROOT/plugins/contentmanagers
-+target.path += $$[QT_INSTALL_PLUGINS]/contentmanagers
-
- DEFINES += PLUGIN_INTERNAL
-
-diff -Naur qmf-9999.orig/src/plugins/messageservices/imap/imap.pro qmf-9999/src/plugins/messageservices/imap/imap.pro
---- qmf-9999.orig/src/plugins/messageservices/imap/imap.pro 2011-10-28 00:16:42.824797989 +0200
-+++ qmf-9999/src/plugins/messageservices/imap/imap.pro 2011-10-28 00:16:58.463602479 +0200
-@@ -2,7 +2,7 @@
- TARGET = imap
- CONFIG += qmfmessageserver qmfclient plugin
-
--target.path += $$QMF_INSTALL_ROOT/plugins/messageservices
-+target.path += $$[QT_INSTALL_PLUGINS]/messageservices
-
- QT += core network
-
-diff -Naur qmf-9999.orig/src/plugins/messageservices/pop/pop.pro qmf-9999/src/plugins/messageservices/pop/pop.pro
---- qmf-9999.orig/src/plugins/messageservices/pop/pop.pro 2011-10-28 00:16:42.829797928 +0200
-+++ qmf-9999/src/plugins/messageservices/pop/pop.pro 2011-10-28 00:16:58.464602466 +0200
-@@ -2,7 +2,7 @@
- TARGET = pop
- CONFIG += qmfclient qmfmessageserver plugin
-
--target.path = $$QMF_INSTALL_ROOT/plugins/messageservices
-+target.path = $$[QT_INSTALL_PLUGINS]/messageservices
-
- QT = core network
-
-diff -Naur qmf-9999.orig/src/plugins/messageservices/qmfsettings/qmfsettings.pro qmf-9999/src/plugins/messageservices/qmfsettings/qmfsettings.pro
---- qmf-9999.orig/src/plugins/messageservices/qmfsettings/qmfsettings.pro 2011-10-28 00:16:42.827797953 +0200
-+++ qmf-9999/src/plugins/messageservices/qmfsettings/qmfsettings.pro 2011-10-28 00:16:58.464602466 +0200
-@@ -2,7 +2,7 @@
- TARGET = qmfsettings
- CONFIG += qmfclient qmfmessageserver plugin
-
--target.path += $$QMF_INSTALL_ROOT/plugins/messageservices
-+target.path += $$[QT_INSTALL_PLUGINS]/messageservices
-
- QT = core network
-
-diff -Naur qmf-9999.orig/src/plugins/messageservices/smtp/smtp.pro qmf-9999/src/plugins/messageservices/smtp/smtp.pro
---- qmf-9999.orig/src/plugins/messageservices/smtp/smtp.pro 2011-10-28 00:16:42.826797965 +0200
-+++ qmf-9999/src/plugins/messageservices/smtp/smtp.pro 2011-10-28 00:16:58.464602466 +0200
-@@ -3,7 +3,7 @@
-
- CONFIG += qmfclient qmfmessageserver plugin
-
--target.path += $$QMF_INSTALL_ROOT/plugins/messageservices
-+target.path += $$[QT_INSTALL_PLUGINS]/messageservices
-
- QT = core network
-
-diff -Naur qmf-9999.orig/src/tools/messageserver/messageserver.pro qmf-9999/src/tools/messageserver/messageserver.pro
---- qmf-9999.orig/src/tools/messageserver/messageserver.pro 2011-10-28 00:16:42.832797889 +0200
-+++ qmf-9999/src/tools/messageserver/messageserver.pro 2011-10-28 00:16:58.464602466 +0200
-@@ -14,7 +14,7 @@
- QT = core
- !contains(DEFINES,QMF_NO_MESSAGE_SERVICE_EDITOR):QT += gui
-
--target.path += $$QMF_INSTALL_ROOT/bin
-+target.path += $$[QT_INSTALL_BINS]
-
- DEPENDPATH += .
-
-diff -Naur qmf-9999.orig/tests/tests.pri qmf-9999/tests/tests.pri
---- qmf-9999.orig/tests/tests.pri 2011-10-28 00:16:42.804798239 +0200
-+++ qmf-9999/tests/tests.pri 2011-10-28 00:17:11.873434831 +0200
-@@ -4,14 +4,14 @@
- QMAKE_MACOSX_DEPLOYMENT_TARGET=10.5
- }
-
--target.path+=$$QMF_INSTALL_ROOT/tests
-+target.path+=$$[QT_INSTALL_DATA]/tests
-
- QMFPATH=../../src/libraries/qmfclient
- DEPENDPATH += .
- INCLUDEPATH += . $$QMFPATH $$QMFPATH/support
- LIBS += -L$$QMFPATH/build
- macx:LIBS += -F$$QMFPATH/build
--!symbian:QMAKE_LFLAGS += -Wl,-rpath,$$QMFPATH
-+!symbian:QMAKE_LFLAGS += -Wl,-rpath,\\\$$ORIGIN/$$QMFPATH/build
-
- symbian {
- TARGET.CAPABILITY = ReadUserData WriteUserData ReadDeviceData WriteDeviceData
-@@ -19,3 +19,5 @@
-
- include(../common.pri)
-
-+DESTDIR =
-+
-diff -Naur qmf-9999.orig/tests/tests.pro qmf-9999/tests/tests.pro
---- qmf-9999.orig/tests/tests.pro 2011-10-28 00:16:42.807798203 +0200
-+++ qmf-9999/tests/tests.pro 2011-10-28 00:16:58.465602453 +0200
-@@ -31,6 +31,6 @@
-
- # Install test file description
- test_description.files = tests.xml
--test_description.path = $$QMF_INSTALL_ROOT/tests
-+test_description.path = $$[QT_INSTALL_DATA]/tests
-
- INSTALLS += test_description
-diff -Naur qmf-9999.orig/tests/tst_python_email/tst_python_email.pro qmf-9999/tests/tst_python_email/tst_python_email.pro
---- qmf-9999.orig/tests/tst_python_email/tst_python_email.pro 2011-10-28 00:16:42.812798139 +0200
-+++ qmf-9999/tests/tst_python_email/tst_python_email.pro 2011-10-28 00:16:58.476602315 +0200
-@@ -5,7 +5,7 @@
- !symbian {
- DEFINES += SRCDIR=\\\"$$_PRO_FILE_PWD_\\\"
-
-- testdata.path = $$QMF_INSTALL_ROOT/tests/testdata
-+ testdata.path = $$[QT_INSTALL_DATA]/tests/testdata
- testdata.files = testdata/*
-
- INSTALLS += testdata
diff --git a/net-libs/qmf/qmf-9999.ebuild b/net-libs/qmf/qmf-9999.ebuild
index 7bfa02cb..5323bc3c 100644
--- a/net-libs/qmf/qmf-9999.ebuild
+++ b/net-libs/qmf/qmf-9999.ebuild
@@ -1,23 +1,20 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
-if [[ ${PV} == *9999 ]]; then
+inherit qt4-r2
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
EGIT_REPO_URI="git://gitorious.org/qt-labs/messagingframework.git
https://git.gitorious.org/qt-labs/messagingframework.git"
- SCM_ECLASS="git-2"
- SRC_URI=
else
- YYYYWW="${PV#*_p}"
- TAG="${YYYYWW:0:4}W${YYYYWW:4:2}"
- SRC_URI="http://qt.gitorious.org/qt-labs/messagingframework/archive-tarball/${TAG} -> ${P}.tar.gz"
- S="${WORKDIR}/qt-labs-messagingframework"
+ SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${P}.tar.gz"
+ S=${WORKDIR}/qt-labs-messagingframework
fi
-inherit qt4-r2 ${SCM_ECLASS}
-
DESCRIPTION="The Qt Messaging Framework"
HOMEPAGE="http://qt.gitorious.org/qt-labs/messagingframework"
@@ -29,24 +26,30 @@ IUSE="debug doc examples test"
RDEPEND="
dev-libs/icu
sys-libs/zlib
- >=x11-libs/qt-gui-4.6.0
- >=x11-libs/qt-sql-4.6.0
- examples? ( >=x11-libs/qt-webkit-4.6.0 )
+ >=x11-libs/qt-core-4.6.0:4
+ >=x11-libs/qt-gui-4.6.0:4
+ >=x11-libs/qt-sql-4.6.0:4
+ examples? ( >=x11-libs/qt-webkit-4.6.0:4 )
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
- test? ( >=x11-libs/qt-test-4.6.0 )
+ test? ( >=x11-libs/qt-test-4.6.0:4 )
+ !!<net-libs/qmf-2.0_p201209
"
DOCS="CHANGES"
+
PATCHES=(
- # http://bugreports.qt.nokia.com/browse/QTMOBILITY-374
- "${FILESDIR}/${PN}-use-standard-install-paths.patch"
+ "${FILESDIR}/${PN}-tests.patch"
)
src_prepare() {
qt4-r2_src_prepare
+ # fix libdir
+ find "${S}" -name '*.pro' -type f -print0 | xargs -0 \
+ sed -i -re "s:/lib(/|$):/$(get_libdir)\1:" || die
+
sed -i -e '/benchmarks/d' \
-e '/tests/d' \
messagingframework.pro || die
@@ -56,17 +59,22 @@ src_prepare() {
fi
}
+src_configure() {
+ eqmake4 QMF_INSTALL_ROOT="${EPREFIX}/usr"
+}
+
src_test() {
echo ">>> Test phase [QTest]: ${CATEGORY}/${PF}"
cd "${S}"/tests
einfo "Building tests"
- eqmake4 && emake
+ eqmake4 QMF_INSTALL_ROOT="${EPREFIX}/usr"
+ emake
einfo "Running tests"
export QMF_DATA="${T}"
local fail=false test=
- for test in locks longstream longstring python_email qlogsystem \
+ for test in locks longstream longstring python_email qcop qlogsystem \
qmailaddress qmailcodec qmaillog qmailmessage \
qmailmessagebody qmailmessageheader qmailmessagepart \
qmailnamespace qprivateimplementation; do
@@ -83,8 +91,9 @@ src_install() {
qt4-r2_src_install
if use doc; then
+ emake docs
+
dohtml -r doc/html/*
- emake qch_docs
dodoc doc/html/qmf.qch
docompress -x /usr/share/doc/${PF}/qmf.qch
fi