# ChangeLog for app-text/bogosort
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/ChangeLog,v 1.1 2004/12/14 22:58:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/ChangeLog,v 1.2 2004/12/15 22:50:04 hansmi Exp $
+
+ 15 Dec 2004; Michael Hanselmann <hansmi@gentoo.org> +files/xmalloc.patch,
+ bogosort-0.4.2.ebuild:
+ Fixed compilation error in xmalloc.c and added to ~ppc.
*bogosort-0.4.2 (14 Dec 2004)
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 7b5df6d2428a49dc602dfa85ee9ac79b bogosort-0.4.2.ebuild 578
-MD5 1bc8a0513d1ec69f2e9b8b2f72a5f451 ChangeLog 347
MD5 4c1040b15c428fc436d1f5b746abfa8a metadata.xml 496
+MD5 12dbc5b512f92cf4b4d0b15dc92695e1 ChangeLog 506
+MD5 b1901c21e71066d58eda705cbc483aef bogosort-0.4.2.ebuild 681
MD5 375c74fb876d97ee1d8b1acb3e55ada5 files/digest-bogosort-0.4.2 66
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBv3BILLFUmVNQ7rkRAnbcAJ9xEcwkh9QfBCZanYgh3FBkbjhSUQCeP/M0
-76GGKKnr/ua37tdNz26UVWw=
-=DJQI
------END PGP SIGNATURE-----
+MD5 5c0ac35193f6152a103241167bae834d files/xmalloc.patch 395
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/bogosort-0.4.2.ebuild,v 1.1 2004/12/14 22:58:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/bogosort-0.4.2.ebuild,v 1.2 2004/12/15 22:50:04 hansmi Exp $
+
+inherit libtool eutils
DESCRIPTION="A file sorting program which uses the bogosort algorithm"
HOMEPAGE="http://www.lysator.liu.se/~qha/bogosort/"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~sparc ~mips"
+KEYWORDS="~x86 ~sparc ~mips ~ppc"
IUSE=""
DEPEND=""
RDEPEND=""
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/xmalloc.patch
+}
+
src_install() {
make DESTDIR="${D}" install
dodoc README NEWS ChangeLog AUTHORS
--- /dev/null
+--- xmalloc.c.orig 2004-12-15 23:44:16.880786468 +0100
++++ xmalloc.c 2004-12-15 23:44:21.846546805 +0100
+@@ -68,12 +68,6 @@
+ The caller may set it to some other value. */
+ int xmalloc_exit_failure = EXIT_FAILURE;
+
+-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
+-void error (int, int, const char *, ...);
+-#else
+-void error ();
+-#endif
+-
+ static VOID *
+ fixup_null_alloc (n)
+ size_t n;