summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2010-11-19 23:54:01 +0000
committerKeri Harris <keri@gentoo.org>2010-11-19 23:54:01 +0000
commitca6393fca05ee0af227289bb8f3ebfa4f138cc9d (patch)
treed8b431b2c6838167e841c832e4bb66acbf9db40f /dev-lang/mozart
parentVersion bump with bugfixes and translation updates. Remove old. (diff)
downloadgentoo-2-ca6393fca05ee0af227289bb8f3ebfa4f138cc9d.tar.gz
gentoo-2-ca6393fca05ee0af227289bb8f3ebfa4f138cc9d.tar.bz2
gentoo-2-ca6393fca05ee0af227289bb8f3ebfa4f138cc9d.zip
Revbump - only install oz when USE="emacs"; gcc4 fixes for DSS
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/mozart')
-rw-r--r--dev-lang/mozart/ChangeLog7
-rw-r--r--dev-lang/mozart/mozart-1.4.0-r1.ebuild116
2 files changed, 122 insertions, 1 deletions
diff --git a/dev-lang/mozart/ChangeLog b/dev-lang/mozart/ChangeLog
index d4c042e5c593..3028abcb0722 100644
--- a/dev-lang/mozart/ChangeLog
+++ b/dev-lang/mozart/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/mozart
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/ChangeLog,v 1.31 2010/11/19 05:06:21 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/ChangeLog,v 1.32 2010/11/19 23:54:01 keri Exp $
+
+*mozart-1.4.0-r1 (19 Nov 2010)
+
+ 19 Nov 2010; <keri@gentoo.org> +mozart-1.4.0-r1.ebuild:
+ Revbump - only install oz when USE="emacs"; gcc4 fixes for DSS
19 Nov 2010; <keri@gentoo.org> mozart-1.4.0.ebuild:
Enable DP tests to load DSS library. See #298155.
diff --git a/dev-lang/mozart/mozart-1.4.0-r1.ebuild b/dev-lang/mozart/mozart-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..a7f5b6610ce0
--- /dev/null
+++ b/dev-lang/mozart/mozart-1.4.0-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.4.0-r1.ebuild,v 1.1 2010/11/19 23:54:01 keri Exp $
+
+EAPI="2"
+
+inherit elisp-common eutils
+
+PATCHSET_VER="2"
+MY_P="mozart-${PV}.20080704"
+
+DESCRIPTION="Mozart is an advanced development platform for intelligent, distributed applications"
+HOMEPAGE="http://www.mozart-oz.org/"
+SRC_URI="http://www.mozart-oz.org/download/mozart-ftp/store/1.4.0-2008-07-02-tar/mozart-1.4.0.20080704-src.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz
+ doc? ( http://www.mozart-oz.org/download/mozart-ftp/store/1.4.0-2008-07-02-tar/mozart-1.4.0.20080704-doc.tar.gz )"
+LICENSE="Mozart"
+
+SLOT="0"
+KEYWORDS="-amd64 ~ppc -ppc64 ~sparc ~x86"
+IUSE="doc emacs gdbm static tcl threads tk"
+
+RDEPEND="dev-lang/perl
+ dev-libs/gmp
+ sys-libs/zlib
+ emacs? ( virtual/emacs )
+ gdbm? ( sys-libs/gdbm )
+ tcl? ( tk? (
+ dev-lang/tk
+ dev-lang/tcl ) )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex"
+
+SITEFILE=50${PN}-gentoo.el
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
+}
+
+src_configure() {
+ local myconf="\
+ --without-global-oz \
+ --enable-opt=none"
+
+ if use tcl && use tk ; then
+ myconf="${myconf} --enable-wish"
+ else
+ myconf="${myconf} --disable-wish"
+ fi
+
+ econf \
+ ${myconf} \
+ --disable-doc \
+ --enable-contrib \
+ --disable-contrib-micq \
+ $(use_enable doc contrib-doc) \
+ $(use_enable gdbm contrib-gdbm) \
+ $(use_enable tk contrib-tk) \
+ $(use_enable emacs compile-elisp) \
+ $(use_enable static link-static) \
+ $(use_enable threads threaded)
+}
+
+src_compile() {
+ emake bootstrap || die "emake bootstrap failed"
+}
+
+src_test() {
+ # Mozart tests must be run single-threaded
+ cd "${S}"/share/test
+ emake -j1 boot-oztest || die "emake boot-oztest failed"
+ emake -j1 boot-check || die "emake boot-check failed"
+}
+
+src_install() {
+ emake \
+ PREFIX="${D}"/usr/lib/mozart \
+ ELISPDIR="${D}${SITELISP}/${PN}" \
+ install || die "emake install failed"
+
+ dosym /usr/lib/mozart/bin/convertTextPickle /usr/bin/convertTextPickle || die
+ dosym /usr/lib/mozart/bin/oldpickle2text /usr/bin/oldpickle2text || die
+ dosym /usr/lib/mozart/bin/ozc /usr/bin/ozc || die
+ dosym /usr/lib/mozart/bin/ozd /usr/bin/ozd || die
+ dosym /usr/lib/mozart/bin/ozengine /usr/bin/ozengine || die
+ dosym /usr/lib/mozart/bin/ozl /usr/bin/ozl || die
+ dosym /usr/lib/mozart/bin/ozplatform /usr/bin/ozplatform || die
+ dosym /usr/lib/mozart/bin/oztool /usr/bin/oztool || die
+ dosym /usr/lib/mozart/bin/pickle2text /usr/bin/pickle2text || die
+ dosym /usr/lib/mozart/bin/text2pickle /usr/bin/text2pickle || die
+
+ if use emacs; then
+ dosym /usr/lib/mozart/bin/oz /usr/bin/oz || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ fi
+
+ if use doc ; then
+ dohtml -r "${WORKDIR}"/mozart/doc/* || die
+ fi
+
+ dodoc README || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}