From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E54F139083 for ; Sun, 17 Dec 2017 22:22:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24195E0D49; Sun, 17 Dec 2017 22:22:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6BA0E0D49 for ; Sun, 17 Dec 2017 22:22:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 457F833BF43 for ; Sun, 17 Dec 2017 22:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7FE2AE85 for ; Sun, 17 Dec 2017 22:22:04 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1513549306.d2f78c951d193dfff031cb9cad4057c856a2d0be.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/speexdsp/files/, media-libs/speexdsp/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/speexdsp/files/speexdsp-1.2_rc3-config_types.h.patch media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild X-VCS-Directories: media-libs/speexdsp/ media-libs/speexdsp/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: d2f78c951d193dfff031cb9cad4057c856a2d0be X-VCS-Branch: master Date: Sun, 17 Dec 2017 22:22:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: feb12881-996d-4e6d-8e46-1f7563b1077e X-Archives-Hash: 30721479679021627c7516336534b6cd commit: d2f78c951d193dfff031cb9cad4057c856a2d0be Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Dec 17 22:19:39 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Dec 17 22:21:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2f78c95 media-libs/speexdsp: Fix speexdsp_config_types.h Thanks-to: Arfrever Closes: https://bugs.gentoo.org/622288 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/speexdsp-1.2_rc3-config_types.h.patch | 61 ++++++++++++++++++++++ media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild | 57 ++++++++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/media-libs/speexdsp/files/speexdsp-1.2_rc3-config_types.h.patch b/media-libs/speexdsp/files/speexdsp-1.2_rc3-config_types.h.patch new file mode 100644 index 00000000000..835769dde70 --- /dev/null +++ b/media-libs/speexdsp/files/speexdsp-1.2_rc3-config_types.h.patch @@ -0,0 +1,61 @@ +From c470e2e89a6ca75b507437467692cd684b71a526 Mon Sep 17 00:00:00 2001 +From: Tanu Kaskinen +Date: Sun, 5 Jul 2015 18:10:19 +0300 +Subject: [PATCH] Don't rely on HAVE_STDINT_H et al. being defined + +Not everyone who includes speexdsp_config_types.h will have a test +which defines those, and if we've chosen to use the stdint types at +configure time then we know exactly which header(s) are available, so +just choose the best one then and generate the header to use it. + +This patch, including the above text, is copied from a commit in the +speex repository[1]. The original commit for speex was made by Ron +. + +[1] https://git.xiph.org/?p=speex.git;a=commitdiff;h=774c87d6cb7dd8dabdd17677fc6da753ecf4aa87 + +Signed-off-by: Tanu Kaskinen +--- + configure.ac | 6 ++++++ + include/speex/speexdsp_config_types.h.in | 8 +------- + 2 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2cd2d1e..1de0c23 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -334,6 +334,12 @@ AC_SUBST([USIZE16]) + AC_SUBST([SIZE32]) + AC_SUBST([USIZE32]) + ++AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include "]) ++ ++AC_SUBST([INCLUDE_STDINT]) ++ + AC_CONFIG_FILES([ + Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec + include/Makefile include/speex/Makefile speexdsp.pc +diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in +index 02b82fd..5ea7b55 100644 +--- a/include/speex/speexdsp_config_types.h.in ++++ b/include/speex/speexdsp_config_types.h.in +@@ -1,13 +1,7 @@ + #ifndef __SPEEX_TYPES_H__ + #define __SPEEX_TYPES_H__ + +-#if defined HAVE_STDINT_H +-# include +-#elif defined HAVE_INTTYPES_H +-# include +-#elif defined HAVE_SYS_TYPES_H +-# include +-#endif ++@INCLUDE_STDINT@ + + typedef @SIZE16@ spx_int16_t; + typedef @USIZE16@ spx_uint16_t; +-- +2.1.4 + diff --git a/media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild b/media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild new file mode 100644 index 00000000000..b8f99c5a28a --- /dev/null +++ b/media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools flag-o-matic multilib-minimal + +MY_P=${P/_} +MY_P=${MY_P/_p/.} + +DESCRIPTION="Audio compression format designed for speech -- DSP" +HOMEPAGE="https://www.speex.org/" +SRC_URI="https://downloads.xiph.org/releases/speex/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_arm_neon static-libs" + +RDEPEND="!