diff options
author | Matthieu Sozeau <mattam@gentoo.org> | 2004-06-10 08:39:33 +0000 |
---|---|---|
committer | Matthieu Sozeau <mattam@gentoo.org> | 2004-06-10 08:39:33 +0000 |
commit | 155f2ab18ae77fe70d69aa0e25902655d1fac59d (patch) | |
tree | 46e4dd871f4ba3f15bb8b3a50fe461dc96dafca4 /dev-lang/mlton | |
parent | inherit eutils for epatch (Manifest recommit) (diff) | |
download | gentoo-2-155f2ab18ae77fe70d69aa0e25902655d1fac59d.tar.gz gentoo-2-155f2ab18ae77fe70d69aa0e25902655d1fac59d.tar.bz2 gentoo-2-155f2ab18ae77fe70d69aa0e25902655d1fac59d.zip |
New ebuild for mlton (SML compiler) source.
Diffstat (limited to 'dev-lang/mlton')
-rw-r--r-- | dev-lang/mlton/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lang/mlton/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/mlton/files/digest-mlton-20040227 | 1 | ||||
-rw-r--r-- | dev-lang/mlton/files/mlton-20040227-obsolete-flags.patch | 28 | ||||
-rw-r--r-- | dev-lang/mlton/metadata.xml | 5 | ||||
-rw-r--r-- | dev-lang/mlton/mlton-20040227.ebuild | 35 |
6 files changed, 81 insertions, 0 deletions
diff --git a/dev-lang/mlton/ChangeLog b/dev-lang/mlton/ChangeLog new file mode 100644 index 000000000000..47409155754b --- /dev/null +++ b/dev-lang/mlton/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-lang/mlton +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mlton/ChangeLog,v 1.1 2004/06/10 08:39:32 mattam Exp $ + +*mlton-20040227 (10 Jun 2004) + + 10 Jun 2004; Matthieu Sozeau <mattam@gentoo.org> metadata.xml, + mlton-20040227.ebuild, files/mlton-20040227-obsolete-flags.patch: + New ebuild for source version of mlton (requires mlton-bin to compile). + diff --git a/dev-lang/mlton/Manifest b/dev-lang/mlton/Manifest new file mode 100644 index 000000000000..d6b48dee56c4 --- /dev/null +++ b/dev-lang/mlton/Manifest @@ -0,0 +1,2 @@ +MD5 96463b654d1608c19880b2873f4e905f mlton-20040227.ebuild 752 +MD5 fc40fd217231ed1183406f8f0bb9f8c2 files/digest-mlton-20040227 70 diff --git a/dev-lang/mlton/files/digest-mlton-20040227 b/dev-lang/mlton/files/digest-mlton-20040227 new file mode 100644 index 000000000000..de6299769565 --- /dev/null +++ b/dev-lang/mlton/files/digest-mlton-20040227 @@ -0,0 +1 @@ +MD5 bbf3186136d5fd1bd766a0e7b1366535 mlton-20040227-1.src.tgz 2264887 diff --git a/dev-lang/mlton/files/mlton-20040227-obsolete-flags.patch b/dev-lang/mlton/files/mlton-20040227-obsolete-flags.patch new file mode 100644 index 000000000000..c6904b6379fd --- /dev/null +++ b/dev-lang/mlton/files/mlton-20040227-obsolete-flags.patch @@ -0,0 +1,28 @@ +diff -Nru mlton-20040227.orig/bin/mlton mlton-20040227/bin/mlton +--- mlton-20040227.orig/bin/mlton 2004-06-09 17:43:13.388827848 +0200 ++++ mlton-20040227/bin/mlton 2004-06-09 17:43:39.256895304 +0200 +@@ -58,9 +58,9 @@ + '-fno-strength-reduce + -fschedule-insns + -fschedule-insns2 +- -malign-functions=5 +- -malign-jumps=2 +- -malign-loops=2 ++ -falign-functions=5 ++ -falign-jumps=2 ++ -falign-loops=2 + -mcpu=pentiumpro' \ + -target-cc-opt sparc \ + '-Wa,-xarch=v8plusa +diff -Nru mlton-20040227.orig/runtime/Makefile mlton-20040227/runtime/Makefile +--- mlton-20040227.orig/runtime/Makefile 2004-06-09 17:43:13.689782096 +0200 ++++ mlton-20040227/runtime/Makefile 2004-06-09 17:43:39.258895000 +0200 +@@ -4,7 +4,7 @@ + FLAGS = -fomit-frame-pointer + + ifeq ($(TARGET_ARCH), x86) +-FLAGS += -mcpu=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=5 ++FLAGS += -mcpu=pentiumpro -falign-loops=2 -falign-jumps=2 -falign-functions=5 + endif + ifeq ($(TARGET_ARCH), sparc) + FLAGS += -Wa,-xarch=v8plusa -fcall-used-g5 -fcall-used-g7 -funroll-all-loops -m32 -mv8 -mcpu=ultrasparc diff --git a/dev-lang/mlton/metadata.xml b/dev-lang/mlton/metadata.xml new file mode 100644 index 000000000000..2193d772e351 --- /dev/null +++ b/dev-lang/mlton/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ml</herd> +</pkgmetadata> diff --git a/dev-lang/mlton/mlton-20040227.ebuild b/dev-lang/mlton/mlton-20040227.ebuild new file mode 100644 index 000000000000..b8e47ae8bb4d --- /dev/null +++ b/dev-lang/mlton/mlton-20040227.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mlton/mlton-20040227.ebuild,v 1.1 2004/06/10 08:39:32 mattam Exp $ + +inherit eutils + +DESCRIPTION="Standard ML optimizing compiler and libraries" +SRC_URI="http://www.mlton.org/download/${P}-1.src.tgz" +HOMEPAGE="http://www.mlton.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="doc" + +DEPEND="virtual/glibc +dev-libs/gmp +dev-lang/mlton-bin" + +src_compile() { + epatch ${FILESDIR}/${P}-obsolete-flags.patch + # does not support parallel make + make +} + +src_install() { + make DESTDIR=${D} install-no-docs + + if use doc; then + make DESTDIR=${D} TDOC=${D}/usr/share/doc/${P} install-docs + else + cd doc && dodoc changelog license/* + fi +}
\ No newline at end of file |