diff options
Diffstat (limited to 'media-libs/taglib/taglib-1.11.1-r1.ebuild')
-rw-r--r-- | media-libs/taglib/taglib-1.11.1-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-libs/taglib/taglib-1.11.1-r1.ebuild b/media-libs/taglib/taglib-1.11.1-r1.ebuild new file mode 100644 index 000000000000..6eb8e24027fc --- /dev/null +++ b/media-libs/taglib/taglib-1.11.1-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-multilib + +DESCRIPTION="A library for reading and editing audio meta data" +HOMEPAGE="https://taglib.github.io/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1 MPL-1.1" +KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" +SLOT="0" +IUSE="boost debug examples test" + +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + boost? ( dev-libs/boost:=[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + test? ( >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.11-install-examples.patch + "${FILESDIR}"/${P}-CVE-2017-12678.patch +) + +MULTILIB_CHOST_TOOLS=( + /usr/bin/taglib-config +) + +src_prepare() { + cmake-utils_src_prepare + + sed -e "s/BUILD_TESTS AND NOT BUILD_SHARED_LIBS/BUILD_TESTS/" \ + -i CMakeLists.txt \ + -i ConfigureChecks.cmake || die +} + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES=$(multilib_native_usex examples) + $(cmake-utils_use_find_package boost Boost) + -DBUILD_SHARED_LIBS=ON + -DBUILD_TESTS=$(usex test) + ) + + cmake-utils_src_configure +} + +multilib_src_test() { + # ctest does not work + emake -C "${BUILD_DIR}" check +} |