diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /media-sound/sndio/sndio-9999.ebuild | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'media-sound/sndio/sndio-9999.ebuild')
-rw-r--r-- | media-sound/sndio/sndio-9999.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-sound/sndio/sndio-9999.ebuild b/media-sound/sndio/sndio-9999.ebuild new file mode 100644 index 000000000000..16b9e5b69d36 --- /dev/null +++ b/media-sound/sndio/sndio-9999.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="small audio and MIDI framework part of the OpenBSD project" +HOMEPAGE="http://www.sndio.org/" +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://caoua.org/git/sndio" + EGIT_MIN_CLONE_TYPE="single+tags" +else + SRC_URI="http://www.sndio.org/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="ISC" +SLOT="0/7.1" +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() { + tc-export CC + + ./configure \ + --prefix="${EPREFIX}"/usr \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --privsep-user=sndiod \ + --with-libbsd \ + $(use_enable alsa) \ + || die "Configure failed" +} + +src_install() { + multilib-minimal_src_install + + doinitd "${FILESDIR}/sndiod" +} |