public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/qt:master commit in: net-libs/qmf/, net-libs/qmf/files/
@ 2012-04-04 10:46 Davide Pesavento
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Pesavento @ 2012-04-04 10:46 UTC (permalink / raw
  To: gentoo-commits

commit:     709e1d8a0bdf31d4711e00b3c4a17fe083ce1da6
Author:     Davide Pesavento <davidepesa <AT> gmail <DOT> com>
AuthorDate: Wed Apr  4 10:45:55 2012 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Wed Apr  4 10:45:55 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=709e1d8a

[net-libs/qmf] Update patch and change installation paths to follow upstream.

---
 net-libs/qmf/files/qmf-tests.patch                 |   18 ++
 .../qmf/files/qmf-use-standard-install-paths.patch |  275 --------------------
 net-libs/qmf/qmf-9999.ebuild                       |   47 ++--
 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 0000000..6262d19
--- /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 d387499..0000000
--- 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 7bfa02c..5323bc3 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/qt:master commit in: net-libs/qmf/, net-libs/qmf/files/
@ 2013-04-13 19:31 Davide Pesavento
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Pesavento @ 2013-04-13 19:31 UTC (permalink / raw
  To: gentoo-commits

commit:     74b5a74758064c7a7dd9c145c87fc9c99fb3ee05
Author:     Davide Pesavento <davidepesa <AT> gmail <DOT> com>
AuthorDate: Sat Apr 13 19:29:38 2013 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 19:29:38 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=74b5a747

[net-libs/qmf] Several updates to match current upstream git.

  o Make icu optional (\o/)
  o Make zlib optional
  o Update patch for tests
  o Qt >= 4.8 is now required

Package-Manager: portage-2.2.0_alpha173

---
 net-libs/qmf/files/qmf-tests.patch |   15 ++++---------
 net-libs/qmf/qmf-9999.ebuild       |   39 +++++++++++++++++++++++------------
 2 files changed, 30 insertions(+), 24 deletions(-)

diff --git a/net-libs/qmf/files/qmf-tests.patch b/net-libs/qmf/files/qmf-tests.patch
index 6262d19..38a7f4c 100644
--- a/net-libs/qmf/files/qmf-tests.patch
+++ b/net-libs/qmf/files/qmf-tests.patch
@@ -1,18 +1,13 @@
 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 @@
+--- qmf-9999.orig/tests/tests.pri	2013-04-13 12:05:32.323423194 -0700
++++ qmf-9999/tests/tests.pri	2013-04-13 12:09:25.068513480 -0700
+@@ -11,7 +11,8 @@
  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 @@
+-QMAKE_LFLAGS += -Wl,-rpath,$$QMFPATH
++QMAKE_LFLAGS += -Wl,-rpath,\\\$$ORIGIN/$$QMFPATH/build
  
  include(../common.pri)
  
 +DESTDIR =
-+

diff --git a/net-libs/qmf/qmf-9999.ebuild b/net-libs/qmf/qmf-9999.ebuild
index 8c18c01..ca2ac3b 100644
--- a/net-libs/qmf/qmf-9999.ebuild
+++ b/net-libs/qmf/qmf-9999.ebuild
@@ -21,24 +21,23 @@ HOMEPAGE="http://qt.gitorious.org/qt-labs/messagingframework"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS=""
-IUSE="debug doc examples test"
+IUSE="debug doc examples icu test zlib"
 
 RDEPEND="
-	dev-libs/icu:=
-	sys-libs/zlib
-	>=dev-qt/qtcore-4.6.0:4
-	>=dev-qt/qtgui-4.6.0:4
-	>=dev-qt/qtsql-4.6.0:4
-	examples? ( >=dev-qt/qtwebkit-4.6.0:4 )
+	>=dev-qt/qtcore-4.8:4
+	>=dev-qt/qtgui-4.8:4
+	>=dev-qt/qtsql-4.8:4
+	examples? ( >=dev-qt/qtwebkit-4.8:4 )
+	icu? ( dev-libs/icu:= )
+	zlib? ( sys-libs/zlib )
 "
 DEPEND="${RDEPEND}
 	virtual/pkgconfig
-	test? ( >=dev-qt/qttest-4.6.0:4 )
+	test? ( >=dev-qt/qttest-4.8:4 )
 	!!<net-libs/qmf-2.0_p201209
 "
 
-DOCS="CHANGES"
-
+DOCS=(CHANGES)
 PATCHES=(
 	"${FILESDIR}/${PN}-tests.patch"
 )
@@ -46,10 +45,6 @@ PATCHES=(
 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
@@ -57,6 +52,22 @@ src_prepare() {
 	if ! use examples; then
 		sed -i -e '/examples/d' messagingframework.pro || die
 	fi
+
+	# disable automagic deps
+	if ! use icu; then
+		sed -i -e 's/packagesExist(icu-uc)/false:&/' \
+			src/libraries/qmfclient/qmfclient.pro || die
+	fi
+	if ! use zlib; then
+		sed -i -e 's/packagesExist(zlib)/false:&/' \
+			src/plugins/messageservices/imap/imap.pro || die
+	fi
+
+	# fix libdir
+	find "${S}" -name '*.pro' -type f -print0 | xargs -0 \
+		sed -i -re "s:/lib(/|$):/$(get_libdir)\1:" || die
+	sed -i -e "s:/lib/:/$(get_libdir)/:" \
+		src/libraries/qmfclient/support/qmailnamespace.cpp || die
 }
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/qt:master commit in: net-libs/qmf/, net-libs/qmf/files/
@ 2013-07-01 10:13 Davide Pesavento
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Pesavento @ 2013-07-01 10:13 UTC (permalink / raw
  To: gentoo-commits

commit:     583a65c7e5e57f1d9f375b3662ecfa0fa0eca7e7
Author:     Davide Pesavento <davidepesa <AT> gmail <DOT> com>
AuthorDate: Mon Jul  1 10:14:17 2013 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Mon Jul  1 10:14:17 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=583a65c7

[net-libs/qmf] Sync with portage.

Package-Manager: portage-2.2.0_alpha186

---
 .../qmf/files/{qmf-tests.patch => qmf-4.0.2-tests.patch} |  0
 net-libs/qmf/qmf-9999.ebuild                             | 16 ++++++++--------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/net-libs/qmf/files/qmf-tests.patch b/net-libs/qmf/files/qmf-4.0.2-tests.patch
similarity index 100%
rename from net-libs/qmf/files/qmf-tests.patch
rename to net-libs/qmf/files/qmf-4.0.2-tests.patch

diff --git a/net-libs/qmf/qmf-9999.ebuild b/net-libs/qmf/qmf-9999.ebuild
index ca2ac3b..527c949 100644
--- a/net-libs/qmf/qmf-9999.ebuild
+++ b/net-libs/qmf/qmf-9999.ebuild
@@ -39,7 +39,7 @@ DEPEND="${RDEPEND}
 
 DOCS=(CHANGES)
 PATCHES=(
-	"${FILESDIR}/${PN}-tests.patch"
+	"${FILESDIR}/${PN}-4.0.2-tests.patch"
 )
 
 src_prepare() {
@@ -83,14 +83,14 @@ src_test() {
 	emake
 
 	einfo "Running tests"
-	export QMF_DATA="${T}"
+	export QMF_DATA=${T}
 	local fail=false test=
-	for test in locks longstream longstring python_email qcop qlogsystem \
-			qmailaddress qmailcodec qmaillog qmailmessage \
-			qmailmessagebody qmailmessageheader qmailmessagepart \
-			qmailnamespace qprivateimplementation; do
-		if ! LC_ALL=C ./tst_${test}/tst_${test}; then
-			eerror "'${test}' test failed!"
+	for test in tst_*; do
+		# skip test that requires messageserver to be running
+		[[ ${test} == tst_qmailstorageaction ]] && continue
+
+		if ! LC_ALL=C ./${test}/${test}; then
+			eerror "${test#tst_} test failed!"
 			fail=true
 		fi
 		echo


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-01 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 10:46 [gentoo-commits] proj/qt:master commit in: net-libs/qmf/, net-libs/qmf/files/ Davide Pesavento
  -- strict thread matches above, loose matches on Subject: below --
2013-04-13 19:31 Davide Pesavento
2013-07-01 10:13 Davide Pesavento

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox