summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-17 15:18:00 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-17 15:18:00 +0000
commit0b66f781f50fe7b692ad62e8c556cfcb2f45dc26 (patch)
tree77421cbb07be072c91d284bcf368b8010034e1d1 /media-video/stan
parentAdd a check for encode useflag in mplayer package, bug #114396. Thanks to Aru... (diff)
downloadgentoo-2-0b66f781f50fe7b692ad62e8c556cfcb2f45dc26.tar.gz
gentoo-2-0b66f781f50fe7b692ad62e8c556cfcb2f45dc26.tar.bz2
gentoo-2-0b66f781f50fe7b692ad62e8c556cfcb2f45dc26.zip
Add patch to include errno.h instead of definining errno on the spot from Alexey Maximof in bug #114567.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'media-video/stan')
-rw-r--r--media-video/stan/ChangeLog7
-rw-r--r--media-video/stan/files/stan-0.4.1-errno.patch26
-rw-r--r--media-video/stan/stan-0.4.1.ebuild15
3 files changed, 44 insertions, 4 deletions
diff --git a/media-video/stan/ChangeLog b/media-video/stan/ChangeLog
index d1a5876da408..22f626094722 100644
--- a/media-video/stan/ChangeLog
+++ b/media-video/stan/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/stan
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/stan/ChangeLog,v 1.2 2006/01/08 12:05:56 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/stan/ChangeLog,v 1.3 2006/04/17 15:18:00 flameeyes Exp $
+
+ 17 Apr 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/stan-0.4.1-errno.patch, stan-0.4.1.ebuild:
+ Add patch to include errno.h instead of definining errno on the spot from
+ Alexey Maximof in bug #114567.
08 Jan 2006; Diego Pettenò <flameeyes@gentoo.org> metadata.xml:
Remove retiring dev from metadata.
diff --git a/media-video/stan/files/stan-0.4.1-errno.patch b/media-video/stan/files/stan-0.4.1-errno.patch
new file mode 100644
index 000000000000..a63810c1ac1b
--- /dev/null
+++ b/media-video/stan/files/stan-0.4.1-errno.patch
@@ -0,0 +1,26 @@
+--- src/data.c.orig 2005-12-05 13:23:44.000000000 +0200
++++ src/data.c 2005-12-05 13:24:31.000000000 +0200
+@@ -55,7 +55,9 @@
+ #include <stats.h>
+ #include <config.h>
+
+-extern int errno, verbose, progress, bits;
++#include <errno.h>
++
++extern int verbose, progress, bits;
+ extern tnode_t **treap;
+ extern bnode_t *bintree;
+ size_t size = 0;
+--- src/stan.c.orig 2005-12-05 13:23:49.000000000 +0200
++++ src/stan.c 2005-12-05 13:24:57.000000000 +0200
+@@ -46,7 +46,9 @@
+ #include <bits.h>
+ #include <config.h>
+
+-int errno, verbose = 0, progress = 0, bits = 0;
++#include <errno.h>
++
++int verbose = 0, progress = 0, bits = 0;
+
+ void print_usage()
+ {
diff --git a/media-video/stan/stan-0.4.1.ebuild b/media-video/stan/stan-0.4.1.ebuild
index 571d39dba201..4115620f6116 100644
--- a/media-video/stan/stan-0.4.1.ebuild
+++ b/media-video/stan/stan-0.4.1.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/stan/stan-0.4.1.ebuild,v 1.1 2005/01/17 18:12:44 kzimmerm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/stan/stan-0.4.1.ebuild,v 1.2 2006/04/17 15:18:00 flameeyes Exp $
+
+inherit eutils
DESCRIPTION="Stan is a console application that analyzes binary streams and calculates statistical information."
HOMEPAGE="http://www.roqe.org/stan/"
@@ -13,6 +15,13 @@ IUSE=""
DEPEND=""
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-errno.patch"
+}
+
src_install() {
- einstall || die
+ einstall || die "einstall failed"
}