diff options
author | Keri Harris <keri@gentoo.org> | 2006-03-23 09:13:41 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2006-03-23 09:13:41 +0000 |
commit | adfebd810e383f0a206e00510705a23697ae0719 (patch) | |
tree | 673ce8508562bfd93c292213435e2183120b0a10 | |
parent | Block on monolithic xorg, they install the same files. (diff) | |
download | gentoo-2-adfebd810e383f0a206e00510705a23697ae0719.tar.gz gentoo-2-adfebd810e383f0a206e00510705a23697ae0719.tar.bz2 gentoo-2-adfebd810e383f0a206e00510705a23697ae0719.zip |
Initial import. Based on an ebuild submitted by Ryan Kelly in bug #121234
(Portage version: 2.1_pre6-r5)
-rw-r--r-- | dev-lang/mercury/ChangeLog | 12 | ||||
-rw-r--r-- | dev-lang/mercury/Manifest | 9 | ||||
-rw-r--r-- | dev-lang/mercury/files/digest-mercury-0.12.2 | 3 | ||||
-rw-r--r-- | dev-lang/mercury/files/mercury-0.12.2-CFLAGS.patch | 31 | ||||
-rw-r--r-- | dev-lang/mercury/files/mercury-0.12.2-docs.patch | 20 | ||||
-rw-r--r-- | dev-lang/mercury/files/mercury-0.12.2-portage.patch | 44 | ||||
-rw-r--r-- | dev-lang/mercury/mercury-0.12.2.ebuild | 49 | ||||
-rw-r--r-- | dev-lang/mercury/metadata.xml | 9 |
8 files changed, 177 insertions, 0 deletions
diff --git a/dev-lang/mercury/ChangeLog b/dev-lang/mercury/ChangeLog new file mode 100644 index 000000000000..95bd94c28bb0 --- /dev/null +++ b/dev-lang/mercury/ChangeLog @@ -0,0 +1,12 @@ +# 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.1 2006/03/23 09:13:41 keri Exp $ + +*mercury-0.12.2 (23 Mar 2006) + + 23 Mar 2006; Keri Harris <keri@gentoo.org> + +files/mercury-0.12.2-CFLAGS.patch, +files/mercury-0.12.2-docs.patch, + +files/mercury-0.12.2-portage.patch, +metadata.xml, + +mercury-0.12.2.ebuild: + New ebuild. Based on an ebuild submitted by Ryan Kelly in bug #121234 + diff --git a/dev-lang/mercury/Manifest b/dev-lang/mercury/Manifest new file mode 100644 index 000000000000..8f05e0f4aeaa --- /dev/null +++ b/dev-lang/mercury/Manifest @@ -0,0 +1,9 @@ +MD5 1de216638d19d62bd270bcc2ec55d75d files/digest-mercury-0.12.2 277 +RMD160 56137f9a814f0f6f0d1d4b7200dfda77320ecc48 files/digest-mercury-0.12.2 277 +SHA256 b9767d0d39801d79c2c6fad1bb77b2f7327bc0f5e70c8e9adcc4126352c8ddf9 files/digest-mercury-0.12.2 277 +MD5 8c498594b971faca81cfc1d2e15c222e mercury-0.12.2.ebuild 1241 +RMD160 cef8184922c1ba366113bb711edd6f6d376503f1 mercury-0.12.2.ebuild 1241 +SHA256 4294560892cff8adc394b561dcc8a9917b92666de5400d0065ab244014ecaacb mercury-0.12.2.ebuild 1241 +MD5 6fca20d17d6d55a28537204aa9bb626f metadata.xml 247 +RMD160 1b3df3c501d9a3b2e2651668be405677e8416397 metadata.xml 247 +SHA256 be2c02607bd8d5bf707b178d925fa94c6c705014aa488156323589ca4eaac380 metadata.xml 247 diff --git a/dev-lang/mercury/files/digest-mercury-0.12.2 b/dev-lang/mercury/files/digest-mercury-0.12.2 new file mode 100644 index 000000000000..8447aec3d358 --- /dev/null +++ b/dev-lang/mercury/files/digest-mercury-0.12.2 @@ -0,0 +1,3 @@ +MD5 49796cb9f475a0959d13ec7694777a94 mercury-compiler-0.12.2.tar.gz 15074997 +RMD160 227a3e1796d96ad77324d9f1d39efd6be7fce80e mercury-compiler-0.12.2.tar.gz 15074997 +SHA256 7fa1df8030cdc3d4dc848d102ba64bf23c12004461c985290622b81753b89572 mercury-compiler-0.12.2.tar.gz 15074997 diff --git a/dev-lang/mercury/files/mercury-0.12.2-CFLAGS.patch b/dev-lang/mercury/files/mercury-0.12.2-CFLAGS.patch new file mode 100644 index 000000000000..74bce21ce0af --- /dev/null +++ b/dev-lang/mercury/files/mercury-0.12.2-CFLAGS.patch @@ -0,0 +1,31 @@ +--- mercury-compiler-0.12.2.orig/scripts/mgnuc.in 2005-08-18 17:45:26.000000000 +1200 ++++ mercury-compiler-0.12.2/scripts/mgnuc.in 2006-03-11 19:26:54.000000000 +1300 +@@ -52,7 +52,7 @@ + # -Wenum-clash is for C++ only + # -Wunused causes various spurious warnings + +- OPT_OPTS="-O2 $CFLAGS_FOR_NO_STRICT_ALIASING -fomit-frame-pointer" ++ OPT_OPTS="@CFLAGS_FOR_OPT@" + DEBUG_OPT="-g" + COMPILER=gcc + ;; +--- mercury-compiler-0.12.2.orig/configure 2006-01-25 17:24:01.000000000 +1300 ++++ mercury-compiler-0.12.2/configure 2006-03-11 19:18:59.000000000 +1300 +@@ -3620,7 +3620,7 @@ + # the `-lc' and `-lg' libraries have different contents; specifically, + # only the latter contains memalign(). We need to make sure that the + # test for memalign() doesn't use `-g', since `ml' doesn't use `-g'. +-CFLAGS="-O" ++# CFLAGS="-O" + + # we also need to add the appropriate `-I' options so that the test programs + # can #include various Mercury runtime headers. +@@ -9808,7 +9808,7 @@ + # enable, and why, see scripts/mgnuc.in. + CFLAGS_FOR_WARNINGS="-Wall -Wwrite-strings -Wshadow -Wmissing-prototypes -Wno-unused -Wno-uninitialized -Wstrict-prototypes" + +- CFLAGS_FOR_OPT="-O2 -fomit-frame-pointer" ++ CFLAGS_FOR_OPT="$CFLAGS" + CFLAGS_FOR_DEBUG="-g" + MCFLAGS_FOR_CC= + ;; diff --git a/dev-lang/mercury/files/mercury-0.12.2-docs.patch b/dev-lang/mercury/files/mercury-0.12.2-docs.patch new file mode 100644 index 000000000000..0e77167c4339 --- /dev/null +++ b/dev-lang/mercury/files/mercury-0.12.2-docs.patch @@ -0,0 +1,20 @@ +--- mercury-compiler-0.12.2.orig/doc/Mmakefile 2005-08-17 03:57:40.000000000 +1200 ++++ mercury-compiler-0.12.2/doc/Mmakefile 2006-03-12 18:41:32.000000000 +1300 +@@ -120,7 +120,7 @@ + # formatted versions of the man pages. + # But it might make sense to add them. + .PHONY: all +-all: $(INFOPAGES) $(DVI) $(HTML) manpages $(MDB_DOC) ++all: $(INFOPAGES) $(HTML) manpages $(MDB_DOC) + #all: ps pdf text formatted_manpages + + #-----------------------------------------------------------------------------# +@@ -327,7 +327,7 @@ + # versions of the documentation. If they are added they should + # be installed here. + .PHONY: install +-install: install_info install_html install_dvi install_manpages \ ++install: install_info install_html install_manpages \ + install_mdb_doc + # install_text install_ps + diff --git a/dev-lang/mercury/files/mercury-0.12.2-portage.patch b/dev-lang/mercury/files/mercury-0.12.2-portage.patch new file mode 100644 index 000000000000..75244325ca67 --- /dev/null +++ b/dev-lang/mercury/files/mercury-0.12.2-portage.patch @@ -0,0 +1,44 @@ +--- mercury-compiler-0.12.2.orig/Makefile 2004-11-01 17:46:18.000000000 +1300 ++++ mercury-compiler-0.12.2/Makefile 2006-03-18 12:54:23.000000000 +1300 +@@ -26,7 +26,7 @@ + + .PHONY: all + all: +- $(MMAKE) MMAKEFLAGS=$(PARALLEL) all 2>&1 | tee make_all.log ++ $(MMAKE) MMAKEFLAGS=$(PARALLEL) all 2>&1 || exit 1 + + .PHONY: libmmc + libmmc: +@@ -34,7 +34,7 @@ + + .PHONY: install + install: +- $(MMAKE) MMAKEFLAGS=$(PARALLEL) install 2>&1 | tee make_install.log ++ $(MMAKE) MMAKEFLAGS=$(PARALLEL) install 2>&1 || exit 1 + + # `mmake clean' has a different meaning to the usual GNU standard `make clean': + # it removes the .c files, which makes bootstrapping impossible unless you +--- mercury-compiler-0.12.2.orig/Mmakefile 2005-01-28 20:11:29.000000000 +1300 ++++ mercury-compiler-0.12.2/Mmakefile 2006-03-23 21:00:22.000000000 +1200 +@@ -429,21 +429,6 @@ + @echo + @echo "-- Installation complete." + @echo +- @echo "-- Don't forget to add $(INSTALL_BINDIR) to your PATH," +- @echo "-- $(INSTALL_MAN_DIR) to your MANPATH," +- @echo "-- and $(INSTALL_INFO_DIR) to your INFOPATH," +- @if test $(ENABLE_DEEP_PROFILER) != yes || \ +- cmp -s deep_profiler/mdprof_cgi \ +- $(INSTALL_CGI_DIR)/mdprof_cgi; \ +- then true ; else \ +- echo "-- to copy deep_profiler/mdprof_cgi" \ +- "to $(INSTALL_CGI_DIR),"; \ +- fi +- @echo "-- and to add the following lines to the \`.emacs' file" +- @echo "-- in your home directory:" +- @echo " (setq load-path (cons (expand-file-name " +- @echo " \"$(INSTALL_ELISP_DIR)\") load-path))" +- @echo " (autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)" + + .PHONY: install_main + install_main: all \ diff --git a/dev-lang/mercury/mercury-0.12.2.ebuild b/dev-lang/mercury/mercury-0.12.2.ebuild new file mode 100644 index 000000000000..8d138a33ff23 --- /dev/null +++ b/dev-lang/mercury/mercury-0.12.2.ebuild @@ -0,0 +1,49 @@ +# 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.12.2.ebuild,v 1.1 2006/03/23 09:13:41 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/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="readline" + +DEPEND="readline? ( sys-libs/readline )" + +S="${WORKDIR}"/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-portage.patch + epatch "${FILESDIR}"/${P}-CFLAGS.patch + epatch "${FILESDIR}"/${P}-docs.patch +} + +src_compile() { + econf \ + $(use_with readline) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make \ + MERCURY_COMPILER="${D}"/usr/lib/${PN}/bin/${CHOST}/${PN}_compile \ + 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/${P}/html \ + install || die "make install failed" + + dodoc BUGS HISTORY LIMITATIONS NEWS README README.Java README.Linux README.Linux-Alpha README.Linux-m68k README.Linux-PPC RELEASE_NOTES TODO VERSION WORK_IN_PROGRESS +} diff --git a/dev-lang/mercury/metadata.xml b/dev-lang/mercury/metadata.xml new file mode 100644 index 000000000000..5391604cf31e --- /dev/null +++ b/dev-lang/mercury/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>keri@gentoo.org</email> + <name>Keri Harris</name> +</maintainer> +</pkgmetadata> |