summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2012-01-12 00:27:24 +0000
committerJeremy Olexa <darkside@gentoo.org>2012-01-12 00:27:24 +0000
commitd7660ac07b520c59ad20dcf67d6311c9e081b1ab (patch)
tree3d9e3d126a008ce64667b806a5b352138f251205 /x11-misc
parentRevision bump. Add patch to fix compatibility with >=app-cdr/cdemud-1.4.0. Th... (diff)
downloadgentoo-2-d7660ac07b520c59ad20dcf67d6311c9e081b1ab.tar.gz
gentoo-2-d7660ac07b520c59ad20dcf67d6311c9e081b1ab.tar.bz2
gentoo-2-d7660ac07b520c59ad20dcf67d6311c9e081b1ab.zip
Revbump to fix clipboard issue, bug 397549 by Patrick
(Portage version: 2.1.10.41/cvs/Linux i686)
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/synergy/ChangeLog9
-rw-r--r--x11-misc/synergy/files/synergy-1.4.5-clipboard-fix.patch727
-rw-r--r--x11-misc/synergy/synergy-1.4.5-r2.ebuild (renamed from x11-misc/synergy/synergy-1.4.5-r1.ebuild)5
-rw-r--r--x11-misc/synergy/synergy-1.4.5.ebuild72
4 files changed, 738 insertions, 75 deletions
diff --git a/x11-misc/synergy/ChangeLog b/x11-misc/synergy/ChangeLog
index ab9fc8eebe9b..18f0a9304f43 100644
--- a/x11-misc/synergy/ChangeLog
+++ b/x11-misc/synergy/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-misc/synergy
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/ChangeLog,v 1.73 2012/01/04 20:48:41 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/ChangeLog,v 1.74 2012/01/12 00:27:24 darkside Exp $
+
+*synergy-1.4.5-r2 (12 Jan 2012)
+
+ 12 Jan 2012; Jeremy Olexa <darkside@gentoo.org> -synergy-1.4.5.ebuild,
+ -synergy-1.4.5-r1.ebuild, +synergy-1.4.5-r2.ebuild,
+ +files/synergy-1.4.5-clipboard-fix.patch:
+ Revbump to fix clipboard issue, bug 397549 by Patrick
04 Jan 2012; Brent Baude <ranger@gentoo.org> synergy-1.3.6.ebuild:
Marking synergy-1.3.6 ppc for bug 391393
diff --git a/x11-misc/synergy/files/synergy-1.4.5-clipboard-fix.patch b/x11-misc/synergy/files/synergy-1.4.5-clipboard-fix.patch
new file mode 100644
index 000000000000..3681f248afac
--- /dev/null
+++ b/x11-misc/synergy/files/synergy-1.4.5-clipboard-fix.patch
@@ -0,0 +1,727 @@
+https://bugs.gentoo.org/show_bug.cgi?id=397549
+http://synergy-foss.org/tracker/issues/3066
+
+diff -urN synergy-1.4.5-Source.orig/src/lib/arch/CArch.cpp synergy-1.4.5-Source/src/lib/arch/CArch.cpp
+--- synergy-1.4.5-Source.orig/src/lib/arch/CArch.cpp 2011-05-08 20:08:58.000000000 -0400
++++ synergy-1.4.5-Source/src/lib/arch/CArch.cpp 2012-01-03 16:31:35.201750077 -0500
+@@ -130,6 +130,7 @@
+ m_log = new ARCH_LOG;
+ m_net = new ARCH_NETWORK;
+ m_sleep = new ARCH_SLEEP;
++ initArchString();
+ m_string = new ARCH_STRING;
+ m_time = new ARCH_TIME;
+ m_console = new ARCH_CONSOLE;
+diff -urN synergy-1.4.5-Source.orig/src/lib/arch/CArch.cpp.orig synergy-1.4.5-Source/src/lib/arch/CArch.cpp.orig
+--- synergy-1.4.5-Source.orig/src/lib/arch/CArch.cpp.orig 1969-12-31 19:00:00.000000000 -0500
++++ synergy-1.4.5-Source/src/lib/arch/CArch.cpp.orig 2011-05-08 20:08:58.000000000 -0400
+@@ -0,0 +1,681 @@
++/*
++ * synergy -- mouse and keyboard sharing utility
++ * Copyright (C) 2002 Chris Schoeneman, Nick Bolton, Sorin Sbarnea
++ *
++ * This package is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * found in the file COPYING that should have accompanied this file.
++ *
++ * This package is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program. If not, see <http://www.gnu.org/licenses/>.
++ */
++
++#include "common.h"
++#include "CArch.h"
++#include "CLog.h"
++
++#undef ARCH_CONSOLE
++#undef ARCH_DAEMON
++#undef ARCH_FILE
++#undef ARCH_LOG
++#undef ARCH_MULTITHREAD
++#undef ARCH_NETWORK
++#undef ARCH_SLEEP
++#undef ARCH_STRING
++#undef ARCH_SYSTEM
++#undef ARCH_TASKBAR
++#undef ARCH_TIME
++
++// include appropriate architecture implementation
++#if SYSAPI_WIN32
++# include "CArchConsoleWindows.h"
++# include "CArchDaemonWindows.h"
++# include "CArchFileWindows.h"
++# include "CArchLogWindows.h"
++# include "CArchMiscWindows.h"
++# include "CArchMultithreadWindows.h"
++# include "CArchNetworkWinsock.h"
++# include "CArchSleepWindows.h"
++# include "CArchStringWindows.h"
++# include "CArchSystemWindows.h"
++# include "CArchTaskBarWindows.h"
++# include "CArchTimeWindows.h"
++# include "CArchAppUtilWindows.h"
++#elif SYSAPI_UNIX
++# include "CArchConsoleUnix.h"
++# include "CArchDaemonUnix.h"
++# include "CArchFileUnix.h"
++# include "CArchLogUnix.h"
++# if HAVE_PTHREAD
++# include "CArchMultithreadPosix.h"
++# endif
++# include "CArchNetworkBSD.h"
++# include "CArchSleepUnix.h"
++# include "CArchStringUnix.h"
++# include "CArchSystemUnix.h"
++# include "CArchTaskBarXWindows.h"
++# include "CArchTimeUnix.h"
++# include "CArchAppUtilUnix.h"
++#endif
++
++#if !defined(ARCH_CONSOLE)
++# error unsupported platform for console
++#endif
++
++#if !defined(ARCH_DAEMON)
++# error unsupported platform for daemon
++#endif
++
++#if !defined(ARCH_FILE)
++# error unsupported platform for file
++#endif
++
++#if !defined(ARCH_LOG)
++# error unsupported platform for logging
++#endif
++
++#if !defined(ARCH_MULTITHREAD)
++# error unsupported platform for multithreading
++#endif
++
++#if !defined(ARCH_NETWORK)
++# error unsupported platform for network
++#endif
++
++#if !defined(ARCH_SLEEP)
++# error unsupported platform for sleep
++#endif
++
++#if !defined(ARCH_STRING)
++# error unsupported platform for string
++#endif
++
++#if !defined(ARCH_SYSTEM)
++# error unsupported platform for system
++#endif
++
++#if !defined(ARCH_TASKBAR)
++# error unsupported platform for taskbar
++#endif
++
++#if !defined(ARCH_TIME)
++# error unsupported platform for time
++#endif
++
++#if !defined(ARCH_APPUTIL)
++# error unsupported platform for app util
++#endif
++
++//
++// CArch
++//
++
++CArch* CArch::s_instance = NULL;
++
++CArch::CArch()
++{
++ // only once instance of CArch
++ assert(s_instance == NULL);
++ s_instance = this;
++
++ // create architecture implementation objects
++ m_mt = new ARCH_MULTITHREAD;
++ m_system = new ARCH_SYSTEM;
++ m_file = new ARCH_FILE;
++ m_log = new ARCH_LOG;
++ m_net = new ARCH_NETWORK;
++ m_sleep = new ARCH_SLEEP;
++ m_string = new ARCH_STRING;
++ m_time = new ARCH_TIME;
++ m_console = new ARCH_CONSOLE;
++ m_daemon = new ARCH_DAEMON;
++ m_taskbar = new ARCH_TASKBAR;
++ m_appUtil = new ARCH_APPUTIL;
++
++#if SYSAPI_WIN32
++ CArchMiscWindows::init();
++#endif
++}
++
++CArch::~CArch()
++{
++ // clean up
++ delete m_taskbar;
++ delete m_daemon;
++ delete m_console;
++ delete m_time;
++ delete m_string;
++ delete m_sleep;
++ delete m_net;
++ delete m_log;
++ delete m_file;
++ delete m_system;
++ delete m_mt;
++ delete m_appUtil;
++
++ // no instance
++ s_instance = NULL;
++}
++
++CArch*
++CArch::getInstance()
++{
++ assert(s_instance != NULL);
++
++ return s_instance;
++}
++
++void
++CArch::openConsole(const char* title)
++{
++ m_console->openConsole(title);
++}
++
++void
++CArch::closeConsole()
++{
++ m_console->closeConsole();
++}
++
++void
++CArch::showConsole(bool showIfEmpty)
++{
++ m_console->showConsole(showIfEmpty);
++}
++
++void
++CArch::writeConsole(ELevel level, const char* str)
++{
++ m_console->writeConsole(level, str);
++}
++
++void
++CArch::installDaemon(const char* name,
++ const char* description,
++ const char* pathname,
++ const char* commandLine,
++ const char* dependencies,
++ bool allUsers)
++{
++ m_daemon->installDaemon(name, description, pathname,
++ commandLine, dependencies, allUsers);
++}
++
++void
++CArch::uninstallDaemon(const char* name, bool allUsers)
++{
++ m_daemon->uninstallDaemon(name, allUsers);
++}
++
++int
++CArch::daemonize(const char* name, DaemonFunc func)
++{
++ return m_daemon->daemonize(name, func);
++}
++
++bool
++CArch::canInstallDaemon(const char* name, bool allUsers)
++{
++ return m_daemon->canInstallDaemon(name, allUsers);
++}
++
++bool
++CArch::isDaemonInstalled(const char* name, bool allUsers)
++{
++ return m_daemon->isDaemonInstalled(name, allUsers);
++}
++
++const char*
++CArch::getBasename(const char* pathname)
++{
++ return m_file->getBasename(pathname);
++}
++
++std::string
++CArch::getUserDirectory()
++{
++ return m_file->getUserDirectory();
++}
++
++std::string
++CArch::getSystemDirectory()
++{
++ return m_file->getSystemDirectory();
++}
++
++std::string
++CArch::concatPath(const std::string& prefix, const std::string& suffix)
++{
++ return m_file->concatPath(prefix, suffix);
++}
++
++void
++CArch::openLog(const char* name)
++{
++ m_log->openLog(name);
++}
++
++void
++CArch::closeLog()
++{
++ m_log->closeLog();
++}
++
++void
++CArch::showLog(bool showIfEmpty)
++{
++ m_log->showLog(showIfEmpty);
++}
++
++void
++CArch::writeLog(ELevel level, const char* msg)
++{
++ m_log->writeLog(level, msg);
++}
++
++CArchCond
++CArch::newCondVar()
++{
++ return m_mt->newCondVar();
++}
++
++void
++CArch::closeCondVar(CArchCond cond)
++{
++ m_mt->closeCondVar(cond);
++}
++
++void
++CArch::signalCondVar(CArchCond cond)
++{
++ m_mt->signalCondVar(cond);
++}
++
++void
++CArch::broadcastCondVar(CArchCond cond)
++{
++ m_mt->broadcastCondVar(cond);
++}
++
++bool
++CArch::waitCondVar(CArchCond cond, CArchMutex mutex, double timeout)
++{
++ return m_mt->waitCondVar(cond, mutex, timeout);
++}
++
++CArchMutex
++CArch::newMutex()
++{
++ return m_mt->newMutex();
++}
++
++void
++CArch::closeMutex(CArchMutex mutex)
++{
++ m_mt->closeMutex(mutex);
++}
++
++void
++CArch::lockMutex(CArchMutex mutex)
++{
++ m_mt->lockMutex(mutex);
++}
++
++void
++CArch::unlockMutex(CArchMutex mutex)
++{
++ m_mt->unlockMutex(mutex);
++}
++
++CArchThread
++CArch::newThread(ThreadFunc func, void* data)
++{
++ return m_mt->newThread(func, data);
++}
++
++CArchThread
++CArch::newCurrentThread()
++{
++ return m_mt->newCurrentThread();
++}
++
++CArchThread
++CArch::copyThread(CArchThread thread)
++{
++ return m_mt->copyThread(thread);
++}
++
++void
++CArch::closeThread(CArchThread thread)
++{
++ m_mt->closeThread(thread);
++}
++
++void
++CArch::cancelThread(CArchThread thread)
++{
++ m_mt->cancelThread(thread);
++}
++
++void
++CArch::setPriorityOfThread(CArchThread thread, int n)
++{
++ m_mt->setPriorityOfThread(thread, n);
++}
++
++void
++CArch::testCancelThread()
++{
++ m_mt->testCancelThread();
++}
++
++bool
++CArch::wait(CArchThread thread, double timeout)
++{
++ return m_mt->wait(thread, timeout);
++}
++
++bool
++CArch::isSameThread(CArchThread thread1, CArchThread thread2)
++{
++ return m_mt->isSameThread(thread1, thread2);
++}
++
++bool
++CArch::isExitedThread(CArchThread thread)
++{
++ return m_mt->isExitedThread(thread);
++}
++
++void*
++CArch::getResultOfThread(CArchThread thread)
++{
++ return m_mt->getResultOfThread(thread);
++}
++
++IArchMultithread::ThreadID
++CArch::getIDOfThread(CArchThread thread)
++{
++ return m_mt->getIDOfThread(thread);
++}
++
++void
++CArch::setSignalHandler(ESignal signal, SignalFunc func, void* userData)
++{
++ m_mt->setSignalHandler(signal, func, userData);
++}
++
++void
++CArch::raiseSignal(ESignal signal)
++{
++ m_mt->raiseSignal(signal);
++}
++
++CArchSocket
++CArch::newSocket(EAddressFamily family, ESocketType type)
++{
++ return m_net->newSocket(family, type);
++}
++
++CArchSocket
++CArch::copySocket(CArchSocket s)
++{
++ return m_net->copySocket(s);
++}
++
++void
++CArch::closeSocket(CArchSocket s)
++{
++ m_net->closeSocket(s);
++}
++
++void
++CArch::closeSocketForRead(CArchSocket s)
++{
++ m_net->closeSocketForRead(s);
++}
++
++void
++CArch::closeSocketForWrite(CArchSocket s)
++{
++ m_net->closeSocketForWrite(s);
++}
++
++void
++CArch::bindSocket(CArchSocket s, CArchNetAddress addr)
++{
++ m_net->bindSocket(s, addr);
++}
++
++void
++CArch::listenOnSocket(CArchSocket s)
++{
++ m_net->listenOnSocket(s);
++}
++
++CArchSocket
++CArch::acceptSocket(CArchSocket s, CArchNetAddress* addr)
++{
++ return m_net->acceptSocket(s, addr);
++}
++
++bool
++CArch::connectSocket(CArchSocket s, CArchNetAddress name)
++{
++ return m_net->connectSocket(s, name);
++}
++
++int
++CArch::pollSocket(CPollEntry pe[], int num, double timeout)
++{
++ return m_net->pollSocket(pe, num, timeout);
++}
++
++void
++CArch::unblockPollSocket(CArchThread thread)
++{
++ m_net->unblockPollSocket(thread);
++}
++
++size_t
++CArch::readSocket(CArchSocket s, void* buf, size_t len)
++{
++ return m_net->readSocket(s, buf, len);
++}
++
++size_t
++CArch::writeSocket(CArchSocket s, const void* buf, size_t len)
++{
++ return m_net->writeSocket(s, buf, len);
++}
++
++void
++CArch::throwErrorOnSocket(CArchSocket s)
++{
++ m_net->throwErrorOnSocket(s);
++}
++
++bool
++CArch::setNoDelayOnSocket(CArchSocket s, bool noDelay)
++{
++ return m_net->setNoDelayOnSocket(s, noDelay);
++}
++
++bool
++CArch::setReuseAddrOnSocket(CArchSocket s, bool reuse)
++{
++ return m_net->setReuseAddrOnSocket(s, reuse);
++}
++
++std::string
++CArch::getHostName()
++{
++ return m_net->getHostName();
++}
++
++CArchNetAddress
++CArch::newAnyAddr(EAddressFamily family)
++{
++ return m_net->newAnyAddr(family);
++}
++
++CArchNetAddress
++CArch::copyAddr(CArchNetAddress addr)
++{
++ return m_net->copyAddr(addr);
++}
++
++CArchNetAddress
++CArch::nameToAddr(const std::string& name)
++{
++ return m_net->nameToAddr(name);
++}
++
++void
++CArch::closeAddr(CArchNetAddress addr)
++{
++ m_net->closeAddr(addr);
++}
++
++std::string
++CArch::addrToName(CArchNetAddress addr)
++{
++ return m_net->addrToName(addr);
++}
++
++std::string
++CArch::addrToString(CArchNetAddress addr)
++{
++ return m_net->addrToString(addr);
++}
++
++IArchNetwork::EAddressFamily
++CArch::getAddrFamily(CArchNetAddress addr)
++{
++ return m_net->getAddrFamily(addr);
++}
++
++void
++CArch::setAddrPort(CArchNetAddress addr, int port)
++{
++ m_net->setAddrPort(addr, port);
++}
++
++int
++CArch::getAddrPort(CArchNetAddress addr)
++{
++ return m_net->getAddrPort(addr);
++}
++
++bool
++CArch::isAnyAddr(CArchNetAddress addr)
++{
++ return m_net->isAnyAddr(addr);
++}
++
++bool
++CArch::isEqualAddr(CArchNetAddress a, CArchNetAddress b)
++{
++ return m_net->isEqualAddr(a, b);
++}
++
++void
++CArch::sleep(double timeout)
++{
++ m_sleep->sleep(timeout);
++}
++
++int
++CArch::vsnprintf(char* str, int size, const char* fmt, va_list ap)
++{
++ return m_string->vsnprintf(str, size, fmt, ap);
++}
++
++int
++CArch::convStringMBToWC(wchar_t* dst, const char* src, UInt32 n, bool* errors)
++{
++ return m_string->convStringMBToWC(dst, src, n, errors);
++}
++
++int
++CArch::convStringWCToMB(char* dst, const wchar_t* src, UInt32 n, bool* errors)
++{
++ return m_string->convStringWCToMB(dst, src, n, errors);
++}
++
++IArchString::EWideCharEncoding
++CArch::getWideCharEncoding()
++{
++ return m_string->getWideCharEncoding();
++}
++
++std::string
++CArch::getOSName() const
++{
++ return m_system->getOSName();
++}
++
++std::string
++CArch::getPlatformName() const
++{
++ return m_system->getPlatformName();
++}
++
++void
++CArch::addReceiver(IArchTaskBarReceiver* receiver)
++{
++ m_taskbar->addReceiver(receiver);
++}
++
++void
++CArch::removeReceiver(IArchTaskBarReceiver* receiver)
++{
++ m_taskbar->removeReceiver(receiver);
++}
++
++void
++CArch::updateReceiver(IArchTaskBarReceiver* receiver)
++{
++ m_taskbar->updateReceiver(receiver);
++}
++
++double
++CArch::time()
++{
++ return m_time->time();
++}
++
++bool
++CArch::parseArg(const int& argc, const char* const* argv, int& i)
++{
++ return m_appUtil->parseArg(argc, argv, i);
++}
++
++void
++CArch::adoptApp(CApp* app)
++{
++ m_appUtil->adoptApp(app);
++}
++
++CApp&
++CArch::app() const
++{
++ return m_appUtil->app();
++}
++
++int
++CArch::run(int argc, char** argv)
++{
++ return m_appUtil->run(argc, argv);
++}
++
++void
++CArch::beforeAppExit()
++{
++ m_appUtil->beforeAppExit();
++}
+diff -urN synergy-1.4.5-Source.orig/src/lib/arch/IArchString.cpp synergy-1.4.5-Source/src/lib/arch/IArchString.cpp
+--- synergy-1.4.5-Source.orig/src/lib/arch/IArchString.cpp 2011-10-10 20:57:37.000000000 -0400
++++ synergy-1.4.5-Source/src/lib/arch/IArchString.cpp 2012-01-03 16:31:35.201750077 -0500
+@@ -36,6 +36,13 @@
+ }
+ }
+
++void
++IArchString::initArchString()
++{
++ if (s_mutex == NULL)
++ s_mutex = ARCH->newMutex();
++}
++
+ int
+ IArchString::convStringWCToMB(char* dst,
+ const wchar_t* src, UInt32 n, bool* errors)
+diff -urN synergy-1.4.5-Source.orig/src/lib/arch/IArchString.h synergy-1.4.5-Source/src/lib/arch/IArchString.h
+--- synergy-1.4.5-Source.orig/src/lib/arch/IArchString.h 2011-10-10 09:26:28.000000000 -0400
++++ synergy-1.4.5-Source/src/lib/arch/IArchString.h 2012-01-03 16:31:35.202750078 -0500
+@@ -30,6 +30,7 @@
+ class IArchString : public IInterface {
+ public:
+ virtual ~IArchString();
++ void initArchString();
+
+ //! Wide character encodings
+ /*!
diff --git a/x11-misc/synergy/synergy-1.4.5-r1.ebuild b/x11-misc/synergy/synergy-1.4.5-r2.ebuild
index 1deee2d09c95..9763e1f1f310 100644
--- a/x11-misc/synergy/synergy-1.4.5-r1.ebuild
+++ b/x11-misc/synergy/synergy-1.4.5-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/synergy-1.4.5-r1.ebuild,v 1.1 2011/12/05 14:45:24 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/synergy-1.4.5-r2.ebuild,v 1.1 2012/01/12 00:27:24 darkside Exp $
EAPI=4
@@ -32,6 +32,7 @@ S=${WORKDIR}/${P}-Source
src_prepare() {
epatch "${FILESDIR}/${P}-gtk3-fix.patch"
+ epatch "${FILESDIR}/${P}-clipboard-fix.patch"
}
src_configure() {
diff --git a/x11-misc/synergy/synergy-1.4.5.ebuild b/x11-misc/synergy/synergy-1.4.5.ebuild
deleted file mode 100644
index 7533d85e5fdc..000000000000
--- a/x11-misc/synergy/synergy-1.4.5.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/synergy-1.4.5.ebuild,v 1.2 2011/11/22 16:38:20 darkside Exp $
-
-EAPI=4
-
-inherit cmake-utils qt4-r2
-
-DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers."
-HOMEPAGE="http://synergy-foss.org/"
-SRC_URI="http://${PN}.googlecode.com/files/${P}-Source.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
-IUSE="qt4"
-
-RDEPEND="x11-libs/libXtst
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXinerama
- qt4? ( x11-libs/qt-gui )
- qt4? ( !x11-misc/qsynergy )"
-DEPEND="${RDEPEND}
- x11-proto/xextproto
- x11-proto/xproto
- x11-proto/kbproto
- x11-proto/xineramaproto
- x11-libs/libXt"
-
-S=${WORKDIR}/${P}-Source
-
-src_configure() {
- # 1.4.4+ : http://synergy-foss.org/pm/issues/3016
- append-ldflags $(no-as-needed)
-
- cmake-utils_src_configure
-
- if use qt4 ; then
- cd src/gui
- qt4-r2_src_configure
- fi
-}
-
-src_compile() {
- cmake-utils_src_compile
-
- if use qt4 ; then
- cd src/gui
- qt4-r2_src_compile
- fi
-}
-
-src_install () {
- dobin bin/${PN}{c,s}
-
- if use qt4 ; then
- newbin bin/${PN} qsynergy
- # FIXME: convert the .ico file to a real png instead
- newicon src/gui/res/win/QSynergy.ico q${PN}.png
- make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
- fi
-
- insinto /etc
- newins doc/synergy.conf.example synergy.conf
-
- mv doc/${PN}c.man doc/${PN}c.1 || die
- mv doc/${PN}s.man doc/${PN}s.1 || die
- doman doc/${PN}{c,s}.1
-
- dodoc README doc/synergy.conf.example*
-}