diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-08 00:08:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-08 00:08:11 +0100 |
commit | adc09cc4e6ebf7931735c02c0c272b4b885c2b30 (patch) | |
tree | d1e752b60c2ed90ae9e427cbe2b07061e3879191 /media-sound/apulse | |
parent | 941687623283212199cbe6e36f7d61b89d6222b2 (diff) |
gentoo auto-resync : 08:06:2024 - 00:08:11
Diffstat (limited to 'media-sound/apulse')
-rw-r--r-- | media-sound/apulse/Manifest | 4 | ||||
-rw-r--r-- | media-sound/apulse/apulse-0.1.13-r3.ebuild | 72 | ||||
-rw-r--r-- | media-sound/apulse/files/apulse-0.1.13-libgen.patch | 13 | ||||
-rw-r--r-- | media-sound/apulse/metadata.xml | 23 |
4 files changed, 103 insertions, 9 deletions
diff --git a/media-sound/apulse/Manifest b/media-sound/apulse/Manifest index 0df48d811fe6..ec8575ca1713 100644 --- a/media-sound/apulse/Manifest +++ b/media-sound/apulse/Manifest @@ -1,7 +1,9 @@ AUX apulse 488 BLAKE2B 20231c1041e1658e993ecc5f0dbd37f1d7e718aa5095b0bcb18b6c78639da5da29d5aa72fe77c774598d199e8284cceaab9fdb9aa07cf734957fb1c2d8d617c0 SHA512 2b1ebb3d574af2469f50a42e324b3367b5e08d3de00076620ce2133226d544ab2507e6d752ff3ed427319978ab5e1a0e73189368666a5c7f5ed61f1294417228 +AUX apulse-0.1.13-libgen.patch 197 BLAKE2B 0536459865fc80fa2b07667bf03876aa87ed7805c0f2348180a8f114e16dabc5262bc22e6ab018e0f612d97f956804ca5ab5c80153244b258ab71476cc2de925 SHA512 e8e920223b4e2f671ae79777fc7609acea39490bce9688fc97ea0a643e46475a73fa02ca2f03278d1099c57a255ee551004433fb7c8982e195f84715849eedbf AUX check-key-before-remove.patch 1888 BLAKE2B d8bee7f8acac213396d18d44740703746653a57d300c8d86967e83c24b73aca7d8ba5e91e38d7c3683d40c2a520cacb29210e2c1d739bf4b0403199beb9bda81 SHA512 e7edf75cdddc94a433ce387853cc59cfa40ef7fbdc955357141f42133bf9bde4e6528078d75c7d58001ab07dcaf209b0437a92445d770f6cd08f9b919e97caa4 AUX man.patch 1054 BLAKE2B 37228832250f1c1e06edf79d00a4a4d7d5433f2d9b28ebb10eacb54bcfb7478d9ef64459e87f7f43a94be0b194eba024cde60175fc324ef6dad7a4ef9e2c1db3 SHA512 c2b05dd8c42f79994ae3be5df5ac495e95bfbc14355423faa75b23863418bad4bbc33524e2b86abc9e346678256c1ff454c160ebb5e09f48d466ef99cdfa407c AUX sdk.patch 4357 BLAKE2B ad43209ebf78f1f8937bfde54c88034a9c0f426caf62da5aa70b6171e29546af97c374765bed081cdf13827add3d02e5cdb6b30adccaae03318c102dba4cff65 SHA512 f1f743d049c120f3c8d6d1387577b53e9637881d9d5e007c55b4e42feca21b170ee24146c5fb0cc050c3eb1c26659dc6363e673710ae08c76f2844306a1ca01d DIST apulse-0.1.13.tar.gz 117369 BLAKE2B 8cf527daf21420a72e46968a3b07ab61029f404a2b6574ac1f08dd40528f3e6e4baf7e38f5914b0c89252e16eec5e8f3722be51e5a61b6a71c683e994740b4bf SHA512 366385ae2304f7ff697ba70951d0753a5b1630310922e3763fd0813a73e0b4088b715135295aa2fa9111b8edcf91d82849dc31346b292b2e9db598bcdd47b007 EBUILD apulse-0.1.13-r2.ebuild 1696 BLAKE2B 7f0cc97728fd0f3dceb4ec48a3bf0ea0a695a88ae8f81f65dff21ab170a54ac22a934f2c8a56e1f4d848bc5b312e0c19a1adadc980189acd1573da68faf9e754 SHA512 9c05d3d0a67e8bc49764715525b62c1c3ad272541f2ca3c933863064619ff7183fa0f01d2212243677579477ff7653b6732df544be3a87b0f1ad6b87db697d8d -MISC metadata.xml 452 BLAKE2B 677cdcfe1dfaf7bddf83191159ebba05f9126e09ef6c7376e232e910f6c1d3f7e48332dff0659c9a4c7f9891e28b2c06ef7cebf67e9407f8751e04fda0d11998 SHA512 307b0856a2c81f552f345736748a66429e31d6d07d6aa32ef5f1c4e6c6d54877ebfb2830cd54e6a01f4394e38368df5893631418e06839032c239b9497b2ae22 +EBUILD apulse-0.1.13-r3.ebuild 1740 BLAKE2B a8e783d834e214e382a84582f5729f8443bba6bb247ac2063c1e96de56dbe2a3abb7ae87eb449d5ca1cd2827b1b25737736efccc3f14cfd44963eea65a97e79c SHA512 35663145b01ad8f134c86a1ed0221d48b1516a70dd141cd2857059a86b44af52545a19fd8482c1704acc9c5107ac940f1bac9360e6cf16d1a06d18d96aad6e63 +MISC metadata.xml 677 BLAKE2B b5516cfc33507ab71b49170b08ef5fd5873a873ea079bdcd67c3f2d492ae8395f27cb39d3eb248b8c091aaaf257d7f07c8eea748416e0a706e02df2c1ab2a00b SHA512 3f83461406341c8952c8bb1ad5bebc8824bd9019ebfc5f743e0a8a2445744a78451fc50c6c0d724ea1f5cb7ccece0b8d5e4dc174e147f229c9cf80e097959763 diff --git a/media-sound/apulse/apulse-0.1.13-r3.ebuild b/media-sound/apulse/apulse-0.1.13-r3.ebuild new file mode 100644 index 000000000000..1289e259187c --- /dev/null +++ b/media-sound/apulse/apulse-0.1.13-r3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib multiprocessing + +DESCRIPTION="PulseAudio emulation for ALSA" +HOMEPAGE="https://github.com/i-rinat/apulse" +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +IUSE="debug sdk test" +RESTRICT="!test? ( test )" + +DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}] + media-libs/alsa-lib[${MULTILIB_USEDEP}] + sdk? ( !media-libs/libpulse !media-sound/pulseaudio ) " +RDEPEND="${DEPEND} + !media-plugins/alsa-plugins[pulseaudio]" + +PATCHES=( + "${FILESDIR}/sdk.patch" + "${FILESDIR}/check-key-before-remove.patch" + "${FILESDIR}/man.patch" + "${FILESDIR}/apulse-0.1.13-libgen.patch" +) + +src_prepare() { + cmake_src_prepare + + if ! use sdk; then + # Ensure all relevant libdirs are added, to support all ABIs + DIRS= + _add_dir() { DIRS="${EPREFIX}/usr/$(get_libdir)/apulse${DIRS:+:${DIRS}}"; } + multilib_foreach_abi _add_dir + sed -e "s#@@DIRS@@#${DIRS}#g" "${FILESDIR}"/apulse > "${T}"/apulse || die + fi +} + +multilib_src_configure() { + local mycmakeargs=( + "-DINSTALL_SDK=$(usex sdk)" + "-DLOG_TO_STDERR=$(usex debug)" + "-DWITH_TRACE=$(usex debug)" + ) + cmake_src_configure +} + +multilib_src_test() { + _test() { + pushd tests || die + cmake -S "${S}/tests" -B . || die + emake test_ringbuffer + ctest -j "$(makeopts_jobs "${MAKEOPTS}" 999)" \ + --test-load "$(makeopts_loadavg)" || die + popd || die + } + multilib_foreach_abi _test +} + +multilib_src_install_all() { + if ! use sdk; then + _install_wrapper() { newbin "${BUILD_DIR}/apulse" "${CHOST}-apulse"; } + multilib_foreach_abi _install_wrapper + dobin "${T}/apulse" + fi + einstalldocs +} diff --git a/media-sound/apulse/files/apulse-0.1.13-libgen.patch b/media-sound/apulse/files/apulse-0.1.13-libgen.patch new file mode 100644 index 000000000000..97d33fec66b7 --- /dev/null +++ b/media-sound/apulse/files/apulse-0.1.13-libgen.patch @@ -0,0 +1,13 @@ +Fix build with musl 1.2.5 + +--- a/src/apulse-misc.c ++++ b/src/apulse-misc.c +@@ -22,6 +22,8 @@ + * SOFTWARE. + */ + ++#include <libgen.h> ++ + #include "apulse.h" + #include "trace.h" + #include "util.h" diff --git a/media-sound/apulse/metadata.xml b/media-sound/apulse/metadata.xml index dd24f7fe124f..d0158e6c160f 100644 --- a/media-sound/apulse/metadata.xml +++ b/media-sound/apulse/metadata.xml @@ -1,12 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="sdk">Install PulseAudio headers and pkg-config files. Be aware apulse is not - a full PulseAudio replacement by design and some functionality may be missing.</flag> - </use> - <upstream> - <remote-id type="github">i-rinat/apulse</remote-id> - </upstream> + <maintainer type="person" proxied="yes"> + <email>alexey+gentoo@asokolov.org</email> + <name>Alexey Sokolov</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="sdk">Install PulseAudio headers and pkg-config files. Be aware apulse is not + a full PulseAudio replacement by design and some functionality may be missing.</flag> + </use> + <upstream> + <remote-id type="github">i-rinat/apulse</remote-id> + </upstream> </pkgmetadata> |