From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F0918158128 for ; Sun, 15 Jun 2025 02:07:32 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id DB092342503 for ; Sun, 15 Jun 2025 02:07:32 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BD8D71104DC; Sun, 15 Jun 2025 02:07:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B30A81104DC for ; Sun, 15 Jun 2025 02:07:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 635FA3423E3 for ; Sun, 15 Jun 2025 02:07:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0759729B1 for ; Sun, 15 Jun 2025 02:07:28 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749953115.2ae72c951c5e2ed68e3b88b3f3d557b3376c0cd1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libtheora/files/, media-libs/libtheora/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libtheora/Manifest media-libs/libtheora/files/libtheora-1.2.0-flags.patch media-libs/libtheora/libtheora-1.2.0.ebuild X-VCS-Directories: media-libs/libtheora/files/ media-libs/libtheora/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2ae72c951c5e2ed68e3b88b3f3d557b3376c0cd1 X-VCS-Branch: master Date: Sun, 15 Jun 2025 02:07:28 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cc005a8b-166c-45b4-9e28-70ccaf092008 X-Archives-Hash: 238e07844770de8e0bfbeed101b71d58 commit: 2ae72c951c5e2ed68e3b88b3f3d557b3376c0cd1 Author: Sam James gentoo org> AuthorDate: Sun Jun 15 02:00:22 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 15 02:05:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ae72c95 media-libs/libtheora: add 1.2.0 Signed-off-by: Sam James gentoo.org> media-libs/libtheora/Manifest | 1 + .../libtheora/files/libtheora-1.2.0-flags.patch | 13 ++++ media-libs/libtheora/libtheora-1.2.0.ebuild | 89 ++++++++++++++++++++++ 3 files changed, 103 insertions(+) diff --git a/media-libs/libtheora/Manifest b/media-libs/libtheora/Manifest index 174c8d4aaa5b..d0b5df471abe 100644 --- a/media-libs/libtheora/Manifest +++ b/media-libs/libtheora/Manifest @@ -1 +1,2 @@ DIST libtheora-1.1.1.tar.xz 1434496 BLAKE2B f5df62c68c31537582f8a2ea64dba6b01cc056f364aa06fe905e42cc7aa8c78d7de89419dd52d586210ea29cdfdb24c2ff01e490c9b137e5d2f1845a2aa430de SHA512 032fb60f10ac0074ec87d5f8c586702309edc50dc0d2842d2f9b9c46ebd1500acc399e9309f858f318fff5b8fbe953234db3afb54ed74a03d0f2c6ee8c3ed481 +DIST libtheora-1.2.0.tar.xz 1803124 BLAKE2B f1264e9d5b0624f41780d7b6815f295309529f3c21a1aff9536239c9691b916912c9d3a1877e58506c7e1a37f1367c48d9b0765fe27f6c1db69a361aa9865eee SHA512 849db0c916f0f0b1237a4893594ff4b9e72d4ad1dca42f3f2979af5971f42c3fe77a75b181dfdd1c1353bbca4c832d6ab43f6d509c0650901c692e96ceab5f26 diff --git a/media-libs/libtheora/files/libtheora-1.2.0-flags.patch b/media-libs/libtheora/files/libtheora-1.2.0-flags.patch new file mode 100644 index 000000000000..508525340999 --- /dev/null +++ b/media-libs/libtheora/files/libtheora-1.2.0-flags.patch @@ -0,0 +1,13 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -202,8 +202,8 @@ else + case $host in + *) + DEBUG="-g -Wall -Werror=uninitialized -Winit-self -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES" +- CFLAGS="-Wall -Werror=uninitialized -Winit-self -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops" +- PROFILE="-Wall -Werror=uninitialized -Winit-self -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";; ++ CFLAGS="-Wall -Werror=uninitialized -Winit-self -Wno-parentheses" ++ PROFILE="-Wall -Werror=uninitialized -Winit-self -Wno-parentheses -pg -g -fno-inline-functions -DDEBUG";; + esac + fi + CFLAGS="$CFLAGS $cflags_save" diff --git a/media-libs/libtheora/libtheora-1.2.0.ebuild b/media-libs/libtheora/libtheora-1.2.0.ebuild new file mode 100644 index 000000000000..b843dca5b51b --- /dev/null +++ b/media-libs/libtheora/libtheora-1.2.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +DESCRIPTION="The Theora Video Compression Codec" +HOMEPAGE="https://www.theora.org" +SRC_URI="https://downloads.xiph.org/releases/theora/${P/_}.tar.xz" +S="${WORKDIR}"/${P/_} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="doc +encode examples static-libs" + +REQUIRED_USE="examples? ( encode )" # bug #285895 + +RDEPEND=" + >=media-libs/libogg-1.3.0:=[${MULTILIB_USEDEP}] + encode? ( >=media-libs/libvorbis-1.3.3-r1:=[${MULTILIB_USEDEP}] ) + examples? ( + media-libs/libpng:= + >=media-libs/libsdl-0.11.0 + media-libs/libvorbis:= + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/doxygen ) +" + +VARTEXFONTS=${T}/fonts + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.0-flags.patch +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + use doc || export ac_cv_prog_HAVE_DOXYGEN=false + + local myconf=( + # --disable-spec because LaTeX documentation has been prebuilt + # ditto docs + --disable-doc + --disable-spec + $(use_enable encode) + $(multilib_native_use_enable examples) + $(use_enable static-libs static) + ) + + ECONF_SOURCE="${S}" econf "${myconf[@]}" +} + +multilib_src_install() { + emake \ + DESTDIR="${D}" \ + docdir="${EPREFIX}"/usr/share/doc/${PF} \ + install + + if multilib_is_native_abi && use examples ; then + dobin examples/.libs/png2theora + + local bin + for bin in dump_{psnr,video} {encoder,player}_example; do + newbin examples/.libs/${bin} theora_${bin} + done + fi +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -delete || die + + einstalldocs + + if use examples ; then + docinto examples + dodoc examples/*.[ch] + docompress -x /usr/share/doc/${PF}/examples + docinto . + fi +}