diff options
author | Keri Harris <keri@gentoo.org> | 2006-12-30 01:47:37 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2006-12-30 01:47:37 +0000 |
commit | b8f85a7243f274da950c33768401863f385c87a3 (patch) | |
tree | 5351d06c87d4deb88e85d182a8ef46f352ddd1cf /dev-lang/mercury | |
parent | Enable the mercury deep-profiler. (diff) | |
download | gentoo-2-b8f85a7243f274da950c33768401863f385c87a3.tar.gz gentoo-2-b8f85a7243f274da950c33768401863f385c87a3.tar.bz2 gentoo-2-b8f85a7243f274da950c33768401863f385c87a3.zip |
Ensure the proc_layout structure for builtin_throw in exception.m is externally visible.
(Portage version: 2.1.2_rc4-r2)
Diffstat (limited to 'dev-lang/mercury')
-rw-r--r-- | dev-lang/mercury/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lang/mercury/files/digest-mercury-0.13.1-r1 | 6 | ||||
-rw-r--r-- | dev-lang/mercury/files/mercury-0.13.1-profdeep-builtin_throw.patch | 11 | ||||
-rw-r--r-- | dev-lang/mercury/mercury-0.13.1-r1.ebuild | 122 |
4 files changed, 148 insertions, 1 deletions
diff --git a/dev-lang/mercury/ChangeLog b/dev-lang/mercury/ChangeLog index 7af89ef6444a..09f38303f45a 100644 --- a/dev-lang/mercury/ChangeLog +++ b/dev-lang/mercury/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-lang/mercury # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/ChangeLog,v 1.66 2006/12/30 01:32:43 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/ChangeLog,v 1.67 2006/12/30 01:47:37 keri Exp $ + +*mercury-0.13.1-r1 (30 Dec 2006) + + 30 Dec 2006; keri <keri@gentoo.org> + +files/mercury-0.13.1-profdeep-builtin_throw.patch, + +mercury-0.13.1-r1.ebuild: + Ensure the proc_layout structure for builtin_throw in exception.m is + externally visible. *mercury-0.12.2-r4 (30 Dec 2006) diff --git a/dev-lang/mercury/files/digest-mercury-0.13.1-r1 b/dev-lang/mercury/files/digest-mercury-0.13.1-r1 new file mode 100644 index 000000000000..598991491831 --- /dev/null +++ b/dev-lang/mercury/files/digest-mercury-0.13.1-r1 @@ -0,0 +1,6 @@ +MD5 f75f2241a974792d30c18c4325c763d0 mercury-compiler-0.13.1.tar.gz 15938824 +RMD160 a0a80cd2ac7393cf084b79d40230bd1efe795c5f mercury-compiler-0.13.1.tar.gz 15938824 +SHA256 b1f4984e00ad917824d3340dcf2a41bede39fe02ef2e516351467f4761985196 mercury-compiler-0.13.1.tar.gz 15938824 +MD5 1a238a79a6c8734775bb216c252806d9 mercury-tests-0.13.1.tar.gz 986644 +RMD160 779609ba5c985e562b0962434c9281c07ddaa5cb mercury-tests-0.13.1.tar.gz 986644 +SHA256 f6c8250b9996584d3c7cd6cc0609716027b127e54b2aedf5ebfcab98a44159dc mercury-tests-0.13.1.tar.gz 986644 diff --git a/dev-lang/mercury/files/mercury-0.13.1-profdeep-builtin_throw.patch b/dev-lang/mercury/files/mercury-0.13.1-profdeep-builtin_throw.patch new file mode 100644 index 000000000000..05da6498e79f --- /dev/null +++ b/dev-lang/mercury/files/mercury-0.13.1-profdeep-builtin_throw.patch @@ -0,0 +1,11 @@ +--- mercury-compiler-0.13.1.orig/library/exception.m 2006-07-31 18:01:49.000000000 +1200 ++++ mercury-compiler-0.13.1/library/exception.m 2006-12-30 14:46:21.000000000 +1300 +@@ -1970,7 +1970,7 @@ + + MR_proc_static_user_no_site(exception, builtin_throw, 1, 0, + ""exception.m"", MR_DUMMY_LINE, MR_TRUE); +-MR_STATIC_USER_PROC_STATIC_PROC_LAYOUT( ++MR_EXTERN_USER_PROC_STATIC_PROC_LAYOUT( + MR_DETISM_DET, 1, MR_LONG_LVAL_STACKVAR(1), + MR_PREDICATE, exception, builtin_throw, 1, 0); + MR_MAKE_USER_INTERNAL_LAYOUT(exception, builtin_throw, 1, 0, 1); diff --git a/dev-lang/mercury/mercury-0.13.1-r1.ebuild b/dev-lang/mercury/mercury-0.13.1-r1.ebuild new file mode 100644 index 000000000000..dd8e0459ce04 --- /dev/null +++ b/dev-lang/mercury/mercury-0.13.1-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/mercury-0.13.1-r1.ebuild,v 1.1 2006/12/30 01:47:37 keri Exp $ + +inherit eutils + +MY_P=${PN}-compiler-${PV} + +DESCRIPTION="Mercury is a modern general-purpose logic/functional programming language" +HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html" +SRC_URI="ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/mercury-compiler-0.13.1.tar.gz + ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/mercury-tests-0.13.1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~sparc ~x86" + +IUSE="debug minimal readline threads" + +DEPEND="readline? ( sys-libs/readline )" + +S="${WORKDIR}"/${MY_P} +TESTDIR="${WORKDIR}"/${PN}-tests-${PV} + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}"/${P}-portage.patch + epatch "${FILESDIR}"/${P}-CFLAGS.patch + epatch "${FILESDIR}"/${P}-MAKEOPTS.patch + epatch "${FILESDIR}"/${P}-bootstrap.patch + epatch "${FILESDIR}"/${P}-LIBDIR.patch + epatch "${FILESDIR}"/${P}-libgrades.patch + epatch "${FILESDIR}"/${P}-parallel-install_grades.patch + epatch "${FILESDIR}"/${P}-deep_profiler.patch + epatch "${FILESDIR}"/${P}-docs.patch + + cd "${TESTDIR}" + epatch "${FILESDIR}"/${P}-tests.patch + sed -i -e "s:MDB_DOC:${S}/doc/mdb_doc:" mdbrc +} + +src_compile() { + local myconf + myconf="--disable-gcc-back-end \ + --enable-aditi-back-end \ + --enable-deep-profiler \ + --disable-dotnet-grades \ + --disable-java-grades \ + $(use_enable debug debug-grades) \ + $(use_enable threads par-grades) \ + $(use_enable !minimal most-grades) \ + $(use_with readline) \ + PACKAGE_VERSION=${PV}" + + einfo "Performing stage 1 bootstrap" + econf \ + ${myconf} \ + BOOTSTRAP_STAGE="1" \ + || die "econf stage 1 failed" + emake \ + EXTRA_MLFLAGS=--no-strip \ + || die "emake stage 1 failed" + + einfo "Performing stage 2 bootstrap" + cp "${S}"/compiler/mercury_compile "${S}"/mercury_compile + epatch "${FILESDIR}"/${P}-profdeep-builtin_throw.patch + + econf \ + ${myconf} \ + BOOTSTRAP_STAGE="2" \ + || die "econf stage 2 failed" + emake \ + MERCURY_COMPILER="${S}"/mercury_compile \ + depend || die "emake stage 2 depend failed" + emake \ + MERCURY_COMPILER="${S}"/mercury_compile \ + EXTRA_MLFLAGS=--no-strip \ + || die "emake stage 2 failed" + + einfo "Compiling libgrades" + emake \ + MERCURY_COMPILER="${S}"/compiler/mercury_compile \ + libgrades || die "emake libgrades failed" +} + +src_test() { + cd "${S}" + TEST_GRADE=`scripts/ml --print-grade` + if [ -d "${S}"/libgrades/${TEST_GRADE} ] ; then + TWS="${S}"/libgrades/${TEST_GRADE} + cp browser/mer_browser.init "${TWS}"/browser/ + cp mdbcomp/mer_mdbcomp.init "${TWS}"/mdbcomp/ + cp runtime/mer_rt.init "${TWS}"/runtime/ + else + TWS="${S}" + fi + + cd "${TESTDIR}" + PATH="${TWS}"/scripts:"${TWS}"/util:"${PATH}" \ + WORKSPACE="${TWS}" \ + MERCURY_COMPILER="${TWS}"/compiler/mercury_compile \ + MMAKE_DIR="${TWS}"/scripts \ + MERCURY_DEBUGGER_INIT="${TESTDIR}"/mdbrc \ + GRADE=${TEST_GRADE} \ + mmake || die "mmake test failed" +} + +src_install() { + make \ + INSTALL_PREFIX="${D}"/usr \ + INSTALL_MAN_DIR="${D}"/usr/share/man \ + INSTALL_INFO_DIR="${D}"/usr/share/info \ + INSTALL_HTML_DIR="${D}"/usr/share/doc/${PF}/html \ + install || die "make install failed" + + dodoc \ + BUGS HISTORY LIMITATIONS NEWS README README.Linux \ + README.Linux-Alpha README.Linux-m68k README.Linux-PPC \ + RELEASE_NOTES TODO VERSION WORK_IN_PROGRESS +} |