diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-04-08 22:45:44 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-04-08 22:45:44 +0000 |
commit | 0b972b9e2b3a3e645e52bbce000b5e375a542bdf (patch) | |
tree | 8a29692e4d58e161271cae0bdec678f5ee7802a5 /net-im | |
parent | Stable on x86, bug 128610. (diff) | |
download | gentoo-2-0b972b9e2b3a3e645e52bbce000b5e375a542bdf.tar.gz gentoo-2-0b972b9e2b3a3e645e52bbce000b5e375a542bdf.tar.bz2 gentoo-2-0b972b9e2b3a3e645e52bbce000b5e375a542bdf.zip |
version bump, use debian patch to make it compile with gcc-4.1
(Portage version: 2.1_pre8)
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/wengophone/ChangeLog | 8 | ||||
-rw-r--r-- | net-im/wengophone/files/debian.patch | 227 | ||||
-rw-r--r-- | net-im/wengophone/files/digest-wengophone-1.0_pre20060408 | 3 | ||||
-rw-r--r-- | net-im/wengophone/wengophone-1.0_pre20060408.ebuild | 55 |
4 files changed, 292 insertions, 1 deletions
diff --git a/net-im/wengophone/ChangeLog b/net-im/wengophone/ChangeLog index e0c08a0e819d..141ddcfae666 100644 --- a/net-im/wengophone/ChangeLog +++ b/net-im/wengophone/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-im/wengophone # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/ChangeLog,v 1.3 2006/01/20 21:19:44 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/ChangeLog,v 1.4 2006/04/08 22:45:44 genstef Exp $ + +*wengophone-1.0_pre20060408 (08 Apr 2006) + + 08 Apr 2006; Stefan Schweizer <genstef@gentoo.org> +files/debian.patch, + -wengophone-1.0_pre20060106.ebuild, +wengophone-1.0_pre20060408.ebuild: + version bump, use debian patch to make it compile with gcc-4.1 20 Jan 2006; Stefan Schweizer <genstef@gentoo.org> wengophone-1.0_pre20060106.ebuild: diff --git a/net-im/wengophone/files/debian.patch b/net-im/wengophone/files/debian.patch new file mode 100644 index 000000000000..4d92db1472be --- /dev/null +++ b/net-im/wengophone/files/debian.patch @@ -0,0 +1,227 @@ +Taken from debian +http://www.prato.linux.it/~mnencia/debian/openwengo/source/wengophone_0.99+svn4511-3.diff.gz + +Index: wengophone-0.99+svn4227/gui/SConscript +=================================================================== +--- wengophone-0.99+svn4227.orig/gui/SConscript 2006-02-14 11:13:33.000000000 +0100 ++++ wengophone-0.99+svn4227/gui/SConscript 2006-02-14 11:13:46.000000000 +0100 +@@ -400,12 +400,17 @@ + wengophone_env.WengoUseLibrary("samplerate") + + #system libs +- wengophone_env.WengoLibAddMultiple(["ws2_32", "winmm", "iphlpapi"]) ++ if wengophone_env.WengoOsIsWindows(): ++ wengophone_env.WengoLibAddMultiple(["ws2_32", "winmm", "iphlpapi"]) ++ else: ++ wengophone_env.WengoLibAddMultiple(["asound", "glib-2.0", "gthread-2.0"]) ++ + + + if wengophone_env.WengoGetConsoleArgument("enable-shared-wengocurl")=="no": + #system libs +- wengophone_env.WengoLibAddMultiple(["ws2_32", "winmm", "Gdi32"]) ++ if wengophone_env.WengoOsIsWindows(): ++ wengophone_env.WengoLibAddMultiple(["ws2_32", "winmm", "Gdi32"]) + wengophone_env.WengoUseLibrary("openssl") + + +Index: wengophone-0.99+svn4227/wifo/trunk/netlib/SConscript +=================================================================== +--- wengophone-0.99+svn4227.orig/wifo/trunk/netlib/SConscript 2006-02-14 11:13:33.000000000 +0100 ++++ wengophone-0.99+svn4227/wifo/trunk/netlib/SConscript 2006-02-14 11:13:46.000000000 +0100 +@@ -32,8 +32,9 @@ + netlib_decl = env.WengoDeclareLibraryAuto("netlib", "wifo/netlib") + netlib_decl.AddSubIncludePath("..") + +-netlib_env.WengoLibAddMultiple(["user32", "shell32", +- "ws2_32", "advapi32", "wininet", "urlmon"]) ++if netlib_env.WengoOsIsWindows(): ++ netlib_env.WengoLibAddMultiple(["user32", "shell32", ++ "ws2_32", "advapi32", "wininet", "urlmon"]) + + netlib_lib = netlib_env.WengoStaticLibrary('netlib', netlib_sources) + netlib_env.WengoAlias('netlib', netlib_lib) +Index: wengophone-0.99+svn4227/gui/Softphone.cpp +=================================================================== +--- wengophone-0.99+svn4227.orig/gui/Softphone.cpp 2006-02-14 11:13:32.000000000 +0100 ++++ wengophone-0.99+svn4227/gui/Softphone.cpp 2006-02-14 11:13:50.000000000 +0100 +@@ -113,6 +113,8 @@ + //_wengoDir = _application->applicationDirPath() + QDir::separator() + "wengo" + QDir::separator(); + #else + _wengoDir = QDir::homeDirPath() + QDir::separator() + ".wengo" + QDir::separator(); ++ _applicationDirPath = "/usr/share/wengophone/"; ++ _languagesDir = _applicationDirPath + "lang" + QDir::separator(); + #endif //WIN32 + } + +@@ -125,9 +127,6 @@ + _translator = new QTranslator(); + _application->installTranslator(_translator); + +- _applicationDirPath = _application->applicationDirPath() + QDir::separator(); +- _languagesDir = _applicationDirPath + "lang" + QDir::separator(); +- + //For USB key + //_wengoDir = _applicationDirPath + "wengo" + QDir::separator(); + } +Index: wengophone-0.99+svn4227/gui/sip/InputCallSipState.cpp +=================================================================== +--- wengophone-0.99+svn4227.orig/gui/sip/InputCallSipState.cpp 2006-02-14 11:13:32.000000000 +0100 ++++ wengophone-0.99+svn4227/gui/sip/InputCallSipState.cpp 2006-02-14 11:13:50.000000000 +0100 +@@ -68,7 +68,8 @@ + //FIXME replace by double-call notification + _soundRingin = new Sound(SOUND_RINGIN); + } else {*/ +- _soundRingin = new Sound(qApp->applicationDirPath() + QDir::separator() + SOUND_RINGIN); ++ QString applicationDirPath("/usr/share/wengophone"); ++ _soundRingin = new Sound(applicationDirPath + QDir::separator() + SOUND_RINGIN); + //} + _soundRingin->setWaveOutDevice(Audio::getInstance().getRingingDeviceName()); + //Play the sound indefinitely +Index: wengophone-0.99+svn4227/gui/chat/EmoticonsWidget.cpp +=================================================================== +--- wengophone-0.99+svn4227.orig/gui/chat/EmoticonsWidget.cpp 2006-02-14 11:13:32.000000000 +0100 ++++ wengophone-0.99+svn4227/gui/chat/EmoticonsWidget.cpp 2006-02-14 11:13:50.000000000 +0100 +@@ -54,7 +54,8 @@ + + void EmoticonsWidget::setIconset(const QString & /*name*/) { + Iconset iconset; +- iconset.load(qApp->applicationDirPath() + QDir::separator() + "emoticons" + QDir::separator() + "default"); ++ QString applicationDirPath("/usr/share/wengophone"); ++ iconset.load(applicationDirPath + QDir::separator() + "emoticons" + QDir::separator() + "default"); + setIconset(iconset); + } + +Index: wengophone-0.99+svn4511/libs/curl/lib/sendf.c +=================================================================== +--- wengophone-0.99+svn4511.orig/libs/curl/lib/sendf.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/libs/curl/lib/sendf.c 2006-03-19 11:38:07.000000000 +0100 +@@ -21,6 +21,7 @@ + * $Id: debian.patch,v 1.1 2006/04/08 22:45:44 genstef Exp $ + ***************************************************************************/ + ++#define _GNU_SOURCE + #include "setup.h" + + #include <stdio.h> +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/phapi/phaudiodriver.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/phapi/phaudiodriver.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/phapi/phaudiodriver.c 2006-03-19 11:38:07.000000000 +0100 +@@ -17,6 +17,7 @@ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include <stdlib.h> + #include <string.h> + #include "phaudiodriver.h" + +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/src/eXosip.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/src/eXosip.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/src/eXosip.c 2006-03-19 11:38:07.000000000 +0100 +@@ -17,6 +17,7 @@ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include <stdlib.h> + #ifdef ENABLE_MPATROL + #include <mpatrol.h> + #endif +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jfreinds.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/src/jfreinds.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jfreinds.c 2006-03-19 11:38:07.000000000 +0100 +@@ -17,7 +17,7 @@ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +- ++#include <stdlib.h> + #ifdef ENABLE_MPATROL + #include <mpatrol.h> + #endif +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jidentity.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/src/jidentity.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jidentity.c 2006-03-19 11:38:07.000000000 +0100 +@@ -17,7 +17,7 @@ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +- ++#include <stdlib.h> + #ifdef ENABLE_MPATROL + #include <mpatrol.h> + #endif +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jsubscribers.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/src/jsubscribers.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/src/jsubscribers.c 2006-03-19 11:38:07.000000000 +0100 +@@ -17,7 +17,7 @@ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +- ++#include <stdlib.h> + #ifdef ENABLE_MPATROL + #include <mpatrol.h> + #endif +Index: wengophone-0.99+svn4511/gui/visio/VideoCodecConfigWidget.cpp +=================================================================== +--- wengophone-0.99+svn4511.orig/gui/visio/VideoCodecConfigWidget.cpp 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/gui/visio/VideoCodecConfigWidget.cpp 2006-03-20 10:46:15.000000000 +0100 +@@ -52,7 +52,7 @@ + connect(_parametersComboBox, SIGNAL(activated(const QString &)), this, SLOT(updateValue(const QString &))); + + //int or float validator +- QRegExpValidator * validator = new QRegExpValidator(QRegExp("([0-9])+(\.)?([0-9])*"), _videoCodecConfigWidget); ++ QRegExpValidator * validator = new QRegExpValidator(QRegExp("([0-9])+(\\.)?([0-9])*"), _videoCodecConfigWidget); + _parametersValueLineEdit->setValidator(validator); + + QTimer *timer = new QTimer(this); +Index: wengophone-0.99+svn4511/wifo/trunk/eXosip/phapi/stun/stun.c +=================================================================== +--- wengophone-0.99+svn4511.orig/wifo/trunk/eXosip/phapi/stun/stun.c 2006-03-13 17:43:59.000000000 +0100 ++++ wengophone-0.99+svn4511/wifo/trunk/eXosip/phapi/stun/stun.c 2006-04-07 15:23:20.000000000 +0200 +@@ -1,11 +1,11 @@ + #include <assert.h> + #include <errno.h> ++#include <time.h> + + #ifdef WIN32 + #include <winsock2.h> + #include <stdlib.h> + #include <io.h> +-#include <time.h> + #else + + #include <stdlib.h> +@@ -783,9 +783,13 @@ + closesocket(fd); + #elif defined(EMBED) + tick = rand(); ++#elif __unix__ ++ struct timeval tv; ++ gettimeofday(&tv, NULL); ++ tick = (unsigned(tv.tv_sec) * unsigned(getpid())) ^ unsigned(tv.tv_usec); + #else +-# error Need some way to seed the random number generator +-#endif ++ tick = time(NULL); ++#endif + seed = (tick); + #ifdef WIN32 + srand(seed); +Index: wengophone-0.99+svn4227/SConscript +=================================================================== +--- wengophone-0.99+svn4227.orig/SConscript 2006-02-14 11:13:32.000000000 +0100 ++++ wengophone-0.99+svn4227/SConscript 2006-02-14 11:13:53.000000000 +0100 +@@ -33,7 +33,6 @@ + env.WengoBuildInDir("download/SConscript", "softphone/download") + env.WengoBuildInDir("gui/SConscript", "softphone/gui") + env.WengoBuildInDir("buildid/SConscript", "softphone/buildid") +-env.WengoBuildInDir("nsis-installer/SConscript", "softphone/nsis-installer") + env.WengoBuildInDir("memorydump/SConscript", "softphone/memorydump") + if not env.WengoOsIsWindows(): + env.WengoBuildInDir("deb-installer/SConscript", "softphone/deb-installer") diff --git a/net-im/wengophone/files/digest-wengophone-1.0_pre20060408 b/net-im/wengophone/files/digest-wengophone-1.0_pre20060408 new file mode 100644 index 000000000000..b6891ae3e53f --- /dev/null +++ b/net-im/wengophone/files/digest-wengophone-1.0_pre20060408 @@ -0,0 +1,3 @@ +MD5 82e8b9dd8425690691067ef334ff5a17 wengophone-1.0_pre20060408.tar.bz2 6361592 +RMD160 f6b36b424c73a0c868d43f73a05f8e96336b33ab wengophone-1.0_pre20060408.tar.bz2 6361592 +SHA256 d53e3489884cfc0e6573b6669239e692a85ebff78f4e039807ef4f77a3603920 wengophone-1.0_pre20060408.tar.bz2 6361592 diff --git a/net-im/wengophone/wengophone-1.0_pre20060408.ebuild b/net-im/wengophone/wengophone-1.0_pre20060408.ebuild new file mode 100644 index 000000000000..1ca0570fd3b6 --- /dev/null +++ b/net-im/wengophone/wengophone-1.0_pre20060408.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/wengophone-1.0_pre20060408.ebuild,v 1.1 2006/04/08 22:45:44 genstef Exp $ + +inherit qt3 eutils + +DESCRIPTION="Wengophone is a VoIP client featuring the SIP protcol" +HOMEPAGE="http://dev.openwengo.com" +SRC_URI="http://dev.gentoo.org/~genstef/files/dist/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="oss" + +RDEPEND="!oss? ( media-libs/alsa-lib ) + dev-libs/glib + sys-libs/zlib + $(qt_min_version 3.3.4)" +DEPEND="${RDEPEND} + sys-kernel/linux-headers + dev-util/scons + media-libs/speex" + +src_compile() { + if use oss; then + sed -e 's|PA_USE_ALSA|PA_USE_OSS|g' \ + -e 's|sources_alsa|sources_oss|g' \ + -e 's|pa_env.WengoLibAdd("asound")||g' \ + -i libs/portaudio/SConscript \ + || die "Failed to patch SConscript to build OSS support" + fi + epatch ${FILESDIR}/debian.patch + + scons mode=release-symbols \ + enable-shared-portaudio=no enable-shared-webcam=no \ + enable-shared-wengocurl=no enable-shared-phapi=no \ + softphone-runtime softphone || die "scons failed" +} + +src_install() { + #scons prefix=${D}/usr softphone-install || die "scons softphone-install failed" + #sed -i "s:${D}::" ${D}/usr/bin/${PN} + #fperms 755 /usr/bin/wengophone + cd build-wengo/linux2-release-symbols/softphone + dobin runtime/wengophone + insinto /usr/share/wengophone + doins -r runtime/{icons,sounds,emoticons} + insinto /usr/share/wengophone/lang + doins -r gui/lang/*.qm + + cd ${S} + doicon wengophone.png + domenu wengophone.desktop +} |