diff options
author | Peter Volkov <pva@gentoo.org> | 2010-03-18 06:04:10 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-03-18 06:04:10 +0000 |
commit | e4d8e3bc3e11c0d0b59e32e63417a50841d5b5c3 (patch) | |
tree | fdb57c80b3ac033c8c3214b6eac41859983e64af /net-voip | |
parent | add use-deps for libsdl (diff) | |
download | gentoo-2-e4d8e3bc3e11c0d0b59e32e63417a50841d5b5c3.tar.gz gentoo-2-e4d8e3bc3e11c0d0b59e32e63417a50841d5b5c3.tar.bz2 gentoo-2-e4d8e3bc3e11c0d0b59e32e63417a50841d5b5c3.zip |
Make linphone.desktop validateable, bug #307865, thank Rion for report.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-voip')
-rw-r--r-- | net-voip/linphone/ChangeLog | 8 | ||||
-rw-r--r-- | net-voip/linphone/files/linphone-3.2.1-linphone.desktop.patch | 14 | ||||
-rw-r--r-- | net-voip/linphone/linphone-3.2.1-r1.ebuild | 102 |
3 files changed, 123 insertions, 1 deletions
diff --git a/net-voip/linphone/ChangeLog b/net-voip/linphone/ChangeLog index 04eed175f88b..a3ccf57d6fdb 100644 --- a/net-voip/linphone/ChangeLog +++ b/net-voip/linphone/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-voip/linphone # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-voip/linphone/ChangeLog,v 1.41 2010/02/18 18:57:38 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-voip/linphone/ChangeLog,v 1.42 2010/03/18 06:04:09 pva Exp $ + +*linphone-3.2.1-r1 (18 Mar 2010) + + 18 Mar 2010; Peter Volkov <pva@gentoo.org> +linphone-3.2.1-r1.ebuild, + +files/linphone-3.2.1-linphone.desktop.patch: + Make linphone.desktop validateable, bug #307865, thank Rion for report. *linphone-3.2.1 (18 Feb 2010) diff --git a/net-voip/linphone/files/linphone-3.2.1-linphone.desktop.patch b/net-voip/linphone/files/linphone-3.2.1-linphone.desktop.patch new file mode 100644 index 000000000000..d3fb35d29cf0 --- /dev/null +++ b/net-voip/linphone/files/linphone-3.2.1-linphone.desktop.patch @@ -0,0 +1,14 @@ +=== modified file 'share/linphone.desktop' +--- share/linphone.desktop 2010-03-18 05:59:30 +0000 ++++ share/linphone.desktop 2010-03-18 05:58:45 +0000 +@@ -5,6 +5,6 @@ + Comment[de]=Linphone ist ein web-phone. + Type=Application + Exec=linphone-3 +-Icon=linphone/linphone2.png ++Icon=linphone2 + Terminal=false +-Categories=Application;Network; +\ No newline at end of file ++Categories=Network;Telephony; + diff --git a/net-voip/linphone/linphone-3.2.1-r1.ebuild b/net-voip/linphone/linphone-3.2.1-r1.ebuild new file mode 100644 index 000000000000..4b5e49aa0128 --- /dev/null +++ b/net-voip/linphone/linphone-3.2.1-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-voip/linphone/linphone-3.2.1-r1.ebuild,v 1.1 2010/03/18 06:04:09 pva Exp $ + +EAPI="2" + +inherit eutils autotools multilib + +DESCRIPTION="Video softphone based on the SIP protocol" +HOMEPAGE="http://www.linphone.org/" +SRC_URI="http://download.savannah.nongnu.org/releases/${PN}/stable/sources/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc gtk ipv6 ncurses nls video" + +RDEPEND=">=media-libs/mediastreamer-2.3.0[video?] + >=net-libs/libeXosip-3.0.2 + >=net-libs/libosip-3.0.0 + >=net-libs/ortp-0.16.1 + gtk? ( dev-libs/glib:2 + >=gnome-base/libglade-2.4.0:2.0 + >=x11-libs/gtk+-2.4.0:2 ) + ncurses? ( sys-libs/readline + sys-libs/ncurses )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-text/sgmltools-lite ) + nls? ( dev-util/intltool + sys-devel/gettext )" + +IUSE_LINGUAS=" fr it de ja es pl cs nl sv pt_BR hu ru zh_CN" +IUSE="${IUSE} ${IUSE_LINGUAS// / linguas_}" + +# TODO: +# update ortp ? +# update mediastreamer ? + +# TODO: +# run-time test for ipv6 : does it need mediastreamer[ipv6] ? + +pkg_setup() { + if ! use gtk && ! use ncurses ; then + ewarn "gtk and ncurses are disabled." + ewarn "At least one of these use flags are needed to get a front-end." + ewarn "Only liblinphone is going to be installed." + fi + + strip-linguas ${IUSE_LINGUAS} +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-external-mediastreamer.patch + epatch "${FILESDIR}"/${P}-nls.patch + epatch "${FILESDIR}"/${P}-log-window-crash.patch + epatch "${FILESDIR}"/${P}-linphone.desktop.patch + + # remove speex check, avoid bug when mediastreamer[-speex] + sed -i -e '/SPEEX/d' configure.in || die "patching configure.in failed" + + # fix path to use lib64 + sed -i -e "s:lib\(/liblinphone\):$(get_libdir)\1:" configure.in \ + || die "patching configure.in failed" + + # removing bundled libs dir prevent them to be reconf + rm -rf mediastreamer2 oRTP || die "should not die" + # and references in Makefile.am + sed -i -e "s:oRTP::" -e "s:mediastreamer2::" Makefile.am \ + || die "patching Makefile.am failed" + + # make sure to use host libtool version + rm -f m4/libtool.m4 m4/lt*.m4 #282268 + eautoreconf +} + +src_configure() { + # strict: we don't want -Werror + # external-ortp,external-mediastreamer: prefer external libs + # truespeech: seems not used, TODO: ask in ml + # rsvp: breaking the build (not maintained anymore) --disable = --enable + # alsa, artsc and portaudio are used for bundled mediastreamer + econf \ + --libdir=/usr/$(get_libdir) \ + --disable-strict \ + --enable-external-ortp \ + --enable-external-mediastreamer \ + --disable-truespeech \ + --disable-dependency-tracking \ + $(use_enable doc manual) \ + $(use_enable gtk gtk_ui) \ + $(use_enable ipv6) \ + $(use_enable ncurses console_ui) \ + $(use_enable nls) \ + $(use_enable video) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dosym linphone-3 /usr/bin/linphone || die + dodoc AUTHORS BUGS ChangeLog NEWS README README.arm TODO +} |