* [gentoo-commits] repo/gentoo:master commit in: media-libs/libtgvoip/files/, media-libs/libtgvoip/
@ 2020-02-09 23:15 Georgy Yakovlev
0 siblings, 0 replies; 3+ messages in thread
From: Georgy Yakovlev @ 2020-02-09 23:15 UTC (permalink / raw
To: gentoo-commits
commit: 9da4a361021f21e25da137f3c7d505c82b3f9961
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 9 22:40:08 2020 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Feb 9 23:11:04 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9da4a361
media-libs/libtgvoip: new package
dep of telegram-desktop
Bug: https://bugs.gentoo.org/707372
Bug: https://bugs.gentoo.org/707288
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
media-libs/libtgvoip/Manifest | 1 +
media-libs/libtgvoip/files/2.4.4-pulseaudio.patch | 36 +++++++++++++++
.../libtgvoip/libtgvoip-2.4.4_p20200123.ebuild | 54 ++++++++++++++++++++++
media-libs/libtgvoip/metadata.xml | 11 +++++
4 files changed, 102 insertions(+)
diff --git a/media-libs/libtgvoip/Manifest b/media-libs/libtgvoip/Manifest
new file mode 100644
index 00000000000..0a7202319ce
--- /dev/null
+++ b/media-libs/libtgvoip/Manifest
@@ -0,0 +1 @@
+DIST libtgvoip-2.4.4_p20200123.tar.gz 1481831 BLAKE2B 5c6b4ecee4d8daf31f52db1070431cb6caee324d58a20207405ebcd2b275a07c57fa524f3f29e8aaa05e50451730d34ad47bb94a180e3ac8a169dac9979582be SHA512 5da722244d66d3793439e0d3132046f1bb7fa8a56941bcac7779e3779f0c8f517fb5a8f3af546e31d16d4f8deedb9bf7a2d694194fef76bbce233bf1ed6579c3
diff --git a/media-libs/libtgvoip/files/2.4.4-pulseaudio.patch b/media-libs/libtgvoip/files/2.4.4-pulseaudio.patch
new file mode 100644
index 00000000000..ecb0d88a07a
--- /dev/null
+++ b/media-libs/libtgvoip/files/2.4.4-pulseaudio.patch
@@ -0,0 +1,36 @@
+From 1b029a0eb8b65057a31001e812b28f4685298ea4 Mon Sep 17 00:00:00 2001
+From: Seven Du <dujinfang@gmail.com>
+Date: Fri, 17 May 2019 22:19:08 +0800
+Subject: [PATCH] fix build with pulse audio
+
+---
+ audio/AudioInput.cpp | 2 +-
+ audio/AudioOutput.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/audio/AudioInput.cpp b/audio/AudioInput.cpp
+index dae647a..7b0c4da 100644
+--- a/audio/AudioInput.cpp
++++ b/audio/AudioInput.cpp
+@@ -79,7 +79,7 @@ void AudioInput::EnumerateDevices(std::vector<AudioInputDevice>& devs){
+ #elif defined(WITHOUT_PULSE)
+ AudioInputALSA::EnumerateDevices(devs);
+ #else
+- AudioInputPulse::EnumerateDevices(devs)
++ AudioInputPulse::EnumerateDevices(devs);
+ #endif
+ #endif
+ }
+diff --git a/audio/AudioOutput.cpp b/audio/AudioOutput.cpp
+index 458e8a5..07a3e31 100644
+--- a/audio/AudioOutput.cpp
++++ b/audio/AudioOutput.cpp
+@@ -90,7 +90,7 @@ void AudioOutput::EnumerateDevices(std::vector<AudioOutputDevice>& devs){
+ #elif defined(WITHOUT_PULSE)
+ AudioOutputALSA::EnumerateDevices(devs);
+ #else
+- AudioOutputPulse::EnumerateDevices(devs)
++ AudioOutputPulse::EnumerateDevices(devs);
+ #endif
+ #endif
+ }
diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild
new file mode 100644
index 00000000000..06ad597854c
--- /dev/null
+++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+EGIT_COMMIT="c5651ffc728336e56d8567f5c6c179e8a5d4fe55"
+
+DESCRIPTION="VoIP library for Telegram clients"
+HOMEPAGE="https://github.com/telegramdesktop/libtgvoip"
+SRC_URI="https://github.com/telegramdesktop/libtgvoip/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="alsa +dsp libressl pulseaudio"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ media-libs/opus
+ alsa? ( media-libs/alsa-lib )
+ pulseaudio? ( media-sound/pulseaudio )
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+REQUIRED_USE="|| ( alsa pulseaudio )"
+
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+PATCHES=( "${FILESDIR}/2.4.4-pulseaudio.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ --disable-static
+ $(use_enable dsp)
+ $(use_with alsa)
+ $(use_with pulseaudio pulse)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/media-libs/libtgvoip/metadata.xml b/media-libs/libtgvoip/metadata.xml
new file mode 100644
index 00000000000..c5af453673d
--- /dev/null
+++ b/media-libs/libtgvoip/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gyakovlev@gentoo.org</email>
+ <name>Georgy Yakovlev</name>
+ </maintainer>
+ <use>
+ <flag name="dsp">Enable signal processing (echo cancellation, noise suppression, and automatic gain control)</flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libtgvoip/files/, media-libs/libtgvoip/
@ 2020-02-12 9:20 Georgy Yakovlev
0 siblings, 0 replies; 3+ messages in thread
From: Georgy Yakovlev @ 2020-02-12 9:20 UTC (permalink / raw
To: gentoo-commits
commit: fd5ea45c61304e9fb672811770f045a57a92b8fc
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 12 09:19:24 2020 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Feb 12 09:20:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd5ea45c
media-libs/libtgvoip: fix build on musl
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
media-libs/libtgvoip/files/musl.patch | 10 ++++++++++
media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild | 5 ++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/media-libs/libtgvoip/files/musl.patch b/media-libs/libtgvoip/files/musl.patch
new file mode 100644
index 00000000000..ba6bb048a64
--- /dev/null
+++ b/media-libs/libtgvoip/files/musl.patch
@@ -0,0 +1,10 @@
+--- libtgvoip/os/linux/AudioPulse.cpp 2020-01-21 12:16:27.000000000 +0000
++++ libtgvoip/os/linux/AudioPulse.cpp 2020-01-22 17:44:42.185530350 +0000
+@@ -6,6 +6,7 @@
+
+ #include "AudioPulse.h"
+ #include <dlfcn.h>
++#include <libgen.h>
+ #include "../../logging.h"
+
+ #define DECLARE_DL_FUNCTION(name) typeof(name)* AudioPulse::_import_##name=NULL
diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild
index 4556d115fcc..7962785e6db 100644
--- a/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild
+++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild
@@ -30,7 +30,10 @@ REQUIRED_USE="|| ( alsa pulseaudio )"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
-PATCHES=( "${FILESDIR}/2.4.4-pulseaudio.patch" )
+PATCHES=(
+ "${FILESDIR}/2.4.4-pulseaudio.patch"
+ "${FILESDIR}/musl.patch"
+)
src_prepare() {
default
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libtgvoip/files/, media-libs/libtgvoip/
@ 2020-07-05 0:19 Georgy Yakovlev
0 siblings, 0 replies; 3+ messages in thread
From: Georgy Yakovlev @ 2020-07-05 0:19 UTC (permalink / raw
To: gentoo-commits
commit: 4ee03110149ff0a37f5d0481a0e4a310d7a9838c
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 5 00:15:23 2020 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Jul 5 00:18:53 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee03110
media-libs/libtgvoip: fix non-posix configure test
Bug: https://bugs.gentoo.org/729034
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
.../libtgvoip/files/configure-bashisms.patch | 83 ++++++++++++++++++++++
....ebuild => libtgvoip-2.4.4_p20200701-r1.ebuild} | 2 +
2 files changed, 85 insertions(+)
diff --git a/media-libs/libtgvoip/files/configure-bashisms.patch b/media-libs/libtgvoip/files/configure-bashisms.patch
new file mode 100644
index 00000000000..2ebdf8a2799
--- /dev/null
+++ b/media-libs/libtgvoip/files/configure-bashisms.patch
@@ -0,0 +1,83 @@
+From 601c2b7e4336357f49ad2dcf93bc59e5944975a4 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Sat, 4 Jul 2020 17:11:24 -0700
+Subject: [PATCH] configure.ac: use POSIX test syntax
+
+with == syntax configure fails on some shells (dash fish)
+
+./configure: 17913: test: xyes: unexpected operator
+./configure: 17921: test: x: unexpected operator
+./configure: 17929: test: x: unexpected operator
+Detected OS: linux-gnu
+./configure: 17946: test: x: unexpected operator
+./configure: 17962: test: xno: unexpected operator
+checking for dlopen in -ldl... yes
+./configure: 18036: test: xyes: unexpected operator
+checking for libpulse... yes
+checking for alsa... yes
+./configure: 18251: test: xyes: unexpected operator
+./configure: 18259: test: xyes: unexpected operator
+./configure: 18275: test: xyes: unexpected operator
+checking for size_t... yes
+
+Downstream-bug: https://bugs.gentoo.org/729034
+Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
+---
+ configure.ac | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 37ee7a1..17789c2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -46,18 +46,18 @@ AS_CASE([$host_cpu],
+ [armv7*], [cpu_armv7=yes]
+ )
+ AS_ECHO("Detected CPU: $host_cpu")
+-AM_CONDITIONAL(TARGET_CPU_X86, test "x$cpu_x86" == xyes)
+-AM_CONDITIONAL(TARGET_CPU_ARM, test "x$cpu_arm" == xyes)
+-AM_CONDITIONAL(TARGET_CPU_ARMV7, test "x$cpu_armv7" == xyes)
++AM_CONDITIONAL(TARGET_CPU_X86, test "x$cpu_x86" = xyes)
++AM_CONDITIONAL(TARGET_CPU_ARM, test "x$cpu_arm" = xyes)
++AM_CONDITIONAL(TARGET_CPU_ARMV7, test "x$cpu_armv7" = xyes)
+ AS_ECHO("Detected OS: $host_os")
+
+ AS_CASE([$host_os],
+ [darwin*], [os_osx=yes]
+ )
+-AM_CONDITIONAL(TARGET_OS_OSX, test "x$os_osx" == xyes)
++AM_CONDITIONAL(TARGET_OS_OSX, test "x$os_osx" = xyes)
+
+ AC_ARG_ENABLE([audio-callback], [AS_HELP_STRING([--enable-audio-callback], [enable callback-based audio I/O])], [], [enable_audio_callback=no])
+-AM_CONDITIONAL(ENABLE_AUDIO_CALLBACK, test "x$enable_audio_callback" == xyes)
++AM_CONDITIONAL(ENABLE_AUDIO_CALLBACK, test "x$enable_audio_callback" = xyes)
+
+ AS_IF([test "x$os_osx" != xyes && test "x$enable_audio_callback" != xyes], [ # Linux
+ AC_CHECK_LIB([dl], [dlopen])
+@@ -65,7 +65,7 @@ AS_IF([test "x$os_osx" != xyes && test "x$enable_audio_callback" != xyes], [ # L
+ AC_ARG_WITH([pulse], [AS_HELP_STRING([--without-pulse], [disable PulseAudio support])], [], [with_pulse=yes])
+ AC_ARG_WITH([alsa], [AS_HELP_STRING([--without-alsa], [disable ALSA support])], [], [with_alsa=yes])
+
+- AS_IF([test "x$with_pulse" == xno && test "x$with_alsa" == xno], [
++ AS_IF([test "x$with_pulse" = xno && test "x$with_alsa" = xno], [
+ AC_MSG_FAILURE([You can only disable either ALSA or PulseAudio, not both]);
+ ])
+
+@@ -82,11 +82,11 @@ AS_IF([test "x$os_osx" != xyes && test "x$enable_audio_callback" != xyes], [ # L
+ ])
+ ]);
+
+-AM_CONDITIONAL(WITH_PULSE, test "x$with_pulse" == xyes)
+-AM_CONDITIONAL(WITH_ALSA, test "x$with_alsa" == xyes)
++AM_CONDITIONAL(WITH_PULSE, test "x$with_pulse" = xyes)
++AM_CONDITIONAL(WITH_ALSA, test "x$with_alsa" = xyes)
+
+ AC_ARG_ENABLE([dsp], [AS_HELP_STRING([--disable-dsp], [disable signal processing (echo cancellation, noise suppression, and automatic gain control)])], [], [enable_dsp=yes])
+-AM_CONDITIONAL(ENABLE_DSP, test "x$enable_dsp" == xyes)
++AM_CONDITIONAL(ENABLE_DSP, test "x$enable_dsp" = xyes)
+
+ # Checks for header files.
+ AC_FUNC_ALLOCA
+--
+2.27.0
+
diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20200701.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200701-r1.ebuild
similarity index 95%
rename from media-libs/libtgvoip/libtgvoip-2.4.4_p20200701.ebuild
rename to media-libs/libtgvoip/libtgvoip-2.4.4_p20200701-r1.ebuild
index 65f68701687..0271d86572a 100644
--- a/media-libs/libtgvoip/libtgvoip-2.4.4_p20200701.ebuild
+++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20200701-r1.ebuild
@@ -30,6 +30,8 @@ REQUIRED_USE="|| ( alsa pulseaudio )"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+PATCHES=( "${FILESDIR}/configure-bashisms.patch" )
+
src_prepare() {
default
sed -i 's/-std=gnu++0x/-std=gnu++17/' Makefile.am || die
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-05 0:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-05 0:19 [gentoo-commits] repo/gentoo:master commit in: media-libs/libtgvoip/files/, media-libs/libtgvoip/ Georgy Yakovlev
-- strict thread matches above, loose matches on Subject: below --
2020-02-12 9:20 Georgy Yakovlev
2020-02-09 23:15 Georgy Yakovlev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox