summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2012-04-24 15:34:08 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2012-04-24 15:34:08 +0000
commit304549c36bbe6368edb26840496c0faf1b73fd20 (patch)
treef66b4b0f21493e243476cacc55e20a8c7b9991c1 /media-libs
parentDefine OFED_SNAPSHOT wrt #413155 by <jarray52@gmail.com> (diff)
downloadgentoo-2-304549c36bbe6368edb26840496c0faf1b73fd20.tar.gz
gentoo-2-304549c36bbe6368edb26840496c0faf1b73fd20.tar.bz2
gentoo-2-304549c36bbe6368edb26840496c0faf1b73fd20.zip
Add clang patch. Thanks to Fridrich for pointing out.
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libcdr/ChangeLog6
-rw-r--r--media-libs/libcdr/files/libcdr-0.0.7-clang.patch11
-rw-r--r--media-libs/libcdr/libcdr-0.0.7.ebuild6
3 files changed, 21 insertions, 2 deletions
diff --git a/media-libs/libcdr/ChangeLog b/media-libs/libcdr/ChangeLog
index e77f3fb022ff..cb2c63df16af 100644
--- a/media-libs/libcdr/ChangeLog
+++ b/media-libs/libcdr/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/libcdr
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcdr/ChangeLog,v 1.7 2012/04/24 15:29:58 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcdr/ChangeLog,v 1.8 2012/04/24 15:34:08 scarabeus Exp $
+
+ 24 Apr 2012; Tomáš Chvátal <scarabeus@gentoo.org>
+ +files/libcdr-0.0.7-clang.patch, libcdr-0.0.7.ebuild:
+ Add clang patch. Thanks to Fridrich for pointing out.
*libcdr-0.0.7 (24 Apr 2012)
diff --git a/media-libs/libcdr/files/libcdr-0.0.7-clang.patch b/media-libs/libcdr/files/libcdr-0.0.7-clang.patch
new file mode 100644
index 000000000000..1e6b92f4d5ea
--- /dev/null
+++ b/media-libs/libcdr/files/libcdr-0.0.7-clang.patch
@@ -0,0 +1,11 @@
+--- misc/libcdr-0.0.7/src/lib/CDRParser.cpp 2012-04-24 15:40:42.000000000 +0200
++++ misc/build/libcdr-0.0.7/src/lib/CDRParser.cpp 2012-04-24 16:54:16.084829635 +0200
+@@ -466,7 +466,7 @@
+ m_collector->collectObject(level);
+ else if (listType == FOURCC_grp)
+ m_collector->collectGroup(level);
+- else if ((listType & 0xffffff) == FOURCC_CDR || (listType && 0xffffff) == FOURCC_cdr)
++ else if ((listType & 0xffffff) == FOURCC_CDR || (listType & 0xffffff) == FOURCC_cdr)
+ m_version = getCDRVersion((listType & 0xff000000) >> 24);
+ else if (listType == FOURCC_vect)
+ m_collector->collectVect(level);
diff --git a/media-libs/libcdr/libcdr-0.0.7.ebuild b/media-libs/libcdr/libcdr-0.0.7.ebuild
index 7598f1c38845..3f0d909b453c 100644
--- a/media-libs/libcdr/libcdr-0.0.7.ebuild
+++ b/media-libs/libcdr/libcdr-0.0.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcdr/libcdr-0.0.7.ebuild,v 1.1 2012/04/24 15:29:58 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcdr/libcdr-0.0.7.ebuild,v 1.2 2012/04/24 15:34:08 scarabeus Exp $
EAPI=4
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
"
+PATCHES=(
+ "${FILESDIR}/${P}-clang.patch"
+)
+
src_prepare() {
base_src_prepare
[[ -d m4 ]] || mkdir "m4"