# ChangeLog for dev-tinyos/nesc
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/nesc/ChangeLog,v 1.11 2006/08/10 20:20:48 sanchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/nesc/ChangeLog,v 1.12 2006/11/14 21:32:58 sanchan Exp $
+
+ 14 Nov 2006; Sandro Bonazzola <sanchan@gentoo.org>
+ +files/nesc-1.2.7a-alignment.patch, -nesc-1.2.4-r1.ebuild,
+ -nesc-1.2.5-r1.ebuild, nesc-1.2.7a.ebuild:
+ Removing obsolete versions. Inheriting java-pkg-2 avoiding errors with a JRE
+ as VM. Adding patch provided by Aurélien Francillon fixing bug #145870.
+ Keywording ~amd64.
10 Aug 2006; Sandro Bonazzola <sanchan@gentoo.org> nesc-1.2.7a.ebuild:
Fix missing dependency on media-gfx/graphviz, add some info about editor
--- /dev/null
+--- src/attributes.c-old 2006-09-05 18:52:23.000000000 +0200
++++ src/attributes.c 2006-09-05 19:40:23.000000000 +0200
+@@ -69,9 +69,6 @@
+ return cval_cast(arg, size_t_type);
+ else
+ error("requested alignment is not a power of 2");
+- else
+- error("requested alignment is not a constant");
+-
+ return cval_top;
+ }
+
+@@ -146,13 +143,10 @@
+ {
+ cval arg = get_alignment(attr);
+
+- if (cval_isinteger(arg))
+- {
+- if (ddecl->kind == decl_variable || ddecl->kind == decl_typedef)
+- ddecl->type = align_type(ddecl->type, arg);
+- else
+- ignored_gcc_attribute(attr);
+- }
++ if (cval_isinteger(arg) && (ddecl->kind == decl_variable || ddecl->kind == decl_typedef))
++ ddecl->type = align_type(ddecl->type, arg);
++ else
++ ignored_gcc_attribute(attr);
+ }
+ else if (is_attr_name(name, "mode"))
+ {
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/nesc/nesc-1.2.7a.ebuild,v 1.2 2006/08/10 20:20:48 sanchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/nesc/nesc-1.2.7a.ebuild,v 1.3 2006/11/14 21:32:58 sanchan Exp $
-inherit eutils
+inherit eutils java-pkg-2
DESCRIPTION="An extension to gcc that knows how to compile nesC applications"
HOMEPAGE="http://nescc.sourceforge.net/"
SRC_URI="mirror://sourceforge/nescc/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="~x86 ~amd64"
IUSE="doc"
DEPEND=">=dev-lang/perl-5.8.5-r2
>=dev-tinyos/tos-1.1.0
else
einfo "Building nesC for ${TOSDIR}"
fi
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-alignment.patch
}
src_compile() {