summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-06-22 13:23:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-06-22 13:23:16 +0000
commit7c7d63c66f48380b4d01807d1acf56c622341fa8 (patch)
tree8e72965d8c1842217bab2e35d1a51c27646882aa /media-libs
parentMove myconf population in src_compile rather than global scope. (diff)
downloadhistorical-7c7d63c66f48380b4d01807d1acf56c622341fa8.tar.gz
historical-7c7d63c66f48380b4d01807d1acf56c622341fa8.tar.bz2
historical-7c7d63c66f48380b4d01807d1acf56c622341fa8.zip
Fix typo in strict aliasing patch, thanks to Honza Macháček in bug #137573.
Package-Manager: portage-2.1.1_pre1-r1
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libdts/ChangeLog9
-rw-r--r--media-libs/libdts/files/digest-libdts-0.0.2-r53
-rw-r--r--media-libs/libdts/files/libdts-0.0.2-strict-aliasing.patch4
-rw-r--r--media-libs/libdts/libdts-0.0.2-r5.ebuild39
4 files changed, 52 insertions, 3 deletions
diff --git a/media-libs/libdts/ChangeLog b/media-libs/libdts/ChangeLog
index efe03a078cad..6c21f562d7a0 100644
--- a/media-libs/libdts/ChangeLog
+++ b/media-libs/libdts/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libdts
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/ChangeLog,v 1.31 2006/06/17 18:29:25 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/ChangeLog,v 1.32 2006/06/22 13:23:16 flameeyes Exp $
+
+*libdts-0.0.2-r5 (22 Jun 2006)
+
+ 22 Jun 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/libdts-0.0.2-strict-aliasing.patch, -libdts-0.0.2-r4.ebuild,
+ +libdts-0.0.2-r5.ebuild:
+ Fix typo in strict aliasing patch, thanks to Honza Macháček in bug #137573.
*libdts-0.0.2-r4 (17 Jun 2006)
diff --git a/media-libs/libdts/files/digest-libdts-0.0.2-r5 b/media-libs/libdts/files/digest-libdts-0.0.2-r5
new file mode 100644
index 000000000000..4870747344da
--- /dev/null
+++ b/media-libs/libdts/files/digest-libdts-0.0.2-r5
@@ -0,0 +1,3 @@
+MD5 a1c0dac95d7031498c2d19d7a3107469 libdts-0.0.2.tar.gz 295185
+RMD160 c7b904465244b887e6b62f997bcf043d241cf2ce libdts-0.0.2.tar.gz 295185
+SHA256 ef552cedb9addd5c54a1d5adf49c2b5d6932606e7161443bd88a524a9a477595 libdts-0.0.2.tar.gz 295185
diff --git a/media-libs/libdts/files/libdts-0.0.2-strict-aliasing.patch b/media-libs/libdts/files/libdts-0.0.2-strict-aliasing.patch
index 6db9bd90e9a6..4a3e545be517 100644
--- a/media-libs/libdts/files/libdts-0.0.2-strict-aliasing.patch
+++ b/media-libs/libdts/files/libdts-0.0.2-strict-aliasing.patch
@@ -12,7 +12,7 @@ Index: libdts-0.0.2/libdts/bitstream.h
+static inline uint32_t swab32(uint32_t x) {
+ union {
+ uint32_t x32;
-+ uint16_t x8[4];
++ uint8_t x8[4];
+ } u;
+ u.x32 = x;
+ return u.x8[0] << 24 | u.x8[1] << 16 | u.x8[2] << 8 | u.x8[3];
@@ -28,7 +28,7 @@ Index: libdts-0.0.2/libdts/bitstream.h
+static inline uint32_t swable32(uint32_t x) {
+ union {
+ uint32_t x32;
-+ uint16_t x8[4];
++ uint8_t x8[4];
+ } u;
+ u.x32 = x;
+ return u.x8[0] << 16 | u.x8[1] << 24 | u.x8[2] | u.x8[3] << 8;
diff --git a/media-libs/libdts/libdts-0.0.2-r5.ebuild b/media-libs/libdts/libdts-0.0.2-r5.ebuild
new file mode 100644
index 000000000000..0718be96c73a
--- /dev/null
+++ b/media-libs/libdts/libdts-0.0.2-r5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/libdts-0.0.2-r5.ebuild,v 1.1 2006/06/22 13:23:16 flameeyes Exp $
+
+inherit eutils toolchain-funcs autotools
+
+DESCRIPTION="library for decoding DTS Coherent Acoustics streams used in DVD"
+HOMEPAGE="http://www.videolan.org/dtsdec.html"
+SRC_URI="http://www.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="oss debug"
+RESTRICT="test"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mkdir "${S}/m4"
+
+ epatch "${FILESDIR}/${P}-strict-aliasing.patch"
+ epatch "${FILESDIR}/${P}-libtool.patch"
+ epatch "${FILESDIR}/${P}-freebsd.patch"
+ [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] && \
+ epatch "${FILESDIR}/${P}-visibility.patch"
+
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable oss) $(use_enable debug) || die
+ emake OPT_CFLAGS="" || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README TODO doc/libdts.txt
+}