summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-06-30 17:07:29 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-06-30 17:07:29 -0500
commit4a3c2bdd624e1bc344718a6c7cfe149a41281ad2 (patch)
treebaf48a642cccc0291fefec53389369db932ea1b6 /media-libs/pcaudiolib
parentdev-lang/fpc: re-add old-style gold check with updated message (diff)
downloadgentoo-4a3c2bdd624e1bc344718a6c7cfe149a41281ad2.tar.gz
gentoo-4a3c2bdd624e1bc344718a6c7cfe149a41281ad2.tar.bz2
gentoo-4a3c2bdd624e1bc344718a6c7cfe149a41281ad2.zip
media-libs/pcaudiolib: new package, portable c audio library
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'media-libs/pcaudiolib')
-rw-r--r--media-libs/pcaudiolib/Manifest1
-rw-r--r--media-libs/pcaudiolib/metadata.xml17
-rw-r--r--media-libs/pcaudiolib/pcaudiolib-1.1.ebuild44
3 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/pcaudiolib/Manifest b/media-libs/pcaudiolib/Manifest
new file mode 100644
index 000000000000..eeceaf3b6381
--- /dev/null
+++ b/media-libs/pcaudiolib/Manifest
@@ -0,0 +1 @@
+DIST pcaudiolib-1.1.tar.gz 34049 BLAKE2B 7c6ce1532c47db30db2b80be690453257148be9a7115cd24dabda3dfcaca667d5c3a8278276f278556406144461cda48905ce581f0fde2f8429b3f829a948a36 SHA512 d503c11b355601e1e05f0f438a0cd9ce277d19fd53d3f7edf26f6e17f1f8184e8b2112a282e8ed74db8646bb5534d2a9a3c707b1742ce02ef13fd89669785007
diff --git a/media-libs/pcaudiolib/metadata.xml b/media-libs/pcaudiolib/metadata.xml
new file mode 100644
index 000000000000..e6100e145988
--- /dev/null
+++ b/media-libs/pcaudiolib/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <maintainer>
+ <name>Reece H. Dunn</name>
+ <email>msclrhd@gmail.com</email>
+ </maintainer>
+ <remote-id type="github">espeak-ng/pcaudiolib</remote-id>
+ <bugs-to>https://github.com/espeak-ng/pcaudiolib/issues</bugs-to>
+ <changelog>https://github.com/espeak-ng/pcaudiolib/raw/master/CHANGELOG.md</changelog>
+ </upstream>
+ <maintainer type="person">
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-libs/pcaudiolib/pcaudiolib-1.1.ebuild b/media-libs/pcaudiolib/pcaudiolib-1.1.ebuild
new file mode 100644
index 000000000000..eb7b4b4ff88a
--- /dev/null
+++ b/media-libs/pcaudiolib/pcaudiolib-1.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Portable C Audio Library"
+HOMEPAGE="https://github.com/espeak-ng/pcaudiolib"
+SRC_URI="https://github.com/espeak-ng/pcaudiolib/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+ ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+alsa oss pulseaudio"
+
+REQUIRED_USE="|| ( alsa oss pulseaudio )"
+
+RDEPEND="
+ alsa? ( >=media-libs/alsa-lib-1.0.18 )
+ pulseaudio? ( media-sound/pulseaudio )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local econf_args
+ econf_args=(
+ $(use_with oss)
+ $(use_with alsa)
+ $(use_with pulseaudio)
+ )
+ econf "${econf_args[@]}"
+}
+
+src_install() {
+ default
+ rm "${ED}"/usr/lib*/libpcaudio.{a,la} || die
+}