* [gentoo-commits] repo/gentoo:master commit in: media-sound/ezstream/files/, media-sound/ezstream/
@ 2025-03-10 1:34 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-03-10 1:34 UTC (permalink / raw
To: gentoo-commits
commit: 64e215b7911aac2686163fd19ed17a27fa45f244
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Mar 1 17:15:02 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 01:34:11 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e215b7
media-sound/ezstream: add 1.0.2
Closes: https://bugs.gentoo.org/948427
Closes: https://bugs.gentoo.org/936814
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40835
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-sound/ezstream/Manifest | 1 +
media-sound/ezstream/ezstream-1.0.2.ebuild | 53 ++++++++++++++++++++++
.../files/ezstream-1.0.2-basename-in-libgen.patch | 47 +++++++++++++++++++
.../files/ezstream-1.0.2-conditional-check.patch | 21 +++++++++
4 files changed, 122 insertions(+)
diff --git a/media-sound/ezstream/Manifest b/media-sound/ezstream/Manifest
index 94500a1b45b2..da106862de0c 100644
--- a/media-sound/ezstream/Manifest
+++ b/media-sound/ezstream/Manifest
@@ -1 +1,2 @@
DIST ezstream-0.6.0.tar.gz 250448 BLAKE2B 18449d90e51a6880c6acf3d99fd449f666de811dec5dc964102d87b7d1d08dab01e3d9d8d959f4a456ba695464693fec3d990115cc6b6513fcde02c937dab1c1 SHA512 d6b621db85a0d56dcc54a8b7a0136c25342ec507f04ab397a53f46a74e85e94806e17d0a0a59e66096b5c0d97b7f98eaba95a50c1ca6c8d82aed11b854d0d33d
+DIST ezstream-1.0.2.tar.gz 514884 BLAKE2B 2184922c7c8eaf6b3cd98561dd3d3f18e79d66f8e2c06dbf80f82288becb08961e179cbb421786d2ca4024d5058b880c789110e8c72162b3f9c7f065981f4d1f SHA512 54a11b6db9fd15259bbd3cfff11d95100b4c334e19a58a39b8b98f97300c57fbcaa19dabc751d93158ec3f7eb7a7101178c99d9eba193e49b7917ed5731aa48d
diff --git a/media-sound/ezstream/ezstream-1.0.2.ebuild b/media-sound/ezstream/ezstream-1.0.2.ebuild
new file mode 100644
index 000000000000..9a9da7937529
--- /dev/null
+++ b/media-sound/ezstream/ezstream-1.0.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A command line source client for Icecast media streaming servers"
+HOMEPAGE="https://www.icecast.org/ezstream/"
+SRC_URI="https://downloads.xiph.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ dev-libs/libxml2
+ >=media-libs/libshout-2.2
+ media-libs/taglib:="
+RDEPEND="
+ ${DEPEND}
+ net-misc/icecast"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-conditional-check.patch"
+ "${FILESDIR}/${P}-basename-in-libgen.patch"
+)
+
+src_prepare() {
+ default
+ # patching mandatory dependency on libcheck from configure.ac
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-examplesdir='$(docdir)/examples' \
+ $(use_enable test check)
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ rm -f "${ED}"/usr/share/doc/${PF}/COPYING || die
+}
diff --git a/media-sound/ezstream/files/ezstream-1.0.2-basename-in-libgen.patch b/media-sound/ezstream/files/ezstream-1.0.2-basename-in-libgen.patch
new file mode 100644
index 000000000000..a835d2a30fc1
--- /dev/null
+++ b/media-sound/ezstream/files/ezstream-1.0.2-basename-in-libgen.patch
@@ -0,0 +1,47 @@
+Allow usage of "broken" POSIX basename on non-gnu linux
+systems. ALl callsites deal with path modifications already.
+Configure sets HAVE_LIBGEN_H on glibc systems, but doesn't
+link it.
+https://bugs.gentoo.org/936814
+--- a/src/mdata.c
++++ b/src/mdata.c
+@@ -24,9 +24,9 @@
+ #include <sys/wait.h>
+
+ #include <errno.h>
+-#if defined(HAVE_LIBGEN_H) && !defined(__linux__)
++#if defined(HAVE_LIBGEN_H)
+ # include <libgen.h>
+-#endif /* HAVE_LIBGEN_H && !__linux__ */
++#endif /* HAVE_LIBGEN_H */
+ #include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+--- a/src/ezstream.h
++++ b/src/ezstream.h
+@@ -32,9 +32,9 @@
+ #include <ctype.h>
+ #include <errno.h>
+ #include <fcntl.h>
+-#if defined(HAVE_LIBGEN_H) && !defined(__linux__)
++#if defined(HAVE_LIBGEN_H)
+ # include <libgen.h>
+-#endif /* HAVE_LIBGEN_H && !__linux__ */
++#endif /* HAVE_LIBGEN_H */
+ #include <limits.h>
+ #ifdef HAVE_PATHS_H
+ # include <paths.h>
+--- a/src/ezstream-cfgmigrate.c
++++ b/src/ezstream-cfgmigrate.c
+@@ -20,9 +20,9 @@
+
+ #include "compat.h"
+
+-#if defined(HAVE_LIBGEN_H) && !defined(__linux__)
++#if defined(HAVE_LIBGEN_H)
+ # include <libgen.h>
+-#endif /* HAVE_LIBGEN_H && !__linux__ */
++#endif /* HAVE_LIBGEN_H */
+ #include <limits.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/media-sound/ezstream/files/ezstream-1.0.2-conditional-check.patch b/media-sound/ezstream/files/ezstream-1.0.2-conditional-check.patch
new file mode 100644
index 000000000000..30cb74e90812
--- /dev/null
+++ b/media-sound/ezstream/files/ezstream-1.0.2-conditional-check.patch
@@ -0,0 +1,21 @@
+libcheck is used for testing only
+Condition out dependency for USE=test
+https://bugs.gentoo.org/948427
+--- a/configure.ac
++++ b/configure.ac
+@@ -39,8 +39,14 @@
+
+ AC_SYS_LARGEFILE
+
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
++AC_ARG_ENABLE([check],
++ AS_HELP_STRING([--enable-check],
++ [Enable support for running tests with libtest (default is YES)]),
++ [check_enabled=$enableval], [check_enabled=yes])
+
++AS_IF([test "x$check_enabled" = "xyes"], [
++ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
++], [])
+
+ dnl ##############
+ dnl ## COMPILER ########################################################
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-10 1:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 1:34 [gentoo-commits] repo/gentoo:master commit in: media-sound/ezstream/files/, media-sound/ezstream/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox