diff options
Diffstat (limited to 'media-sound/cava/cava-0.3.2_p20150810.ebuild')
-rw-r--r-- | media-sound/cava/cava-0.3.2_p20150810.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/media-sound/cava/cava-0.3.2_p20150810.ebuild b/media-sound/cava/cava-0.3.2_p20150810.ebuild new file mode 100644 index 0000000..feeb4f1 --- /dev/null +++ b/media-sound/cava/cava-0.3.2_p20150810.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit linux-info + +MY_PV=fbd2af1ca9f76d5c3fa7ccc418f066db0ec01d7f +DESCRIPTION="Console-based Audio Visualizer for ALSA (=CAVA)" +HOMEPAGE="https://github.com/karlstav/cava" +SRC_URI="https://github.com/karlstav/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sci-libs/fftw + dev-libs/iniparser:4" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN}-${MY_PV} + +pkg_setup() { + if linux_config_exists ; then + einfo "Checking kernel configuration at $(linux_config_path)..." + if ! linux_chkconfig_present SND_ALOOP ; then + ewarn 'Kernel option CONFIG_SND_ALOOP=[ym] needed but missing' + fi + fi +} + +src_prepare() { + rm -R iniparser || die +} + +src_compile() { + emake SYSTEM_INIPARSER=1 VERSION=${PV} +} + +src_install() { + dodoc README.md + emake DESTDIR="${D}" PREFIX=/usr SYSTEM_INIPARSER=1 install +} |