summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2012-02-06 06:59:47 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2012-02-06 06:59:47 +0000
commit1561b41ba7e42d5291752d894487da879f5dbb57 (patch)
tree5a6e48f014c38ceab929d356c5261f75465b124b /media-libs
parentVersion bump, move from java-overlay. (diff)
downloadgentoo-2-1561b41ba7e42d5291752d894487da879f5dbb57.tar.gz
gentoo-2-1561b41ba7e42d5291752d894487da879f5dbb57.tar.bz2
gentoo-2-1561b41ba7e42d5291752d894487da879f5dbb57.zip
Fixed bug #224267 by Peter Hüwe (missing function prototypes). Added myself to maintainers.
(Portage version: 2.2.0_alpha84_p53/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/aalib/ChangeLog11
-rw-r--r--media-libs/aalib/aalib-1.4_rc5-r1.ebuild53
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch56
-rw-r--r--media-libs/aalib/metadata.xml12
4 files changed, 126 insertions, 6 deletions
diff --git a/media-libs/aalib/ChangeLog b/media-libs/aalib/ChangeLog
index 4ca8e93b4558..6114a766496f 100644
--- a/media-libs/aalib/ChangeLog
+++ b/media-libs/aalib/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/aalib
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/aalib/ChangeLog,v 1.41 2011/02/06 12:08:49 leio Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aalib/ChangeLog,v 1.42 2012/02/06 06:59:47 slyfox Exp $
+
+*aalib-1.4_rc5-r1 (06 Feb 2012)
+
+ 06 Feb 2012; Sergei Trofimovich <slyfox@gentoo.org> +aalib-1.4_rc5-r1.ebuild,
+ +files/aalib-1.4_rc5-fix-protos.patch, metadata.xml:
+ Fixed bug #224267 by Peter Hüwe (missing function prototypes). Added myself to
+ maintainers.
06 Feb 2011; Mart Raudsepp <leio@gentoo.org> aalib-1.4_rc5.ebuild:
Drop to ~mips
diff --git a/media-libs/aalib/aalib-1.4_rc5-r1.ebuild b/media-libs/aalib/aalib-1.4_rc5-r1.ebuild
new file mode 100644
index 000000000000..d10c67f397e0
--- /dev/null
+++ b/media-libs/aalib/aalib-1.4_rc5-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aalib/aalib-1.4_rc5-r1.ebuild,v 1.1 2012/02/06 06:59:47 slyfox Exp $
+
+inherit eutils libtool toolchain-funcs autotools
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${PN}-1.4.0"
+
+DESCRIPTION="A ASCII-Graphics Library"
+HOMEPAGE="http://aa-project.sourceforge.net/aalib/"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="X slang gpm"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ slang? ( >=sys-libs/slang-1.4.2 )"
+DEPEND="${RDEPEND}
+ >=sys-libs/ncurses-5.1
+ X? ( x11-proto/xproto )
+ gpm? ( sys-libs/gpm )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-m4.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-protos.patch #224267
+
+ sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:g' "${S}"/src/*.c
+
+ # Fix bug #165617.
+ use gpm && sed -i \
+ 's/gpm_mousedriver_test=yes/gpm_mousedriver_test=no/' "${S}/configure.in"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(use_with slang slang-driver) \
+ $(use_with X x11-driver) \
+ || die
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc ANNOUNCE AUTHORS ChangeLog NEWS README*
+}
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch b/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch
new file mode 100644
index 000000000000..b22738a25c6c
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch
@@ -0,0 +1,56 @@
+fix missing protos
+
+ * QA Notice: Package triggers severe warnings which indicate that it
+ * may exhibit random runtime failures.
+ * aainfo.c:12:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aainfo.c:17:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:8:5: warning: incompatible implicit declaration of built-in function 'strcpy'
+ * aatest.c:11:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:16:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:21:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:55:7: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:68:3: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:154:7: warning: incompatible implicit declaration of built-in function 'exit'
+ * aasavefont.c:10:2: warning: incompatible implicit declaration of built-in function 'exit'
+
+Gentoo-bug: http://bugs.gentoo.org/224267
+Reported-by: Peter Hüwe
+diff --git a/src/aafire.c b/src/aafire.c
+index 4f36149..5e41237 100644
+--- a/src/aafire.c
++++ b/src/aafire.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+
+ #define XSIZ aa_imgwidth(context)
+diff --git a/src/aainfo.c b/src/aainfo.c
+index d3f6d50..e24082d 100644
+--- a/src/aainfo.c
++++ b/src/aainfo.c
+@@ -1,4 +1,4 @@
+-
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ #include "aaint.h"
+ int main(int argc, char **argv)
+diff --git a/src/aasavefont.c b/src/aasavefont.c
+index b00e1e6..16591e8 100644
+--- a/src/aasavefont.c
++++ b/src/aasavefont.c
+@@ -1,3 +1,4 @@
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ int main(int argc, char **argv)
+ {
+diff --git a/src/aatest.c b/src/aatest.c
+index 9816f5d..ed0c2da 100644
+--- a/src/aatest.c
++++ b/src/aatest.c
+@@ -1,3 +1,5 @@
++#include <string.h> /* strcpy() */
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ int main(int argc, char **argv)
+ {
diff --git a/media-libs/aalib/metadata.xml b/media-libs/aalib/metadata.xml
index 1cadc2e4ec21..4d27789871de 100644
--- a/media-libs/aalib/metadata.xml
+++ b/media-libs/aalib/metadata.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>video</herd>
-<maintainer>
- <email>media-video@gentoo.org</email>
-</maintainer>
+ <herd>video</herd>
+ <maintainer>
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
</pkgmetadata>