commit:     14bf77be8934688e6bbd41720c54501e8150bf66
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sat Jan  3 08:27:20 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  4 16:45:36 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14bf77be

media-sound/darkice: add 1.6

update EAPI 7 -> 8

rm debug useflag (add -g)
add fdk-aac and flac support
add missing media-libs/libogg for opus and vorbis
enable one output (alsa) and one encoder (vorbis) by default

add initd using variables defined in bug 261005

update metadata, remove old repos sf/google

Closes: https://bugs.gentoo.org/261005
Closes: https://bugs.gentoo.org/798426
Closes: https://bugs.gentoo.org/934589
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45245
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/darkice/Manifest            |  1 +
 media-sound/darkice/darkice-1.6.ebuild  | 76 +++++++++++++++++++++++++++++++++
 media-sound/darkice/files/darkice.initd | 23 ++++++++++
 media-sound/darkice/metadata.xml        |  5 +--
 4 files changed, 102 insertions(+), 3 deletions(-)

diff --git a/media-sound/darkice/Manifest b/media-sound/darkice/Manifest
index 4d9969d176f2..b9fe1c4b956f 100644
--- a/media-sound/darkice/Manifest
+++ b/media-sound/darkice/Manifest
@@ -1 +1,2 @@
 DIST darkice-1.4.tar.gz 364782 BLAKE2B 
6097ddc022c4ac8dfba2deea2b6ab6e6ad86e49cc542d573572643faf6091a2ed2996f0e5c24045c22a60e972e4222c2ecd80342b2641fae52610778b9775aee
 SHA512 
708ab08a45e216dce350f6cd36374e10d4606f77f0cde4dfbf35675d9d0778fb7a013b49fd62d713039d5fcfb9e7d66e6b7ae14acf1e5f142685eecdf7a865bc
+DIST darkice-1.6.tar.gz 5565194 BLAKE2B 
285bb4a07682bce7b57925d5ab1d18e5b231417590e283da062ac13a00c19e782a2910316f8fd0d077e87df22b2cebf952d9980c09ecff8c0da4416b777e3e02
 SHA512 
efa66041850307a36c6a76000e62644ceba97b7ec7a0b4329c59a975fbf4ef617f961b7a7c0e5dc67b8c0f1d3b5baf03ae61202dedb4c55efe68662194acb112

diff --git a/media-sound/darkice/darkice-1.6.ebuild 
b/media-sound/darkice/darkice-1.6.ebuild
new file mode 100644
index 000000000000..bed7ee8532e7
--- /dev/null
+++ b/media-sound/darkice/darkice-1.6.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="live audio streamer"
+HOMEPAGE="http://www.darkice.org/";
+SRC_URI="https://github.com/rafael2k/darkice/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${P}/${PN}/trunk"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+ENCODERS="aac fdk flac mp3 opus twolame +vorbis"
+OUTPUTS="+alsa jack pulseaudio"
+IUSE="libsamplerate ${ENCODERS} ${OUTPUTS}"
+REQUIRED_USE="
+       || ( ${ENCODERS//+/} )
+       || ( ${OUTPUTS//+/} )
+       fdk? ( libsamplerate )
+"
+
+RDEPEND="
+       aac? ( media-libs/faac )
+       alsa? ( media-libs/alsa-lib )
+       fdk? ( media-libs/fdk-aac:= )
+       flac? (
+               media-libs/flac:=
+               media-libs/libogg
+       )
+       jack? ( virtual/jack )
+       libsamplerate? ( media-libs/libsamplerate )
+       mp3? ( media-sound/lame )
+       opus? (
+               media-libs/libogg
+               media-libs/opus
+       )
+       pulseaudio? ( media-libs/libpulse )
+       twolame? ( media-sound/twolame )
+       vorbis? (
+               media-libs/libogg
+               media-libs/libvorbis
+       )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_with aac faac)
+               $(use_with alsa)
+               $(use_with fdk fdkaac)
+               $(use_with flac)
+               $(use_with jack)
+               $(use_with libsamplerate samplerate)
+               $(use_with mp3 lame)
+               $(use_with opus)
+               $(use_with pulseaudio)
+               $(use_with twolame)
+               $(use_with vorbis)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}

diff --git a/media-sound/darkice/files/darkice.initd 
b/media-sound/darkice/files/darkice.initd
new file mode 100644
index 000000000000..307a0b4fe54c
--- /dev/null
+++ b/media-sound/darkice/files/darkice.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: ${DARKICE_USER:=root}
+: ${DARKICE_GROUP:=root}
+: ${DARKICE_LOGFILE:=/var/log/${RC_SVCNAME}.log}
+
+name="darkice"
+description="live audio streamer"
+command=/usr/bin/darkice
+command_args="${DARKICE_OPTS}"
+command_user="${DARKICE_USER}:${DARKICE_GROUP}"
+command_background=true
+output_log="${DARKICE_LOGFILE}"
+error_log="${DARKICE_LOGFILE}"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+       need net
+       after icecast
+       after jackd
+}

diff --git a/media-sound/darkice/metadata.xml b/media-sound/darkice/metadata.xml
index 12ca22f989d4..61260b5a0ad4 100644
--- a/media-sound/darkice/metadata.xml
+++ b/media-sound/darkice/metadata.xml
@@ -6,11 +6,10 @@
                <name>Gentoo Sound project</name>
        </maintainer>
        <use>
-               <flag name="twolame">Build with twolame support</flag>
+               <flag name="fdk">Build with HE-AAC support using 
<pkg>media-libs/fdk-aac</pkg></flag>
+               <flag name="twolame">Build with twolame support using 
<pkg>media-sound/twolame</pkg></flag>
        </use>
        <upstream>
                <remote-id type="github">rafael2k/darkice</remote-id>
-               <remote-id type="google-code">darkice</remote-id>
-               <remote-id type="sourceforge">darkice</remote-id>
        </upstream>
 </pkgmetadata>

Reply via email to