diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2009-03-08 18:41:33 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2009-03-08 18:41:33 +0000 |
commit | 03f90bc7dccba09c08b70c65b01ade95026407b6 (patch) | |
tree | 31f401f86d2329feb52fdb0ad293115721203381 | |
parent | Readd ~x86-fbsd keyword wrt #184008 (diff) | |
download | gentoo-2-03f90bc7dccba09c08b70c65b01ade95026407b6.tar.gz gentoo-2-03f90bc7dccba09c08b70c65b01ade95026407b6.tar.bz2 gentoo-2-03f90bc7dccba09c08b70c65b01ade95026407b6.zip |
Bump to 0.1.2. Fix gcc-4.3 compilation, bug 261136. USE=interpreter works in 0.1.2, fixing bug 197986.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
-rw-r--r-- | dev-libs/libjit/ChangeLog | 12 | ||||
-rw-r--r-- | dev-libs/libjit/files/libjit-0.1.2-gcc43.patch | 11 | ||||
-rw-r--r-- | dev-libs/libjit/libjit-0.1.0.ebuild | 5 | ||||
-rw-r--r-- | dev-libs/libjit/libjit-0.1.2.ebuild | 61 |
4 files changed, 85 insertions, 4 deletions
diff --git a/dev-libs/libjit/ChangeLog b/dev-libs/libjit/ChangeLog index c89db7550ecb..b68596ff12e3 100644 --- a/dev-libs/libjit/ChangeLog +++ b/dev-libs/libjit/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-libs/libjit -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/ChangeLog,v 1.11 2008/08/06 09:52:28 ulm Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/ChangeLog,v 1.12 2009/03/08 18:41:32 loki_val Exp $ + +*libjit-0.1.2 (08 Mar 2009) + + 08 Mar 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/libjit-0.1.2-gcc43.patch, libjit-0.1.0.ebuild, + +libjit-0.1.2.ebuild: + Bump to 0.1.2. Fix gcc-4.3 compilation, bug 261136. USE=interpreter works + in 0.1.2, fixing bug 197986. 06 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml: Add USE flag description to metadata wrt GLEP 56. diff --git a/dev-libs/libjit/files/libjit-0.1.2-gcc43.patch b/dev-libs/libjit/files/libjit-0.1.2-gcc43.patch new file mode 100644 index 000000000000..e264b38bf2ef --- /dev/null +++ b/dev-libs/libjit/files/libjit-0.1.2-gcc43.patch @@ -0,0 +1,11 @@ +--- libjit-0.1.2.orig/tools/gen-apply.c 2008/11/23 09:15:25 1.20 ++++ libjit-0.1.2/tools/gen-apply.c 2009/01/30 19:46:01 1.21 +@@ -959,7 +959,7 @@ + void run_detect_struct_##n(void) \ + { \ + jit_nint *args; \ +- jit_nint stack[1]; \ ++ volatile jit_nint stack[1]; \ + jit_nint buffer[64 / sizeof(jit_nint)]; \ + void *apply_return; \ + jit_builtin_apply_args(jit_nint *, args); \ diff --git a/dev-libs/libjit/libjit-0.1.0.ebuild b/dev-libs/libjit/libjit-0.1.0.ebuild index 4da30c8e61e6..23aba0caf4e5 100644 --- a/dev-libs/libjit/libjit-0.1.0.ebuild +++ b/dev-libs/libjit/libjit-0.1.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.0.ebuild,v 1.3 2007/09/09 18:32:53 jurek Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.0.ebuild,v 1.4 2009/03/08 18:41:32 loki_val Exp $ inherit eutils @@ -19,6 +19,7 @@ DEPEND="doc? ( app-text/texi2html )" src_unpack() { unpack ${A} cd ${S} + epatch "${FILESDIR}/${PN}-0.1.2-gcc43.patch" # Upstream forgot a header fille, bug #190483 cp ${FILESDIR}/${P}-jit-rules-interp.h ${S}/jit/jit-rules-interp.h diff --git a/dev-libs/libjit/libjit-0.1.2.ebuild b/dev-libs/libjit/libjit-0.1.2.ebuild new file mode 100644 index 000000000000..505f6281a488 --- /dev/null +++ b/dev-libs/libjit/libjit-0.1.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.2.ebuild,v 1.1 2009/03/08 18:41:32 loki_val Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Libjit is a generic Just-In-Time compilation library" +HOMEPAGE="http://www.gnu.org/software/dotgnu/" +SRC_URI="mirror://gnu/dotgnu/libjit/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc examples interpreter long-double new-reg-alloc" + +DEPEND="doc? ( app-text/texi2html )" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}/${P}-gcc43.patch" +} +src_configure() { + econf \ + --disable-dependency-tracking \ + --disable-static \ + $(use_enable interpreter) \ + $(use_enable long-double) \ + || die "configure failed" +} + +src_compile() { + emake || die "emake failed" + + if use doc ; then + if [ ! -f "${S}"/doc/libjit.texi ] ; then + die "libjit.texi was not generated" + fi + + texi2html -split_chapter "${S}"/doc/libjit.texi \ + || die "texi2html failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" + + if use examples ; then + docinto examples + dodoc tutorial/{README,*.c} || die "examples failed" + fi + + if use doc ; then + docinto html + dohtml libjit/*.html || die "doc failed" + fi + + find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" +} |