summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-07-26 07:21:59 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-07-26 07:22:12 +1000
commit7ce40ea71f5a25bbc1283b15d68dd1e0e620cd27 (patch)
tree4d9347a6bdfbbc27361fb7c316e498fba4f287dd /media-libs/taglib
parentkde5.eclass: Raise Qt min version (diff)
downloadgentoo-7ce40ea71f5a25bbc1283b15d68dd1e0e620cd27.tar.gz
gentoo-7ce40ea71f5a25bbc1283b15d68dd1e0e620cd27.tar.bz2
gentoo-7ce40ea71f5a25bbc1283b15d68dd1e0e620cd27.zip
media-libs/taglib: introduce boost USE flag
Boost may optionally be used instead of GCC built-ins. Although only used at build time for header-only functions, an ABI-specific version of boost is required as the build system calls target_link_libraries. Package-Manager: portage-2.3.0
Diffstat (limited to 'media-libs/taglib')
-rw-r--r--media-libs/taglib/metadata.xml1
-rw-r--r--media-libs/taglib/taglib-1.11-r1.ebuild (renamed from media-libs/taglib/taglib-1.11.ebuild)4
2 files changed, 4 insertions, 1 deletions
diff --git a/media-libs/taglib/metadata.xml b/media-libs/taglib/metadata.xml
index ab8bb702e99f..6322822c7534 100644
--- a/media-libs/taglib/metadata.xml
+++ b/media-libs/taglib/metadata.xml
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="asf">Provide support for Microsoft's 'advanced systems format' media container.</flag>
+ <flag name="boost">Use <pkg>dev-libs/boost</pkg> instead of GCC built-ins</flag>
</use>
<upstream>
<remote-id type="github">taglib/taglib</remote-id>
diff --git a/media-libs/taglib/taglib-1.11.ebuild b/media-libs/taglib/taglib-1.11-r1.ebuild
index 5ec14d4c39c9..7a6b22f2f919 100644
--- a/media-libs/taglib/taglib-1.11.ebuild
+++ b/media-libs/taglib/taglib-1.11-r1.ebuild
@@ -13,11 +13,12 @@ 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"
+IUSE="boost debug examples test"
RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ boost? ( dev-libs/boost[${MULTILIB_USEDEP}] )
test? ( >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] )
"
@@ -42,6 +43,7 @@ src_prepare() {
multilib_src_configure() {
local mycmakeargs=(
$(multilib_is_native_abi && echo -DBUILD_EXAMPLES=$(usex examples))
+ $(cmake-utils_use_find_package boost Boost)
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTS=$(usex test)
)