первая публикация

This commit is contained in:
imax-ua
2024-04-09 00:18:28 +00:00
commit afc2039b9c
139 changed files with 5697 additions and 0 deletions

6
media-sound/mpd/Manifest Normal file
View File

@@ -0,0 +1,6 @@
AUX mpd-0.21.1.logrotate 120 BLAKE2B 2111ba897a77a766adf0827c4da7132d5315c7c13ba8e29d582f1030a902492945b0bad6781bbf551e83afd38b957e953215674c669aa2745c1dfa004b20d4b6 SHA512 4a610d4805c32989673d6295fdf4290dc29b11e5b5f3baa2aa957ef9334566f13fa1937e70dc6fe414277e6a026442e4c7e4b406aaf424b96b392da0200ec732
AUX mpd-0.21.4.init 767 BLAKE2B 74879e5f52365f987ac53a8ee154f29b4d7f5287cb2a965b180b3ed4a17dcdc68acea5dbe0b3adc99869270fb93a3f68e6728fad0776b9ce500efb6206f4db3c SHA512 36f3246835d6476e8f4f26795f8148f46b04015141894cdf849bfdd04b1cf5aa7a3d5960587f00e2c7d0f71568ca20fee619b95415df4cd0e4978ce95ca5f897
AUX mpd-0.23.11-boost-1.81.patch 971 BLAKE2B 56c0963fb2169a8588f0b3dd3ada14859a1de969f455d537f4ac620269a95df77b7029a665824ae81179b7a7ccdbe1943fc451c90faa8171ce9982f72c52e377 SHA512 d8fe43ebe78cff16e7d773e5687960cd5f5ca65d2094d2d9f09c3bd22614ef3e6ad0982db5f8d0427724a12663afed48f20ab41236d2da58a007749955a6b9aa
DIST mpd-0.23.12.tar.xz 774708 BLAKE2B b218d9f477e92842638e3fba44c84957a3f656adaaf1ece998847db8d64883b8c997703206f74b37043888757f5f628799a3a35b25ea991f9ad00df1c4ad5e71 SHA512 54495b839d86b47ae6e2f6cf4e1baebd0e8eb924742e9db42cc7462ffc4b6f650b83f3eaea291fe905ff5f1975cf875537ffd23a111724013ce58e6df26ce36e
EBUILD mpd-0.23.12.ebuild 6657 BLAKE2B b198c10adb8fc7f0d2bb59c3aa04b6864c814458f82763e61c3ddd2632ae340e68a1107ced06c8414102e61feaee48bdac94f9aaaf4544a24ecf343af8ef3493 SHA512 4a4643acf90d8ceebe884dafe3554e7524de2b1c2af2899268b061e7c7618d722b9b75dc9c69f4d41c7fbb2cefd2050b9503ae7e987cca605f64b75bc017ef4a
MISC metadata.xml 2805 BLAKE2B afe65d7428c79de96b99855e74d8a474df33dbd71fe9f9f65f64270126dea5ca9138a533c9f4f8d422722352574ccbfec2ec64f5e492869e9c97fbc84dd2c1a1 SHA512 74c249f71a819f5747739c6c720d48edf52b62012f9d1fd30bb6027bd3c5794161f7a70b7c87d78a60fa46e37fc94aa449e0b8825bb8d3eea32143bf240e1d92

View File

@@ -0,0 +1,9 @@
/var/lib/mpd/log {
missingok
weekly
delaycompress
compress
postrotate
/etc/init.d/mpd --quiet reload
endscript
}

View File

@@ -0,0 +1,34 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: CFGFILE=${CFGFILE:=/etc/mpd.conf}
depend() {
need localmount
use net netmount nfsmount alsasound esound pulseaudio
config ${CFGFILE}
}
get_config() {
x=$1
test -e ${CFGFILE} || return 1
sed -n \
-e '/^[ \t]*'${x}'/{s:^[ \t]*'${x}'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' \
${CFGFILE}
}
extra_started_commands='reload'
# Required by io_uring
rc_ulimit="-l 65535"
command=/usr/bin/mpd
command_args=${CFGFILE}
required_files=${CFGFILE}
pidfile=$(get_config pid_file)
description="Music Player Daemon"
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --pidfile ${pidfile} --signal HUP
eend $?
}

