summaryrefslogtreecommitdiffstats
path: root/trinity-base/arts
diff options
context:
space:
mode:
Diffstat (limited to 'trinity-base/arts')
-rw-r--r--trinity-base/arts/Manifest1
-rw-r--r--trinity-base/arts/arts-14.1.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/trinity-base/arts/Manifest b/trinity-base/arts/Manifest
index 14b820d9..d40e7921 100644
--- a/trinity-base/arts/Manifest
+++ b/trinity-base/arts/Manifest
@@ -1 +1,2 @@
DIST arts-trinity-14.1.1.tar.xz 657296 BLAKE2B 1e99b6e2215223145030828560feb2f37d2f004a7800dc4bc15553853241a7a8258db9002689d388fc83436d5511c374e51655a68f05a70717e52e617ca947c3 SHA512 6e6bd9b6e9a5b95ad0e16d50b5a55f72894595c9916718ddf2108b038218ff86ac8c084260d1e544a2b602544cdb5b5e944a4371d7196bae25f9543d18f74179
+DIST arts-trinity-14.1.2.tar.xz 657152 BLAKE2B 5aa23f1f437bfe2cd65ecfc0c9465fb6fc83d25d7b1e5cafae4e2b32ee54935f88fd13e11bd40650260da9a0ce65dd7759b9d4058e393458775e0ca62bc1f679 SHA512 9d5911ecb426efa9567d818d10af5072a63910d07d5eeec17f60e76f4f366f785a35e232c4e8c6bdf5723f7df8273222617eb0f8fd583aac3e26b3b7c58b0737
diff --git a/trinity-base/arts/arts-14.1.2.ebuild b/trinity-base/arts/arts-14.1.2.ebuild
new file mode 100644
index 00000000..6f75c2f1
--- /dev/null
+++ b/trinity-base/arts/arts-14.1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Copyright 2020-2024 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="arts"
+inherit trinity-base-2
+
+DESCRIPTION="aRts, the Trinity sound (and all-around multimedia) server/output manager"
+HOMEPAGE="https://trinitydesktop.org/"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+
+IUSE="alsa artswrappersuid jack mp3 vorbis"
+if [[ ${PV} != *9999* ]] ; then
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+SLOT="14"
+
+DEPEND="~dev-tqt/tqtinterface-${PV}
+ dev-libs/glib
+ media-libs/audiofile
+ mp3? ( media-libs/libmad )
+ alsa? ( media-libs/alsa-lib )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ jack? ( virtual/jack )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_AUDIOFILE=ON
+ -DWITH_MAD="$(usex mp3)"
+ -DWITH_ALSA="$(usex alsa)"
+ -DWITH_VORBIS="$(usex vorbis)"
+ -DWITH_JACK="$(usex jack)"
+ -DWITH_ESOUND=OFF
+ -DWITH_SNDIO=OFF
+ )
+
+ trinity-base-2_src_configure
+}
+
+src_install() {
+ trinity-base-2_src_install
+
+ # Used for realtime priority, but off by default as it is a security hazard
+ use artswrappersuid && chmod u+s "${D}/${TDEDIR}/bin/artswrapper"
+}
+
+pkg_postinst() {
+ if ! use artswrappersuid ; then
+ elog "Run chmod u+s ${TDEDIR}/bin/artswrapper to let artsd use realtime"
+ elog "priority and so avoid possible skips in sound. However, on untrusted systems"
+ elog "this creates the possibility of a DoS attack that'll use 100% cpu at realtime"
+ elog "priority, and so is off by default. See Gentoo bug #7883."
+ elog "Or, you can set the artswrappersuid USE flag to make the ebuild do this."
+ fi
+}