summaryrefslogtreecommitdiff
path: root/media-sound/poc
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/poc')
-rw-r--r--media-sound/poc/Manifest7
-rw-r--r--media-sound/poc/files/poc-0.4.1-fec-pkt-prototype.patch9
-rw-r--r--media-sound/poc/files/poc-0.4.1-file-perms.patch9
-rw-r--r--media-sound/poc/metadata.xml8
-rw-r--r--media-sound/poc/poc-0.4.1.ebuild38
5 files changed, 71 insertions, 0 deletions
diff --git a/media-sound/poc/Manifest b/media-sound/poc/Manifest
new file mode 100644
index 000000000000..7bd48cdb68c3
--- /dev/null
+++ b/media-sound/poc/Manifest
@@ -0,0 +1,7 @@
+AUX poc-0.4.1-fec-pkt-prototype.patch 214 SHA256 09148192f3f17d24f6f33f355c7a37b8e44d76e08255d1a084e2fc1311d09208 SHA512 d98b35b746f5bc92c017e2c3f3bf3f19b2ed28970a955dd0ca6010f338889cacf0c3e527f2eb8a57bbdfc67499fd2eb24b93662dbb2b24c43ed790e79e249e99 WHIRLPOOL 3a9e9d26670a07763d8ca4532241299f5ca55c5bfc6b511022e3bc20bc3601d440aa3a0ff9591d2c498cb1d517645b6cfa77f89c1757af4faaf881d592f1a6e5
+AUX poc-0.4.1-file-perms.patch 269 SHA256 668265ef6e9bb5969d57c5c1f56a22c4e71c5062e71bd33f4f0a34ceb3f5d666 SHA512 a86671efabc9438876132f92a9d59ec2a125010796f645c63b67ec29d26040bfd158852580881576564961e2efd0ee86eaf8b29577ad5bbd94d974ed1e4d811b WHIRLPOOL b41fd976397848d19a804c4c092c66ba8e6f1318748644a5c877dc1cbd90c98f38b068608bf6c7eb8f8f7d8a847c46d60a09239a7f24797301ecdef30148cbed
+DIST poc-0.4.1.tar.gz 114875 SHA256 a8f8be5281b80f9bb1dd0d330ec59e608d557351f6e6ad5b3d14932f7b952d29 SHA512 84cbe5421006a9b81310925c22d4b25888c036c83ee1c59ee63415fb5656b9c04d5c417817d026f8ad85240f401b3d5cdeb2c4f480b13bf7a295d147ef2246b7 WHIRLPOOL c646d6f2e9fbda7787edfe008996bd4970a5c300a3bc17343770e6ffda6ef4ae8b792244e9420c37b860198ef91d0a6f86ee962e7cf2f04fe64cffb34e5b3dba
+EBUILD poc-0.4.1.ebuild 833 SHA256 489996335ef25ca430766354b3be805c7bdfaf52490b90dfe48a840ff7576587 SHA512 eecadac2b6c836512d4ab6813b7484a5ac54d8049b1c53d16630dc0ab80d4e2d14b623e9ace912817919650f03dff780dce51ea928b7c4713de938ab731599c7 WHIRLPOOL 6b7200fdd6f50dfb28f7e5cf72a65ab631d2254abdb314c401a0a538be1c12845358ca815f47518b282cfaa58c4cfccede08ab749e342a5f0e8ef10a6ad9c61b
+MISC ChangeLog 2497 SHA256 b04e10b752030bd4b68040c0c606190436e5d9592cfa23319a6e9e2d28b816bd SHA512 5f662b7def2570f8fcf5ac8f90c6ae480a2b12bd5a4d5b17e8ca4d3d49102377c2f14cb4314c857e6df0120822dadc9bbe88ca2399f2772aca2a8f58f7a97bcf WHIRLPOOL eb5863de5fa6ba61519f18fff7dec7aa91bb2681b3f6433669620cf28d12c69539bc5413084e0c09dd68f05ce11d0738e01caca4b9eb63adaffbccfe00d0df87
+MISC ChangeLog-2015 612 SHA256 a1de8d5a7ec435119d639c3ab03f242aebd76cc3ab3efb27a025fb048eb1570c SHA512 e6dca93f4e00428d7f286524ba0bb54cbf11f42ae99b345314b71811b0db408e73b7ab44143c418b17d9e0b4fd4c92c9886aaf719a1ab47ec9e7cbf1e8b8600c WHIRLPOOL d96f0747d53089ea5011c4123a6ef82113b66d55b527d6425dc274b6c3a63b6123154bdb77e5c6091046b28df14ecd87c39b18bfb8467ead4715c1607102728b
+MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723
diff --git a/media-sound/poc/files/poc-0.4.1-fec-pkt-prototype.patch b/media-sound/poc/files/poc-0.4.1-fec-pkt-prototype.patch
new file mode 100644
index 000000000000..f0957a1ca292
--- /dev/null
+++ b/media-sound/poc/files/poc-0.4.1-fec-pkt-prototype.patch
@@ -0,0 +1,9 @@
+sync prototypes between the header and source
+
+--- fec-pkt.c
++++ fec-pkt.c
+@@ -68,3 +68,3 @@
+ **/
+-int fec_pkt_read(fec_pkt_t *pkt, int fd) {
++ssize_t fec_pkt_read(fec_pkt_t *pkt, int fd) {
+ assert(pkt != NULL);
diff --git a/media-sound/poc/files/poc-0.4.1-file-perms.patch b/media-sound/poc/files/poc-0.4.1-file-perms.patch
new file mode 100644
index 000000000000..ee23d90ab82b
--- /dev/null
+++ b/media-sound/poc/files/poc-0.4.1-file-perms.patch
@@ -0,0 +1,9 @@
+Creating mp3 files with u+x attributes is just silly
+
+--- file.c
++++ file.c
+@@ -136,3 +136,3 @@
+ file->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC,
+- S_IRWXU | S_IRGRP | S_IROTH);
++ S_IRUSR|S_IWUSR | S_IRGRP | S_IROTH);
+
diff --git a/media-sound/poc/metadata.xml b/media-sound/poc/metadata.xml
new file mode 100644
index 000000000000..c870d0eef0ab
--- /dev/null
+++ b/media-sound/poc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-sound/poc/poc-0.4.1.ebuild b/media-sound/poc/poc-0.4.1.ebuild
new file mode 100644
index 000000000000..2800c61f8822
--- /dev/null
+++ b/media-sound/poc/poc-0.4.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="mp3 and ogg streamer (include mp3cue and mp3cut)"
+HOMEPAGE="http://www.bl0rg.net/software/poc"
+SRC_URI="http://www.bl0rg.net/software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="sys-devel/flex
+ sys-devel/bison"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e '/^CFLAGS/s:-O2::' \
+ -e '/^PREFIX/s:/local::' \
+ Makefile
+ epatch "${FILESDIR}"/${P}-fec-pkt-prototype.patch
+ epatch "${FILESDIR}"/${P}-file-perms.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed."
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man1
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc README TODO
+}