View File

@@ -0,0 +1,30 @@
https://bugs.gentoo.org/886521
https://github.com/MusicPlayerDaemon/MPD/issues/1693
https://github.com/MusicPlayerDaemon/MPD/commit/e4b055eb6d08c5c8f8d85828ce4005d410e462cb
From e4b055eb6d08c5c8f8d85828ce4005d410e462cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Thu, 1 Dec 2022 08:29:23 +0700
Subject: [PATCH] v0.23.x: RemoteTagCache: add missing include
Fix build with Boost 1.81.0. `<array>` was included by one of those boost headers,
however, it's no longer included as of Boost 1.81.0.
`master` doesn't use `std::array` in this file.
While we're at it, add all necessary inclusion files.
--- a/src/RemoteTagCache.hxx
+++ b/src/RemoteTagCache.hxx
@@ -28,7 +28,11 @@
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/unordered_set.hpp>
+#include <array>
+#include <functional>
+#include <memory>
#include <string>
+#include <utility>
class RemoteTagCacheHandler;

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nex+b-g-o@nexadn.de</email>
<name>Adrian Schollmeyer</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="cdio">Use libcdio for ISO9660 parsing support</flag>
<flag name="chromaprint">Enable ChromaPrint / AcoustID support</flag>
<flag name="cue">Enable CUE sheet support</flag>
<flag name="curl">Support for web stream listening</flag>
<flag name="eventfd">Use the eventfd function in MPD's event loop</flag>
<flag name="faad">Use external faad library for AAC decoding</flag>
<flag name="fifo">Support writing audio to a FIFO</flag>
<flag name="fluidsynth">Enables Fluidsynth MIDI software synthesis (discouraged)</flag>
<flag name="gme">Enables support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats.</flag>
<flag name="id3tag">Support for ID3 tags</flag>
<flag name="inotify">Use the Linux kernel inotify subsystem to notice changes to mpd music library</flag>
<flag name="lame">Support for MP3 streaming via Icecast2</flag>
<flag name="libmpdclient">Enable support for remote mpd databases</flag>
<flag name="libsoxr">Enable the libsoxr resampler</flag>
<flag name="mpg123">Enable support for mp3 decoding over <pkg>media-sound/mpg123</pkg></flag>
<flag name="network">Enables network streaming support</flag>
<flag name="nfs">Enable support for the Network File System</flag>
<flag name="openmpt">OpenMPT decoder plugin</flag>
<flag name="pipe">Support writing audio to a pipe</flag>
<flag name="pipewire">PipeWire support</flag>
<flag name="qobuz">Build plugin to access qobuz</flag>
<flag name="recorder">Enables output plugin for recording radio streams</flag>
<flag name="sid">Build with SID (Commodore 64 Audio) support</flag>
<flag name="signalfd">Use the signalfd function in MPD's event loop</flag>
<flag name="snapcast">Snapcast audio plugin</flag>
<flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag>
<flag name="soundcloud">Build plugin to access soundcloud</flag>
<flag name="systemd">Enable support for systemd socket activation</flag>
<flag name="twolame">Support twolame MPEG-2 encoding</flag>
<flag name="webdav">Enable using music from a WebDAV share</flag>
<flag name="wildmidi">Enable MIDI support via wildmidi</flag>
</use>
<upstream>
<remote-id type="github">MusicPlayerDaemon/MPD</remote-id>
<bugs-to>https://github.com/MusicPlayerDaemon/MPD/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,251 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic linux-info meson systemd xdg
DESCRIPTION="The Music Player Daemon (mpd)"
HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv x86"
IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl doc +dbus
+eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
jack lame libmpdclient libsamplerate libsoxr +mad mikmod mms
modplug mpg123 musepack +network nfs openal openmpt opus oss pipe pipewire pulseaudio qobuz
recorder samba selinux sid signalfd snapcast sndfile sndio soundcloud sqlite systemd
test twolame udisks vorbis wavpack webdav wildmidi upnp
zeroconf zip zlib"
OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pipewire pulseaudio snapcast sndio recorder"
DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod
modplug mpg123 musepack opus openmpt flac sid vorbis wavpack wildmidi"
ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
REQUIRED_USE="
|| ( ${OUTPUT_PLUGINS} )
|| ( ${DECODER_PLUGINS} )
network? ( || ( ${ENCODER_PLUGINS} ) )
recorder? ( || ( ${ENCODER_PLUGINS} ) )
qobuz? ( curl soundcloud )
soundcloud? ( curl qobuz )
udisks? ( dbus )
upnp? ( curl expat )
webdav? ( curl expat )
"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/libfmt:=
dev-libs/libpcre2
media-libs/libogg
sys-libs/liburing:=
alsa? (
media-libs/alsa-lib
media-sound/alsa-utils
)
ao? ( media-libs/libao:=[alsa?,pulseaudio?] )
audiofile? ( media-libs/audiofile:= )
bzip2? ( app-arch/bzip2 )
cdio? (
dev-libs/libcdio:=
dev-libs/libcdio-paranoia
)
chromaprint? ( media-libs/chromaprint )
curl? ( net-misc/curl )
dbus? ( sys-apps/dbus )
doc? ( dev-python/sphinx )
expat? ( dev-libs/expat )
faad? ( media-libs/faad2 )
ffmpeg? ( media-video/ffmpeg:= )
flac? ( media-libs/flac:= )
fluidsynth? ( media-sound/fluidsynth )
gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
icu? (
dev-libs/icu:=
virtual/libiconv
)
id3tag? ( media-libs/libid3tag:= )
jack? ( virtual/jack )
lame? ( network? ( media-sound/lame ) )
libmpdclient? ( media-libs/libmpdclient )
libsamplerate? ( media-libs/libsamplerate )
libsoxr? ( media-libs/soxr )
mad? ( media-libs/libmad )
mikmod? ( media-libs/libmikmod )
mms? ( media-libs/libmms )
modplug? ( media-libs/libmodplug )
mpg123? ( media-sound/mpg123 )
musepack? ( media-sound/musepack-tools )
network? ( >=media-libs/libshout-2.4.0 )
nfs? ( net-fs/libnfs )
openal? ( media-libs/openal )
openmpt? ( media-libs/libopenmpt )
opus? ( media-libs/opus )
pulseaudio? ( media-sound/pulseaudio )
pipewire? ( media-video/pipewire:= )
qobuz? ( dev-libs/libgcrypt:0 )
samba? ( net-fs/samba )
selinux? ( sec-policy/selinux-mpd )
sid? ( || (
media-libs/libsidplay:2
media-libs/libsidplayfp
) )
snapcast? ( media-sound/snapcast )
sndfile? ( media-libs/libsndfile )
sndio? ( media-sound/sndio )
soundcloud? ( >=dev-libs/yajl-2:= )
sqlite? ( dev-db/sqlite:3 )
systemd? ( sys-apps/systemd:= )
twolame? ( media-sound/twolame )
udisks? ( sys-fs/udisks:2 )
upnp? ( net-libs/libupnp:0 )
vorbis? ( media-libs/libvorbis )
wavpack? ( media-sound/wavpack )
wildmidi? ( media-sound/wildmidi )
zeroconf? ( net-dns/avahi[dbus] )
zip? ( dev-libs/zziplib:= )
zlib? ( sys-libs/zlib:= )"
DEPEND="${RDEPEND}
dev-libs/boost:=
test? ( dev-cpp/gtest )"
BDEPEND="virtual/pkgconfig"
pkg_setup() {
if use eventfd; then
CONFIG_CHECK+=" ~EVENTFD"
ERROR_EVENTFD="${P} requires eventfd in-kernel support."
fi
if use signalfd; then
CONFIG_CHECK+=" ~SIGNALFD"
ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
fi
if use inotify; then
CONFIG_CHECK+=" ~INOTIFY_USER"
ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
fi
if use eventfd || use signalfd || use inotify; then
linux-info_pkg_setup
fi
elog "If you will be starting mpd via ${EROOT}/etc/init.d/mpd, please make sure that MPD's pid_file is _set_."
}
src_configure() {
local emesonargs=(
$(meson_feature bzip2)
$(meson_feature cdio cdio_paranoia)
$(meson_feature chromaprint)
$(meson_use cue)
$(meson_feature curl)
$(meson_feature dbus)
$(meson_use eventfd)
$(meson_feature expat)
$(meson_feature icu)
$(meson_feature id3tag)
$(meson_use inotify)
-Dipv6=enabled
$(meson_feature cdio iso9660)
$(meson_feature libmpdclient)
$(meson_feature libsamplerate)
$(meson_feature mms)
$(meson_feature nfs)
$(meson_use signalfd)
$(meson_feature samba smbclient)
$(meson_feature libsoxr soxr)
$(meson_feature sqlite)
$(meson_feature systemd)
$(meson_use test)
$(meson_feature udisks)
-Dupnp=$(usex upnp pupnp disabled)
$(meson_feature webdav)
-Dzeroconf=$(usex zeroconf avahi disabled)
$(meson_feature zlib)
$(meson_feature zip zzip)
)
emesonargs+=(
$(meson_feature alsa)
$(meson_feature ao)
$(meson_use fifo)
$(meson_feature jack)
$(meson_feature openal)
$(meson_feature oss)
$(meson_use pipe)
$(meson_feature pipewire)
$(meson_feature pulseaudio pulse)
$(meson_use recorder)
$(meson_use snapcast)
$(meson_feature sndio)
)
if use samba || use upnp; then
emesonargs+=( -Dneighbor=true )
fi
append-lfs-flags
append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/sidplay/builders"
if use network; then
emesonargs+=(
-Dshine=disabled
-Dshout=enabled
$(meson_feature vorbis vorbisenc)
-Dhttpd=true
$(meson_feature lame)
$(meson_feature twolame)
$(meson_use audiofile wave_encoder)
)
fi
emesonargs+=(
# media-libs/adplug is not packaged anymore
-Dadplug=disabled
$(meson_feature audiofile)
$(meson_feature faad)
$(meson_feature ffmpeg)
$(meson_feature flac)
$(meson_feature fluidsynth)
$(meson_feature gme)
$(meson_feature mad)
$(meson_feature mikmod)
$(meson_feature modplug)
$(meson_feature musepack mpcdec)
$(meson_feature mpg123)
$(meson_feature openmpt)
$(meson_feature opus)
$(meson_feature sid sidplay)
$(meson_feature sndfile)
$(meson_feature vorbis)
$(meson_feature wavpack)
$(meson_feature wildmidi)
$(meson_feature qobuz)
$(meson_feature soundcloud)
--libdir="/usr/$(get_libdir)"
$(meson_feature doc documentation)
-Dsolaris_output=disabled
-Ddatabase=true
-Ddsd=true
-Dio_uring=enabled
-Dtcp=true
-Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
-Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
$(meson_feature icu iconv)
)
meson_src_configure
}

