diff options
author | Michael Palimaka <kensington@gentoo.org> | 2013-09-04 14:52:13 +0000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2013-09-04 14:52:13 +0000 |
commit | 87a7a89c1ac103bf47bd6a8f288a236c1f55a0ab (patch) | |
tree | 836ac9ab819ec809614ac49a3f09e806bd3b500d /dev-qt | |
parent | version bump (bug #483566, thx to ago) (diff) | |
download | gentoo-2-87a7a89c1ac103bf47bd6a8f288a236c1f55a0ab.tar.gz gentoo-2-87a7a89c1ac103bf47bd6a8f288a236c1f55a0ab.tar.bz2 gentoo-2-87a7a89c1ac103bf47bd6a8f288a236c1f55a0ab.zip |
New package wrt bug #441914.
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
Diffstat (limited to 'dev-qt')
7 files changed, 179 insertions, 0 deletions
diff --git a/dev-qt/qtsingleapplication/ChangeLog b/dev-qt/qtsingleapplication/ChangeLog new file mode 100644 index 000000000000..7707ca40e364 --- /dev/null +++ b/dev-qt/qtsingleapplication/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-qt/qtsingleapplication +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtsingleapplication/ChangeLog,v 1.1 2013/09/04 14:52:13 kensington Exp $ + +*qtsingleapplication-2.6.1 (04 Sep 2013) + + 04 Sep 2013; Michael Palimaka <kensington@gentoo.org> + +files/qtsingleapplication-2.6.1-examples.patch, + +files/qtsingleapplication-2.6.1-gcc47.patch, + +files/qtsingleapplication-2.6.1-unbundle.patch, + +files/qtsingleapplication.prf, +metadata.xml, + +qtsingleapplication-2.6.1.ebuild: + New package wrt bug #441914. diff --git a/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-examples.patch b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-examples.patch new file mode 100644 index 000000000000..079e3435b5aa --- /dev/null +++ b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-examples.patch @@ -0,0 +1,9 @@ +Do not build examples. + +--- qtsingleapplication.pro ++++ qtsingleapplication.pro +@@ -2,4 +2,3 @@ + CONFIG += ordered + include(common.pri) + qtsingleapplication-uselib:SUBDIRS=buildlib +-SUBDIRS+=examples diff --git a/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-gcc47.patch b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-gcc47.patch new file mode 100644 index 000000000000..003725e55ee8 --- /dev/null +++ b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-gcc47.patch @@ -0,0 +1,15 @@ +Fix build with GCC 4.7. + +Source: http://pkgs.fedoraproject.org/cgit/qtsingleapplication.git/tree/qtsingleapplication-gcc47.patch + +diff -rupN qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.cpp qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp +--- qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.cpp 2012-01-11 08:15:08.000000000 -0500 ++++ qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp 2012-01-11 08:17:36.874461946 -0500 +@@ -58,6 +58,7 @@ static PProcessIdToSessionId pProcessIdT + #endif + #if defined(Q_OS_UNIX) + #include <time.h> ++#include <unistd.h> + #endif + + const char* QtLocalPeer::ack = "ack"; diff --git a/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-unbundle.patch b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-unbundle.patch new file mode 100644 index 000000000000..ef94938b777e --- /dev/null +++ b/dev-qt/qtsingleapplication/files/qtsingleapplication-2.6.1-unbundle.patch @@ -0,0 +1,77 @@ +Do not bundle qtlockedfile. + +Original source: http://pkgs.fedoraproject.org/cgit/qtsingleapplication.git/tree/qtsingleapplication-dont-bundle-external-libs.patch + +diff -rupN qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.cpp qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp +--- qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.cpp 2009-12-16 05:43:33.000000000 -0500 ++++ qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp 2010-07-21 22:10:43.000000000 -0400 +@@ -59,15 +59,6 @@ static PProcessIdToSessionId pProcessIdT + #include <time.h> + #endif + +-namespace QtLP_Private { +-#include "qtlockedfile.cpp" +-#if defined(Q_OS_WIN) +-#include "qtlockedfile_win.cpp" +-#else +-#include "qtlockedfile_unix.cpp" +-#endif +-} +- + const char* QtLocalPeer::ack = "ack"; + + QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId) +@@ -118,7 +109,7 @@ bool QtLocalPeer::isClient() + if (lockFile.isLocked()) + return false; + +- if (!lockFile.lock(QtLP_Private::QtLockedFile::WriteLock, false)) ++ if (!lockFile.lock(QtLockedFile::WriteLock, false)) + return true; + + bool res = server->listen(socketName); +diff -rupN qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.h qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.h +--- qtsingleapplication-2.6_1-opensource.old/src/qtlocalpeer.h 2009-12-16 05:43:33.000000000 -0500 ++++ qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.h 2010-07-21 22:10:43.000000000 -0400 +@@ -49,9 +49,7 @@ + #include <QtNetwork/QLocalSocket> + #include <QtCore/QDir> + +-namespace QtLP_Private { + #include "qtlockedfile.h" +-} + + class QtLocalPeer : public QObject + { +@@ -74,7 +72,7 @@ protected: + QString id; + QString socketName; + QLocalServer* server; +- QtLP_Private::QtLockedFile lockFile; ++ QtLockedFile lockFile; + + private: + static const char* ack; +diff -rupN qtsingleapplication-2.6_1-opensource.old/src/qtsingleapplication.pri qtsingleapplication-2.6_1-opensource/src/qtsingleapplication.pri +--- qtsingleapplication-2.6_1-opensource.old/src/qtsingleapplication.pri 2009-12-16 05:43:33.000000000 -0500 ++++ qtsingleapplication-2.6_1-opensource/src/qtsingleapplication.pri 2010-07-21 22:11:08.000000000 -0400 +@@ -2,6 +2,8 @@ include(../common.pri) + INCLUDEPATH += $$PWD + DEPENDPATH += $$PWD + QT *= network ++CONFIG *= qtlockedfile ++LIBS+= -lQtSolutions_LockedFile-2.4 + + qtsingleapplication-uselib:!qtsingleapplication-buildlib { + LIBS += -L$$QTSINGLEAPPLICATION_LIBDIR -l$$QTSINGLEAPPLICATION_LIBNAME +--- a/src/qtsinglecoreapplication.pri ++++ b/src/qtsinglecoreapplication.pri +@@ -4,6 +4,8 @@ + SOURCES += $$PWD/qtsinglecoreapplication.cpp $$PWD/qtlocalpeer.cpp + + QT *= network ++CONFIG *= qtlockedfile ++LIBS+= -lQtSolutions_LockedFile-2.4 + + win32:contains(TEMPLATE, lib):contains(CONFIG, shared) { + DEFINES += QT_QTSINGLECOREAPPLICATION_EXPORT=__declspec(dllexport) diff --git a/dev-qt/qtsingleapplication/files/qtsingleapplication.prf b/dev-qt/qtsingleapplication/files/qtsingleapplication.prf new file mode 100644 index 000000000000..40335a1c345b --- /dev/null +++ b/dev-qt/qtsingleapplication/files/qtsingleapplication.prf @@ -0,0 +1,4 @@ +INCLUDEPATH *= $$QMAKE_INCDIR_QT/QtSolutions +DEPENDPATH *= $$QMAKE_INCDIR_QT/QtSolutions +LIBS *= -lQtSolutions_SingleApplication-2.6 +QT *= network diff --git a/dev-qt/qtsingleapplication/metadata.xml b/dev-qt/qtsingleapplication/metadata.xml new file mode 100644 index 000000000000..ab02f994fdd2 --- /dev/null +++ b/dev-qt/qtsingleapplication/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>qt</herd> +</pkgmetadata> diff --git a/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1.ebuild b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1.ebuild new file mode 100644 index 000000000000..78449b669ad5 --- /dev/null +++ b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1.ebuild,v 1.1 2013/09/04 14:52:13 kensington Exp $ + +EAPI=5 + +inherit qt4-r2 versionator + +MY_P="${PN}-$(replace_version_separator 2 _)-opensource" + +DESCRIPTION="Qt library to start applications only once per user" +HOMEPAGE="http://doc.qt.digia.com/solutions/4/qtsingleapplication/index.html" +SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${MY_P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 GPL-3 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +DEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}/${P}-examples.patch" + "${FILESDIR}/${P}-gcc47.patch" + "${FILESDIR}/${P}-unbundle.patch" +) + +src_prepare() { + qt4-r2_src_prepare + + # to ensure unbundling + rm src/qtlockedfile* +} + +src_configure() { + eqmake4 CONFIG+=qtsingleapplication-uselib +} + +src_install() { + dolib.so lib/* + insinto /usr/include/qt4/QtSolutions/ + doins src/QtSingleApplication src/${PN}.h + + insinto /usr/share/qt4/mkspecs/features/ + doins "${FILESDIR}/${PN}.prf" + + if use doc ; then + dodoc -r examples + dodoc doc/index.qdoc + dohtml -r doc/html/ doc/images + fi +} |