summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-07-21 07:34:50 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-07-21 07:35:23 +1000
commitf2e3654b1c0fad418d7a3945239e0f3129f580f5 (patch)
tree87dc55e13041d00822d65d3f0bd924b83585e243 /media-libs/taglib
parentapp-admin/hddtemp: Add drive to hddgentoo.db (diff)
downloadgentoo-f2e3654b1c0fad418d7a3945239e0f3129f580f5.tar.gz
gentoo-f2e3654b1c0fad418d7a3945239e0f3129f580f5.tar.bz2
gentoo-f2e3654b1c0fad418d7a3945239e0f3129f580f5.zip
media-libs/taglib: version bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'media-libs/taglib')
-rw-r--r--media-libs/taglib/Manifest1
-rw-r--r--media-libs/taglib/files/taglib-1.11-install-examples.patch13
-rw-r--r--media-libs/taglib/taglib-1.11.ebuild55
3 files changed, 69 insertions, 0 deletions
diff --git a/media-libs/taglib/Manifest b/media-libs/taglib/Manifest
index fa8a1ae0afc0..27f9ea07f1d0 100644
--- a/media-libs/taglib/Manifest
+++ b/media-libs/taglib/Manifest
@@ -1,2 +1,3 @@
DIST taglib-1.10.tar.gz 1233893 SHA256 2cd09ac6d4c4ec610aa5a0a488466bd0e0f78576581ef1f344090e397ecb9c52 SHA512 bf3256b08c4fa35d9416b50d700a6634222485e481528bd2a711ae7ec0d48ee99aed66286199f30e5391218aa818a692b92c779b5fcf40617a78b767bfd9b9a5 WHIRLPOOL ae55b391a69416877674ba9bdf01fcca06a216589c620785a4d7a489b548969bf317ce8d08aab9309325564f7ebe8e4b0c51f8bf2269c6d995f2a1ad8b430790
+DIST taglib-1.11.tar.gz 1263736 SHA256 ed4cabb3d970ff9a30b2620071c2b054c4347f44fc63546dbe06f97980ece288 SHA512 f353bd0dadcc75f8a8f08919efc3aec2502166a3e23dd605f1b1c14ffe68ea1d2c59731bc4e0e4ee879ccf33436e4084e7c4d983034a1ce85fe0fa31a78dede7 WHIRLPOOL 4143fff5ad6141388ea5184b7f73772deb3245d8abb4381ae43de59624f95237c4d206d7afb776422e55fd54b83b631e391a0b6e3f5181e09f3f78de7103cff7
DIST taglib-1.9.1.tar.gz 654074 SHA256 d4da9aaaddf590ff15273b9b2c4622b6ce8377de0f40bab40155d471ede9c585 SHA512 17523b7ebdd089520289ae817b07f291be93fd0b9d3b2891eb4860a24e45943e94d25b99250c1ac477de5e51b08c39887ca13fdcc2dce17867eb60d1edb26154 WHIRLPOOL 962ec0508d8256a54ea686d4fb8d366f23f82bf10df6406c8012295ceda8416a5f23db6e450551b685798d628623eb5247e6ab7b658f955d897b86340baa5e8e
diff --git a/media-libs/taglib/files/taglib-1.11-install-examples.patch b/media-libs/taglib/files/taglib-1.11-install-examples.patch
new file mode 100644
index 000000000000..fd676c6aec14
--- /dev/null
+++ b/media-libs/taglib/files/taglib-1.11-install-examples.patch
@@ -0,0 +1,13 @@
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -37,3 +37,10 @@
+ add_executable(strip-id3v1 strip-id3v1.cpp)
+ target_link_libraries(strip-id3v1 tag)
+
++INSTALL(TARGETS
++ tagreader tagreader_c tagwriter framelist strip-id3v1
++ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
++ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
++)
++
diff --git a/media-libs/taglib/taglib-1.11.ebuild b/media-libs/taglib/taglib-1.11.ebuild
new file mode 100644
index 000000000000..5ec14d4c39c9
--- /dev/null
+++ b/media-libs/taglib/taglib-1.11.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+SLOT="0"
+IUSE="debug examples test"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[${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
+)
+
+DOCS=( AUTHORS NEWS )
+
+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=(
+ $(multilib_is_native_abi && echo -DBUILD_EXAMPLES=$(usex examples))
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_TESTS=$(usex test)
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_test() {
+ # ctest does not work
+ emake -C "${BUILD_DIR}" check
+}