summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-04-23 05:05:04 +0200
committerSam James <sam@gentoo.org>2021-01-22 05:21:08 +0000
commitce53c0bdeedef0181f9ac075f6f4ed869ce61607 (patch)
treecf3d9dde7f9913a615d8c2706336a11313e01cce /media-sound
parentacct-user/sndiod: New user (UID 461) (diff)
downloadgentoo-ce53c0bdeedef0181f9ac075f6f4ed869ce61607.tar.gz
gentoo-ce53c0bdeedef0181f9ac075f6f4ed869ce61607.tar.bz2
gentoo-ce53c0bdeedef0181f9ac075f6f4ed869ce61607.zip
media-sound/sndio: New Package
Related: https://bugs.gentoo.org/show_bug.cgi?id=435526 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/sndio/Manifest1
-rw-r--r--media-sound/sndio/files/sndiod3
-rw-r--r--media-sound/sndio/metadata.xml12
-rw-r--r--media-sound/sndio/sndio-1.7.0.ebuild43
4 files changed, 59 insertions, 0 deletions
diff --git a/media-sound/sndio/Manifest b/media-sound/sndio/Manifest
new file mode 100644
index 000000000000..f7209fc90808
--- /dev/null
+++ b/media-sound/sndio/Manifest
@@ -0,0 +1 @@
+DIST sndio-1.7.0.tar.gz 147989 BLAKE2B 20f5969cfd6d6a62d9c04e493eda7648f686ad394db18e43ae574db235f31a025705f40f9c6ea821e04449bc1cdbc35c23dbeff9575b71fccc92c24140341d7e SHA512 f9db7bad5f30e8790488c4d20198c8a5a51f04f94e4b1067eadd7fe0fcc6f6ced3250173a627439d661dcf6faabc7bc4786b30af013788a5c88d972f1c9dc1f8
diff --git a/media-sound/sndio/files/sndiod b/media-sound/sndio/files/sndiod
new file mode 100644
index 000000000000..ee38dcb97d94
--- /dev/null
+++ b/media-sound/sndio/files/sndiod
@@ -0,0 +1,3 @@
+#!/sbin/openrc-run
+command="sndiod"
+command_user="sndiod"
diff --git a/media-sound/sndio/metadata.xml b/media-sound/sndio/metadata.xml
new file mode 100644
index 000000000000..9df017effeb6
--- /dev/null
+++ b/media-sound/sndio/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-sound/sndio/sndio-1.7.0.ebuild b/media-sound/sndio/sndio-1.7.0.ebuild
new file mode 100644
index 000000000000..d3338773e3ff
--- /dev/null
+++ b/media-sound/sndio/sndio-1.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal
+
+DESCRIPTION="small audio and MIDI framework part of the OpenBSD project"
+HOMEPAGE="http://www.sndio.org/"
+SRC_URI="http://www.sndio.org/${P}.tar.gz"
+LICENSE="ISC"
+SLOT="0/7.0"
+KEYWORDS="~amd64"
+IUSE="alsa"
+
+DEPEND="
+ dev-libs/libbsd[${MULTILIB_USEDEP}]
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+ acct-user/sndiod
+"
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/$(get_libdir) \
+ --privsep-user=sndiod \
+ --with-libbsd \
+ $(use_enable alsa)
+}
+
+src_install() {
+ multilib-minimal_src_install
+
+ doinitd "${FILESDIR}/sndiod"
+}