summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-25 21:01:10 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-25 21:01:10 +0000
commit338661d0c14d786d8bf7e143b384ea211144f31f (patch)
treec766d8cd502313ca532863ec229dcb7cc342df91 /dev-util/dissembler
parentKeyworded ~ppc64. Closes bug #238010 (diff)
downloadgentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.tar.gz
gentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.tar.bz2
gentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.zip
Cleanup source and respect user settings #243996.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'dev-util/dissembler')
-rw-r--r--dev-util/dissembler/ChangeLog8
-rw-r--r--dev-util/dissembler/dissembler-0.9.ebuild16
-rw-r--r--dev-util/dissembler/files/dissembler-0.9-build.patch21
3 files changed, 39 insertions, 6 deletions
diff --git a/dev-util/dissembler/ChangeLog b/dev-util/dissembler/ChangeLog
index aaf924af9c17..156e56178997 100644
--- a/dev-util/dissembler/ChangeLog
+++ b/dev-util/dissembler/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/dissembler
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dissembler/ChangeLog,v 1.3 2007/02/09 03:06:39 flameeyes Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dissembler/ChangeLog,v 1.4 2008/10/25 21:01:10 vapier Exp $
+
+ 25 Oct 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/dissembler-0.9-build.patch, dissembler-0.9.ebuild:
+ Cleanup source and respect user settings #243996.
09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/dev-util/dissembler/dissembler-0.9.ebuild b/dev-util/dissembler/dissembler-0.9.ebuild
index c99f5e062ffb..1ee100888494 100644
--- a/dev-util/dissembler/dissembler-0.9.ebuild
+++ b/dev-util/dissembler/dissembler-0.9.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dissembler/dissembler-0.9.ebuild,v 1.2 2005/05/07 11:01:14 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dissembler/dissembler-0.9.ebuild,v 1.3 2008/10/25 21:01:10 vapier Exp $
+
+inherit eutils toolchain-funcs
MY_P=${PN}_${PV}
DESCRIPTION="polymorphs bytecode to a printable ASCII string"
@@ -9,15 +11,21 @@ SRC_URI="http://www.phiral.com/research/${MY_P}.tgz"
LICENSE="as-is"
SLOT="0"
-KEYWORDS="~amd64 ~x86 ~ppc"
+KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${MY_P}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
src_compile() {
- make ${PN} || die
+ emake CC="$(tc-getCC)" ${PN} || die
}
src_install() {
diff --git a/dev-util/dissembler/files/dissembler-0.9-build.patch b/dev-util/dissembler/files/dissembler-0.9-build.patch
new file mode 100644
index 000000000000..019dfec20ad6
--- /dev/null
+++ b/dev-util/dissembler/files/dissembler-0.9-build.patch
@@ -0,0 +1,21 @@
+--- dissembler.c
++++ dissembler.c
+@@ -16,6 +16,9 @@
+
+ /* FOR EDUCATIONAL PURPOSES ONLY */
+
++#define _GNU_SOURCE
++#include <string.h>
++#include <unistd.h>
+ #include <stdio.h>
+ #include <sys/stat.h>
+ #include <ctype.h>
+@@ -217,7 +217,7 @@ freedom:
+ fprintf(fh, "P");
+ }
+ fprintf(fh,"\n");
+- if(fh != stdout) close(fh);
++ if(fh != stdout) fclose(fh);
+ free(mem-21);
+ }
+