Initial commit for bug 174342 as per request from Chainsaw.
authorSamuli Suominen <ssuominen@gentoo.org>
Sun, 22 Apr 2007 11:02:07 +0000 (11:02 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Sun, 22 Apr 2007 11:02:07 +0000 (11:02 +0000)
Package-Manager: portage-2.1.2.4

media-sound/moc/Manifest
media-sound/ttaenc/ChangeLog [new file with mode: 0644]
media-sound/ttaenc/Manifest [new file with mode: 0644]
media-sound/ttaenc/files/digest-ttaenc-3.3 [new file with mode: 0644]
media-sound/ttaenc/files/ttaenc-3.3-cflags.patch [new file with mode: 0644]
media-sound/ttaenc/files/ttaenc-3.3-warnings.patch [new file with mode: 0644]
media-sound/ttaenc/metadata.xml [new file with mode: 0644]
media-sound/ttaenc/ttaenc-3.3.ebuild [new file with mode: 0644]

index 6d05cb7052ad1bfa1ffe239a4199d729bce05239..ddefadacff35f36e82394e50e679c7c9eebf78de 100644 (file)
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 AUX 2.4.0-endianess.patch 576 RMD160 229b48d7fae299de5b1526fdd1e740f2292e377a SHA1 d00b5441064a3963a229ffaf0b7d9b2c9c9a38db SHA256 49bbc07606d2c09778d18df136db7be955ea3929cce4c9b67e05de6814fbaacc
 MD5 36131173f75015c218676e54f227a89e files/2.4.0-endianess.patch 576
 RMD160 229b48d7fae299de5b1526fdd1e740f2292e377a files/2.4.0-endianess.patch 576
@@ -44,14 +41,14 @@ EBUILD moc-2.4.0.ebuild 1818 RMD160 e2a808ee695d385e78bcfdaec660a9a48754b444 SHA
 MD5 4460d5918b1b29a0e72a63b3ce6a7633 moc-2.4.0.ebuild 1818
 RMD160 e2a808ee695d385e78bcfdaec660a9a48754b444 moc-2.4.0.ebuild 1818
 SHA256 91ef7bde80eb59c7f84f94de0acfeabdfb446664e7f57b055ec5da0044bebf20 moc-2.4.0.ebuild 1818
-EBUILD moc-2.4.1.ebuild 1810 RMD160 ad3d3e6a75643a92429755f8a37956e462dce482 SHA1 6682aeb63c775c0dd3b27644b0a5a68ea2ff0771 SHA256 58965ee18b325984485ae014dc89306985b659068492b00a934cf1efbca20c7e
-MD5 68d879dff05167c688d658f4f0dabe2f moc-2.4.1.ebuild 1810
-RMD160 ad3d3e6a75643a92429755f8a37956e462dce482 moc-2.4.1.ebuild 1810
-SHA256 58965ee18b325984485ae014dc89306985b659068492b00a934cf1efbca20c7e moc-2.4.1.ebuild 1810
-MISC ChangeLog 4847 RMD160 42ed32505c52ba6baeefe80ea33ef7bcdfe3aa54 SHA1 5be5cfc916a4fbf844e8ce1a765c86eff1b45d70 SHA256 31b2fbed1d80f556af4d0935a3c5ef535158a2f06c375258818e4e4bbb5558a9
-MD5 11f4e4c147d030323c5591a97eb76bcd ChangeLog 4847
-RMD160 42ed32505c52ba6baeefe80ea33ef7bcdfe3aa54 ChangeLog 4847
-SHA256 31b2fbed1d80f556af4d0935a3c5ef535158a2f06c375258818e4e4bbb5558a9 ChangeLog 4847
+EBUILD moc-2.4.1.ebuild 1812 RMD160 29764c15643971366e27b330ee68e6a19fd6ce01 SHA1 a79960a6dfd9f1cfffc3105d418f29c74c544154 SHA256 670c51de76459b9314ec4e5ec2cfe9f067b0bd6d1d21e30dd9329e9c848e26dd
+MD5 0c1fb8c05d3ea69fbc0781ee14e6c161 moc-2.4.1.ebuild 1812
+RMD160 29764c15643971366e27b330ee68e6a19fd6ce01 moc-2.4.1.ebuild 1812
+SHA256 670c51de76459b9314ec4e5ec2cfe9f067b0bd6d1d21e30dd9329e9c848e26dd moc-2.4.1.ebuild 1812
+MISC ChangeLog 4949 RMD160 c6fc207e7c3dc83a91a4c760d002ea8d3359c7df SHA1 36c465e344634bec6f1846353da5221d93cef42e SHA256 313ccdef169950f450c54f88e3b449f69ee6493a2514133b920f1d775dbe6643
+MD5 825f0309dd8b961e47c1a5565a72756b ChangeLog 4949
+RMD160 c6fc207e7c3dc83a91a4c760d002ea8d3359c7df ChangeLog 4949
+SHA256 313ccdef169950f450c54f88e3b449f69ee6493a2514133b920f1d775dbe6643 ChangeLog 4949
 MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
 MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
@@ -77,10 +74,3 @@ SHA256 4bbfda2b9d0562e9e0669e45952ec2160d80ee1f61336ef7705df16e447f15ac files/di
 MD5 fa699baacf0151fba06398d98fd9b127 files/digest-moc-2.4.1 232
 RMD160 04b6a6c4ecc75d3cc30013fa17965fd219822085 files/digest-moc-2.4.1 232
 SHA256 84d4ad52835e1558fae5249cb8f19cdf311bde1bb85ba62b976cd85f23da50c8 files/digest-moc-2.4.1 232
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.3 (GNU/Linux)
-
-iD8DBQFGJ8ccomPajV0RnrERApJCAJ4tjXf9ekmKTfq8pZ0mK6IctYNs8wCfWjoz
-3JqxsM9+95QDeV1kWL3+C3I=
-=tdMY
------END PGP SIGNATURE-----
diff --git a/media-sound/ttaenc/ChangeLog b/media-sound/ttaenc/ChangeLog
new file mode 100644 (file)
index 0000000..44234cb
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for media-sound/ttaenc
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/ttaenc/ChangeLog,v 1.1 2007/04/22 11:02:07 drac Exp $
+
+*ttaenc-3.3 (22 Apr 2007)
+
+  22 Apr 2007; Samuli Suominen <drac@gentoo.org>
+  +files/ttaenc-3.3-cflags.patch, +files/ttaenc-3.3-warnings.patch,
+  +ttaenc-3.3.ebuild:
+  Initial commit for bug 174342, thanks to Sergey D. and Tony Vroon.
+
diff --git a/media-sound/ttaenc/Manifest b/media-sound/ttaenc/Manifest
new file mode 100644 (file)
index 0000000..5d3d1f1
--- /dev/null
@@ -0,0 +1,24 @@
+AUX ttaenc-3.3-cflags.patch 324 RMD160 f1028b627a018e6eff7893e61ec0d32e77d35a05 SHA1 933a4e3c41c1ecb4c67b713b536229db5417a32e SHA256 696a720e00a209bdbc5de4b3d86a8d1cf592b5d54918ea89480e552f6079011d
+MD5 9e82b5f48bbb5babc3cb8401c038e587 files/ttaenc-3.3-cflags.patch 324
+RMD160 f1028b627a018e6eff7893e61ec0d32e77d35a05 files/ttaenc-3.3-cflags.patch 324
+SHA256 696a720e00a209bdbc5de4b3d86a8d1cf592b5d54918ea89480e552f6079011d files/ttaenc-3.3-cflags.patch 324
+AUX ttaenc-3.3-warnings.patch 1865 RMD160 a28eb4b6fc6fad2a0e7dc1730d77564ed5d19f04 SHA1 adedc61a932833c86b0376a0b18d4e4f59e6a29d SHA256 db360229b2dd7a42ce2b97a3ef3a3a9430631d988a46be49c31f58ad7cd3414b
+MD5 dcbfa394f7257739bf3c30dbc75b39fb files/ttaenc-3.3-warnings.patch 1865
+RMD160 a28eb4b6fc6fad2a0e7dc1730d77564ed5d19f04 files/ttaenc-3.3-warnings.patch 1865
+SHA256 db360229b2dd7a42ce2b97a3ef3a3a9430631d988a46be49c31f58ad7cd3414b files/ttaenc-3.3-warnings.patch 1865
+DIST ttaenc-3.3-src.zip 24092 RMD160 2d3f4c6575852529a9d161ee92a0b9875bc8475b SHA1 8701f812e24d803f16d77ad580686baa3d5f64b9 SHA256 66461407b7494ff37b86127628086f95676fbf227f039e84d93f234ac5cd4c5b
+EBUILD ttaenc-3.3.ebuild 715 RMD160 04fddc3ba3c22456e680c800cd7d72cba8621f08 SHA1 26e5e552f1f4059ffa85af834229de7041dad342 SHA256 02c7876b6ee277eedbe204d850dbc5de4ea0dba6cb6d5a64508b83a60b6d3efa
+MD5 f76f21f6cd8699c101bf37d80ce3a6fd ttaenc-3.3.ebuild 715
+RMD160 04fddc3ba3c22456e680c800cd7d72cba8621f08 ttaenc-3.3.ebuild 715
+SHA256 02c7876b6ee277eedbe204d850dbc5de4ea0dba6cb6d5a64508b83a60b6d3efa ttaenc-3.3.ebuild 715
+MISC ChangeLog 443 RMD160 57c24eb24fa868fa43a608f885ed6eb8a755d0ad SHA1 a2bbeb61c8d964d05173a0101a821ef44901b463 SHA256 99d3286e05ed7e657770f01296ed3c30bf120f7bab58af959aaa6c98b92c17d3
+MD5 9a7c14c003aa30f6c9f3ed50df8eb23c ChangeLog 443
+RMD160 57c24eb24fa868fa43a608f885ed6eb8a755d0ad ChangeLog 443
+SHA256 99d3286e05ed7e657770f01296ed3c30bf120f7bab58af959aaa6c98b92c17d3 ChangeLog 443
+MISC metadata.xml 214 RMD160 3ef8a9b331ffe9433ac2b885f83a985e0f89236f SHA1 ec7c7723b21b430e43c31acc7176045413af0225 SHA256 690c22b23be5f116a9ab2986b9fdae7b4f53788c4a8fafb369f3f636a3b619ba
+MD5 97f43390489104c86df538d5759098f0 metadata.xml 214
+RMD160 3ef8a9b331ffe9433ac2b885f83a985e0f89236f metadata.xml 214
+SHA256 690c22b23be5f116a9ab2986b9fdae7b4f53788c4a8fafb369f3f636a3b619ba metadata.xml 214
+MD5 a5bc4334c20e3ddbcfd829ff2cc9a03c files/digest-ttaenc-3.3 232
+RMD160 70108c7068f32e7ad9e1999eaf9f60dce7e5b3df files/digest-ttaenc-3.3 232
+SHA256 5e8ae4617b0fa3f3579a0c3abce01fbf35780af19299f59250704b80d6135bbd files/digest-ttaenc-3.3 232
diff --git a/media-sound/ttaenc/files/digest-ttaenc-3.3 b/media-sound/ttaenc/files/digest-ttaenc-3.3
new file mode 100644 (file)
index 0000000..4682824
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 074031c89233cb6956947c18c43ad7f7 ttaenc-3.3-src.zip 24092
+RMD160 2d3f4c6575852529a9d161ee92a0b9875bc8475b ttaenc-3.3-src.zip 24092
+SHA256 66461407b7494ff37b86127628086f95676fbf227f039e84d93f234ac5cd4c5b ttaenc-3.3-src.zip 24092
diff --git a/media-sound/ttaenc/files/ttaenc-3.3-cflags.patch b/media-sound/ttaenc/files/ttaenc-3.3-cflags.patch
new file mode 100644 (file)
index 0000000..3de56ea
--- /dev/null
@@ -0,0 +1,11 @@
+--- Makefile.orig      2007-04-21 21:07:25.000000000 +0100
++++ Makefile   2007-04-21 21:07:40.000000000 +0100
+@@ -2,7 +2,7 @@
+ # $Id: ttaenc-3.3-cflags.patch,v 1.1 2007/04/22 11:02:07 drac Exp $
+ #
+-CFLAGS        = -Wall -O2 -funroll-loops -fomit-frame-pointer
++CFLAGS        += -Wall -O2
+ LIBS  = -lm
+ TTAENC        = ttaenc
+ INSDIR        = /usr/local/bin
diff --git a/media-sound/ttaenc/files/ttaenc-3.3-warnings.patch b/media-sound/ttaenc/files/ttaenc-3.3-warnings.patch
new file mode 100644 (file)
index 0000000..515ed26
--- /dev/null
@@ -0,0 +1,49 @@
+--- ttaenc.c.orig      2007-04-21 21:26:53.000000000 +0100
++++ ttaenc.c   2007-04-21 21:28:38.000000000 +0100
+@@ -641,7 +641,7 @@
+       // grab some space for an encoder buffers
+       data = (long *) tta_malloc(num_chan * framelen, sizeof(long));
+-      st = seek_table = (long *) tta_malloc(st_size, sizeof(long));
++      st = seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long));
+       enc = tta = tta_malloc(num_chan, sizeof(encoder));
+       // write TTA header
+@@ -770,7 +770,7 @@
+       unsigned long byte_size, data_size, checksum, errors;
+       unsigned long framelen, lastlen, fframes;
+       unsigned long framesize, st_size, *st;
+-      char *data;
++      unsigned char *data;
+       // print process banner
+       fwprintf(stderr, L"Test:    processing ..\r");
+@@ -833,8 +833,8 @@
+       st_size = (fframes + 1);
+       // grab some space for a buffer
+-      data = (char *) tta_malloc(framesize, 1);
+-      seek_table = (long *) tta_malloc(st_size, sizeof(long));
++      data = (unsigned char *) tta_malloc(framesize, 1);
++      seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long));
+       // read seek table
+       if (fread(seek_table, st_size, sizeof(long), fdin) == 0)
+@@ -890,7 +890,7 @@
+       long *p, *data, value;
+       unsigned long num_chan, byte_size, data_size, checksum;
+       unsigned long k, depth, framelen, lastlen, fframes;
+-      unsigned long unary, binary, st_size, st_state, *st;
++      unsigned long unary, binary = 0, st_size, st_state, *st;
+       unsigned long is_float, def_subchunk_size = 16;
+       encoder *tta, *enc;
+       time_t stime = time(NULL);
+@@ -982,7 +982,7 @@
+       // grab some space for a buffer
+       data = (long *) tta_malloc(num_chan * framelen, sizeof(long));
+       enc = tta = tta_malloc(num_chan, sizeof(encoder));
+-      seek_table = (long *) tta_malloc(st_size, sizeof(long));
++      seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long));
+       // read seek table
+       if (fread(seek_table, st_size, sizeof(long), fdin) == 0)
diff --git a/media-sound/ttaenc/metadata.xml b/media-sound/ttaenc/metadata.xml
new file mode 100644 (file)
index 0000000..7db7530
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+<maintainer><email>drac@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/media-sound/ttaenc/ttaenc-3.3.ebuild b/media-sound/ttaenc/ttaenc-3.3.ebuild
new file mode 100644 (file)
index 0000000..d8e5a5c
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/ttaenc/ttaenc-3.3.ebuild,v 1.1 2007/04/22 11:02:07 drac Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="True Audio Compressor Software"
+HOMEPAGE="http://tta.sourceforge.net"
+SRC_URI="mirror://sourceforge/tta/${P}-src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}"/${P}-cflags.patch
+       epatch "${FILESDIR}"/${P}-warnings.patch
+       
+       sed -i -e "s:gcc:$(tc-getCC):g" Makefile
+}
+
+src_compile () {
+       emake || die "emake failed."
+}
+
+src_install () {
+       dobin ttaenc
+       dodoc Readme
+}