diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-28 22:00:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-28 22:00:05 +0100 |
commit | 9c602d90d61cea9fe83c596c68a99e383ee15f73 (patch) | |
tree | bca80b41af9c142cee7e07f14622dff065e60932 /media-libs/taglib/taglib-1.13.ebuild | |
parent | cf7630078a53ff74b245b148bd722994068e28f9 (diff) |
gentoo auto-resync : 28:10:2022 - 22:00:04
Diffstat (limited to 'media-libs/taglib/taglib-1.13.ebuild')
-rw-r--r-- | media-libs/taglib/taglib-1.13.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/media-libs/taglib/taglib-1.13.ebuild b/media-libs/taglib/taglib-1.13.ebuild new file mode 100644 index 000000000000..d5cbedc1aa37 --- /dev/null +++ b/media-libs/taglib/taglib-1.13.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="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" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" +IUSE="doc examples test" + +RESTRICT="!test? ( test )" + +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + test? ( >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] ) +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen[dot] ) +" + +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + +MULTILIB_CHOST_TOOLS=( + /usr/bin/taglib-config +) + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES=$(multilib_native_usex examples) + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile + + if multilib_is_native_abi; then + use doc && cmake_build docs + fi +} + +multilib_src_test() { + eninja check +} + +multilib_src_install() { + cmake_src_install + + if multilib_is_native_abi && use doc; then + HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + fi +} |