summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-02 04:30:42 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-02 04:30:42 +0000
commitf4ccb9154f06d4c692cee857397f3fd370b01518 (patch)
treec3c11bb507fb8fbb8035f913aee750b49f464d2b /dev-lang/cm3
parentstable on mips (diff)
downloadgentoo-2-f4ccb9154f06d4c692cee857397f3fd370b01518.tar.gz
gentoo-2-f4ccb9154f06d4c692cee857397f3fd370b01518.tar.bz2
gentoo-2-f4ccb9154f06d4c692cee857397f3fd370b01518.zip
Version bump #81798 by Stefan Sperling.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-lang/cm3')
-rw-r--r--dev-lang/cm3/ChangeLog10
-rw-r--r--dev-lang/cm3/cm3-5.2.7_pre050331.ebuild74
-rw-r--r--dev-lang/cm3/files/digest-cm3-5.2.7_pre0503311
3 files changed, 83 insertions, 2 deletions
diff --git a/dev-lang/cm3/ChangeLog b/dev-lang/cm3/ChangeLog
index 0be0c7e32c48..3dab57c165c7 100644
--- a/dev-lang/cm3/ChangeLog
+++ b/dev-lang/cm3/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/cm3
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3/ChangeLog,v 1.4 2004/06/24 22:47:33 agriffis Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3/ChangeLog,v 1.5 2005/04/02 04:30:42 vapier Exp $
+
+*cm3-5.2.7_pre050331 (02 Apr 2005)
+
+ 02 Apr 2005; Mike Frysinger <vapier@gentoo.org>
+ +cm3-5.2.7_pre050331.ebuild:
+ Version bump #81798 by Stefan Sperling.
*cm3-5.2.6 (17 Jul 2003)
diff --git a/dev-lang/cm3/cm3-5.2.7_pre050331.ebuild b/dev-lang/cm3/cm3-5.2.7_pre050331.ebuild
new file mode 100644
index 000000000000..acf4e17772b8
--- /dev/null
+++ b/dev-lang/cm3/cm3-5.2.7_pre050331.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3/cm3-5.2.7_pre050331.ebuild,v 1.1 2005/04/02 04:30:42 vapier Exp $
+
+inherit fixheadtails
+
+STAMP=${PV/*_pre}
+MY_PV=${PV/_pre*}-20${STAMP:0:2}-${STAMP:2:2}-${STAMP:4:2}
+DESCRIPTION="Critical Mass Modula-3 compiler"
+HOMEPAGE="http://www.elegosoft.com/cm3/"
+SRC_URI="http://www.elegosoft.com/cm3/${PN}-src-all-d${MY_PV}.tgz"
+
+LICENSE="CMASS-M3 DEC-M3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tcltk"
+
+RDEPEND="tcltk? ( dev-lang/tcl )"
+DEPEND="${RDEPEND}
+ sys-devel/gcc
+ >=dev-lang/cm3-bin-${PV}"
+PROVIDE="virtual/m3"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ ht_fix_all
+}
+
+setup_env() {
+ export GCC_BACKEND="yes"
+ export M3GDB="no"
+ export HAVE_SERIAL="no"
+ unset M3GC_SIMPLE
+ use tcltk \
+ && HAVE_TCL="yes" \
+ || HAVE_TCL="no"
+}
+
+src_compile() {
+ setup_env
+ cd scripts
+ for s in do-cm3-core do-cm3-base ; do
+ env -u P ROOT="${S}" ./${s}.sh build || die "building ${s}"
+ done
+}
+
+src_install() {
+ setup_env
+ local TARGET=`grep 'TARGET.*=' /usr/bin/cm3.cfg | awk '{print $4}' | sed 's:"::g'`
+ sed -i "s:\"/usr/lib/cm3/:\"${D}/usr/lib/cm3/:g" `find -name .M3SHIP` || die "fixing .M3SHIP"
+
+ cd scripts
+ dodir /usr/lib/cm3
+ for s in do-cm3-core do-cm3-base ; do
+ env -u P ROOT="${S}" ./${s}.sh ship || die "shipping ${s}"
+ done
+ cd "${D}"/usr/lib/cm3/pkg
+ sed -i "s:${S}/*[^/-]*-[^/\"]*:/usr/lib/cm3/pkg:" `grep -RIl ${PORTAGE_TMPDIR}/portage *` || die "fixing .M3EXPORTS"
+
+ # do all this crazy linking so as to overwrite cm3-bin stuff
+ dodir /usr/bin
+ insinto /usr/lib/cm3/bin
+ doins /usr/bin/cm3.cfg
+ dosym /usr/lib/cm3/pkg/cm3/${TARGET}/cm3 /usr/lib/cm3/bin/cm3
+ dosym /usr/lib/cm3/bin/cm3 /usr/bin/cm3
+ dosym /usr/lib/cm3/bin/cm3cg /usr/bin/cm3cg
+ dosym /usr/lib/cm3/bin/cm3.cfg /usr/bin/cm3.cfg
+ dobin "${FILESDIR}"/m3{build,ship}
+
+ doenvd "${FILESDIR}"/05cm3
+}
diff --git a/dev-lang/cm3/files/digest-cm3-5.2.7_pre050331 b/dev-lang/cm3/files/digest-cm3-5.2.7_pre050331
new file mode 100644
index 000000000000..77c8f3594bcc
--- /dev/null
+++ b/dev-lang/cm3/files/digest-cm3-5.2.7_pre050331
@@ -0,0 +1 @@
+MD5 be989b4fb3f1d1a6a9a6de9d8e64a512 cm3-src-all-d5.2.7-2005-03-31.tgz 33069086