View File

@@ -0,0 +1,2 @@
DIST pamixer-1.4.tar.gz 17614 BLAKE2B afd8b26d987d85c043e88870805b5504ff1f7fb96583b8002dfe106ba4d9a25cf429d7ff81d4ab8a2c75501d5926136089b68fe919c997dd3bb6d4662957c66b SHA512 e3916ed8dc020bb43e57994a9f35a506147a0fde42b88c30c661cbeffa40e0f74cae66cd015394e524684c32f9674de3e3763a1396a3e1b9aecbfdc3ed117fe4
EBUILD pamixer-1.4.ebuild 599 BLAKE2B bb3950eec8ded3963e38c1f40d6d42a38539dc56503ee77897e58cbfc3e39fbd894cfd12f3879109b3b9bbe294d03960f622094a8ffa8ad6df1332d417d0ec6f SHA512 3810a6ddd8094f3e8a9e9cea70737065f0b7d3e59af1c7b63e1a7d61be13f98f9cc4ca29b9aa47337f61c1276536a8903f1f6fa9d5d0352dfe1fcec264a9bdb8

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Pulseaudio command line mixer."
HOMEPAGE="https://github.com/cdemoulins/pamixer"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/cdemoulins/pamixer"
else
SRC_URI="https://github.com/cdemoulins/pamixer/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86"
fi
RESTRICT="mirror"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND="
dev-libs/boost
media-sound/pulseaudio"
DEPEND="${RDEPEND}"
src_install() {
dobin ${PN}
dodoc README.rst
}