Skip to content

Commit

Permalink
media-libs/taglib: add 1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
a17r committed Sep 2, 2023
1 parent e34e106 commit 813736e
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-libs/taglib/Manifest
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
42 changes: 42 additions & 0 deletions media-libs/taglib/files/taglib-1.13.1-pkgconfig.patch
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

61 changes: 61 additions & 0 deletions media-libs/taglib/taglib-1.13.1.ebuild
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
}

0 comments on commit 813736e

Please sign in to comment.