diff options
author | Diogo Pereira <sir.suriv@gmail.com> | 2015-08-19 19:37:06 +0100 |
---|---|---|
committer | Diogo Pereira <sir.suriv@gmail.com> | 2015-08-20 21:58:46 +0100 |
commit | 99a5d239204d87bca54cc7404d299377c68d0b3e (patch) | |
tree | ad6c9be62347bea9f0dd79d2a0a73df31cdbb397 /media-libs/libgroove/libgroove-4.3.0.ebuild | |
parent | Version bump - fixes bug 557944. (diff) | |
download | gentoo-99a5d239204d87bca54cc7404d299377c68d0b3e.tar.gz gentoo-99a5d239204d87bca54cc7404d299377c68d0b3e.tar.bz2 gentoo-99a5d239204d87bca54cc7404d299377c68d0b3e.zip |
media-libs/libgroove: new ebuild
Gentoo-Bug: 558190
Diffstat (limited to 'media-libs/libgroove/libgroove-4.3.0.ebuild')
-rw-r--r-- | media-libs/libgroove/libgroove-4.3.0.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/libgroove/libgroove-4.3.0.ebuild b/media-libs/libgroove/libgroove-4.3.0.ebuild new file mode 100644 index 000000000000..ed9f0fe4ec29 --- /dev/null +++ b/media-libs/libgroove/libgroove-4.3.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib cmake-utils + +DESCRIPTION="Streaming audio processing library." +HOMEPAGE="https://github.com/andrewrk/libgroove" +SRC_URI="https://github.com/andrewrk/libgroove/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/4" +KEYWORDS="~amd64" +IUSE="+chromaprint libav +loudness +sound static-libs" + +DEPEND="libav? ( media-video/libav ) + !libav? ( media-video/ffmpeg ) + chromaprint? ( media-libs/chromaprint ) + loudness? ( media-libs/libebur128[speex] ) + sound? ( media-libs/libsdl2[sound] )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}_cflags.patch" + "${FILESDIR}/${P}_GNUInstallDirs.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_disable chromaprint FINGERPRINTER) + $(cmake-utils_use_disable loudness LOUDNESS) + $(cmake-utils_use_disable sound PLAYER) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if ! use static-libs ; then + rm "${ED%/}"/usr/$(get_libdir)/*.a || die "failed to remove static libs" + fi +} |