forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See also: https://mail.kde.org/pipermail/taglib-devel/2023-July/003066.html https://taglib.org/#taglib-1131-release---jul-1-2023 Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST taglib-1.13.1.tar.gz 1372618 BLAKE2B 36cf9b59ded95c9996d04a86055a36a7b74a2a01c13f75826d4907abca0b982c5f9b0e4bcd6648707013108f8eaf424ab95f07c383130452aa169e2cab33f466 SHA512 986231ee62caa975afead7e94630d58acaac25a38bc33d4493d51bd635d79336e81bba60586d7355ebc0670e31f28d32da3ecceaf33292e4bc240c64bf00f35b | ||
DIST taglib-1.13.tar.gz 1371504 BLAKE2B 844aacec1a5a6baf69cc849cd09c53778b618acffc4bffb0b80835e0a0b6481c0492a5b66b51ef6fd15350b3a392f4a473410696534a7c2129cf045de6108156 SHA512 b6e3253d158b41173073c0da1915f5e4a3de947db918660817cb1c755fba7e3723ea1a335fbbc30b0dcf942348a471b493fe2ce1d52d1a808578edee14e1bfc7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From b5d07842d27e61d01c7f2cd0e0c61bc354ebf618 Mon Sep 17 00:00:00 2001 | ||
From: Andreas Sturmlechner <[email protected]> | ||
Date: Sat, 2 Sep 2023 19:53:13 +0200 | ||
Subject: [PATCH] Revert pkgconfig file path mangling | ||
|
||
Signed-off-by: Andreas Sturmlechner <[email protected]> | ||
--- | ||
bindings/c/taglib_c.pc.cmake | 4 ++-- | ||
taglib.pc.cmake | 4 ++-- | ||
2 files changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/bindings/c/taglib_c.pc.cmake b/bindings/c/taglib_c.pc.cmake | ||
index 178f1e50..7918d558 100644 | ||
--- a/bindings/c/taglib_c.pc.cmake | ||
+++ b/bindings/c/taglib_c.pc.cmake | ||
@@ -1,7 +1,7 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ | ||
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@ | ||
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ | ||
|
||
Name: TagLib C Bindings | ||
Description: Audio meta-data library (C bindings) | ||
diff --git a/taglib.pc.cmake b/taglib.pc.cmake | ||
index 3800f078..575cb310 100644 | ||
--- a/taglib.pc.cmake | ||
+++ b/taglib.pc.cmake | ||
@@ -1,7 +1,7 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ | ||
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@ | ||
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ | ||
|
||
Name: TagLib | ||
Description: Audio meta-data library | ||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 1999-2023 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" | ||
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] ) | ||
" | ||
|
||
# https://github.com/taglib/taglib/issues/1098 | ||
PATCHES=( "${FILESDIR}"/${P}-pkgconfig.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 | ||
} |