From f1bc537f089cc8477a9a18db597cb349e1b00e91 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Jun 2018 05:02:38 +0100 Subject: gentoo resync : 16.06.2018 --- media-libs/soxr/soxr-0.1.3-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 media-libs/soxr/soxr-0.1.3-r1.ebuild (limited to 'media-libs/soxr/soxr-0.1.3-r1.ebuild') diff --git a/media-libs/soxr/soxr-0.1.3-r1.ebuild b/media-libs/soxr/soxr-0.1.3-r1.ebuild new file mode 100644 index 000000000000..ad907d56aa9e --- /dev/null +++ b/media-libs/soxr/soxr-0.1.3-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-multilib + +MY_P="${P}-Source" +DESCRIPTION="SoX Resampler library" +HOMEPAGE="https://sourceforge.net/p/soxr/wiki/Home/" +SRC_URI="mirror://sourceforge/soxr/${MY_P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ~ppc ~ppc64 sparc x86 ~amd64-fbsd" +IUSE="examples test" + +# CMakeLists.txt builds examples if either test or examples USE flag is enabled. +REQUIRED_USE="test? ( examples )" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( README TODO NEWS AUTHORS ) + +PATCHES=( + "${FILESDIR}/${PN}-0.1.1-nodoc.patch" + "${FILESDIR}/${P}-fix-pkgconfig.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES="$(usex examples)" + -DBUILD_TESTS="$(usex test)" + ) + if use examples ; then + mycmakeargs+=( + -DDOC_INSTALL_DIR="/usr/share/doc/${PF}" + ) + fi + cmake-multilib_src_configure +} + +src_install() { + cmake-multilib_src_install + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + fi +} -- cgit v1.2.3