Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174666 - wengophone-2.1_rc2 pre-ebuild
Summary: wengophone-2.1_rc2 pre-ebuild
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-15 09:48 UTC by gabrielitos
Modified: 2007-04-16 08:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gabrielitos 2007-04-15 09:48:48 UTC
There is no ebuild for wengophone-2.1 in portage tree or in overlays.
I tried to write one, i post here what i created:

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit eutils toolchain-funcs

MY_P="wengophone-2.1_rc2"
DESCRIPTION="Wengophone NG is a VoIP client featuring the SIP protcol"
HOMEPAGE="http://dev.openwengo.com"
SRC_URI="http://download.wengo.com/releases/WengoPhone-2.1/RC2/sources/WengoPhone-2.1-rc2.src.tar.bz2"
#ESVN_REPO_URI="http://dev.openwengo.com/svn/openwengo/wengophone-ng/trunk"
#ESVN_OPTIONS="--username guest --password guest"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

RDEPEND="dev-libs/boost
	>=dev-libs/glib-2.0
	dev-libs/openssl
	media-libs/alsa-lib
	net-libs/gnutls
	media-video/ffmpeg
	>=x11-libs/qt-4.1
	media-libs/libsndfile
        dev-libs/libxml2"
#	>=media-libs/portaudio-19

DEPEND="${RDEPEND}
	media-libs/speex
	>=dev-util/cmake-2.4.4"
S=${WORKDIR}/${MY_P/_/-}

export QTDIR=/usr QTLIBDIR=/usr/lib/qt4 QTINCLUDEDIR=/usr/include/qt4 QTPLUGINDIR=/usr/lib/qt4/plugins

pkg_setup() {
	if ! built_with_use dev-libs/boost threads; then
		eerror "This package requires dev-libs/boost compiled with threads support."
		eerror "Please reemerge dev-libs/boost with USE=\"threads\"."
		die "Please reemerge dev-libs/boost with USE=\"threads\"."
	fi

	if test $(gcc-major-version) -ge 4 \
		&& test $(gcc-minor-version) -ge 1 && ! grep visit_each.hpp /usr/include/boost/bind.hpp >/dev/null 2>&1; then
		eerror "You need to add #include <boost/visit_each.hpp> in"
		eerror "/usr/include/boost/bind.hpp to build with gcc-4.1"
		die "Please fix your includes"
	fi
}

src_unpack() {
	unpack ${A}
}

src_compile() {
	cd ${WORKDIR}/wengophone-2.1/build
	./build_make.sh --build final  
}

src_install() {
#	domenu debian/wengophone.desktop
#	doicon debian/wengophone.xpm
	doman debian/qtwengophone.1
}

pkg_postinst() {
	elog 'execute "qtwengophone" to start wengophone'
}

This ebuild works with downloading and compiling the source, but fails in installing because i don't know how to install it.

Reproducible: Always
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-15 09:58:06 UTC
the problem is that compiling works only with a compiler other than gcc 4.1 which is the most used compiler on gentoo :(
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-15 10:01:01 UTC
That is why we are using a binary ebuild these days, and it is in the tree as:

[N] net-voip/wengophone-bin ((~)2.1_rc2): Wengophone NG is a VoIP client featuring the SIP protcol

Thanks for your efforts anyway, you might want to come to irc.freenode.net, #gentoo-voip and contribute the source ebuild to the voip overlay :)

marking as LATER because we wait for boost 1.35 or a new gcc to fix the build problems.
Comment 3 gabrielitos 2007-04-15 20:49:32 UTC
I try to use my ebuild to compile wengophone with "ebuild ... compile" and it compiled succesfully with gcc-4.2.1 and boost-1.33-r1!
I tried using with a friend that use the bin and the call works fine,also with webcam,and the chat too!
Only a thing: the qtwengophone is 97mb, i don't know why.
Here my emerge --info

Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 12 Apr 2007 13:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/voip /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acpi alsa amd64 berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dga divx dmx dri dvd dvdr dvdread encode fat firefox foomaticdb fortran gdbm gif gimp glitz gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg libg++ mad midi mikmod mozilla mp3 mpeg mplayer ncurses nls nptl nptlonly nsplugin ntfs nvidia nvtv opengl pam pcre pda pdf perl png ppds pppd python qt3 qt4 quicktime readline realmedia reflection reiserfs samba scanner session spell spl sse3 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb v4l wma wmp xinerama xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="mouse joystick keyboard penmount" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia nv fbdev vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The bin package doesn't work with amd64 due to some libraries.

Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-15 21:08:24 UTC
the new -bin ebuild should work with amd64. If not I have made something wrong, please tell me what needs changing for it to work.
Comment 5 gabrielitos 2007-04-16 07:57:49 UTC
Yes,now the bin works.
Comment 6 gabrielitos 2007-04-16 08:31:53 UTC
Thanks!