Diff taglib-1.13.1 with a taglib-2.3
| /usr/portage/media-libs/taglib/taglib-2.3.ebuild 2026-05-16 19:17:04.654398540 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 1 |
# Copyright 1999-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| ... | ... | |
| 6 | 6 |
inherit cmake-multilib |
| 7 | 7 | |
| 8 | 8 |
DESCRIPTION="Library for reading and editing audio meta data" |
| 9 |
HOMEPAGE="https://taglib.github.io/" |
|
| 9 |
HOMEPAGE="https://taglib.org" |
|
| 10 | 10 |
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
| 11 | 11 | |
| 12 | 12 |
LICENSE="LGPL-2.1 MPL-1.1" |
| 13 |
SLOT="0" |
|
| 14 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86" |
|
| 13 |
SLOT="0/2" |
|
| 14 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
| 15 | 15 |
IUSE="doc examples test" |
| 16 | 16 | |
| 17 | 17 |
RESTRICT="!test? ( test )" |
| 18 | 18 | |
| 19 |
RDEPEND=">=virtual/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]"
|
|
| 19 |
RDEPEND="virtual/zlib:=[${MULTILIB_USEDEP}]"
|
|
| 20 | 20 |
DEPEND="${RDEPEND}
|
| 21 |
test? ( >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] )
|
|
| 21 |
dev-libs/utfcpp |
|
| 22 |
test? ( dev-util/cppunit[${MULTILIB_USEDEP}] )
|
|
| 22 | 23 |
" |
| 23 | 24 |
BDEPEND=" |
| 24 | 25 |
virtual/pkgconfig |
| 25 | 26 |
doc? ( app-text/doxygen[dot] ) |
| 26 | 27 |
" |
| 27 | 28 | |
| 28 |
# https://github.com/taglib/taglib/issues/1098 |
|
| 29 |
PATCHES=( "${FILESDIR}"/${P}-pkgconfig.patch )
|
|
| 30 | ||
| 31 | 29 |
MULTILIB_CHOST_TOOLS=( |
| 32 | 30 |
/usr/bin/taglib-config |
| 33 | 31 |
) |
| 34 | 32 | |
| 35 | 33 |
multilib_src_configure() {
|
| 36 | 34 |
local mycmakeargs=( |
| 35 |
-DENABLE_CCACHE=OFF |
|
| 37 | 36 |
-DBUILD_EXAMPLES=$(multilib_native_usex examples) |
| 38 | 37 |
-DBUILD_TESTING=$(usex test) |
| 39 | 38 |
) |
| ... | ... | |
| 43 | 42 |
multilib_src_compile() {
|
| 44 | 43 |
cmake_src_compile |
| 45 | 44 | |
| 46 |
if multilib_is_native_abi; then |
|
| 47 |
use doc && cmake_build docs |
|
| 45 |
if multilib_is_native_abi && use doc; then |
|
| 46 |
cmake_build docs |
|
| 48 | 47 |
fi |
| 49 | 48 |
} |
| 50 | 49 | |
| 51 | 50 |
multilib_src_test() {
|
| 52 |
eninja check |
|
| 51 |
eninja -C "${BUILD_DIR}" check
|
|
| 53 | 52 |
} |
| 54 | 53 | |
| 55 | 54 |
multilib_src_install() {
|
| 56 |
cmake_src_install |
|
| 57 | ||
| 58 | 55 |
if multilib_is_native_abi && use doc; then |
| 59 | 56 |
HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
|
| 60 | 57 |
fi |
| 58 |
cmake_src_install |
|
| 61 | 59 |
} |