From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-lang/opendylan/opendylan-2014.1.ebuild | 101 +++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 dev-lang/opendylan/opendylan-2014.1.ebuild (limited to 'dev-lang/opendylan/opendylan-2014.1.ebuild') diff --git a/dev-lang/opendylan/opendylan-2014.1.ebuild b/dev-lang/opendylan/opendylan-2014.1.ebuild new file mode 100644 index 000000000000..6bced74464e6 --- /dev/null +++ b/dev-lang/opendylan/opendylan-2014.1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools toolchain-funcs + +DESCRIPTION="OpenDylan language runtime environment" +HOMEPAGE="http://opendylan.org" +SRC_URI="http://opendylan.org/downloads/${PN}/${PV}/${P}-sources.tar.bz2" + +LICENSE="Opendylan" +SLOT="0" +# not tested on x86 +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" + +# the boehm-gc check is "wrong" and reported upstream +# but for now static-libs useflag is needed +DEPEND="app-arch/unzip + dev-libs/boehm-gc[threads] + dev-lang/perl + dev-perl/XML-Parser + || ( dev-lang/opendylan-bin dev-lang/opendylan ) + x86? ( :" $i + done + done + fi +} + +src_configure() { + if has_version =dev-lang/opendylan-bin-2014.1; then + PATH=/opt/opendylan-2014.1/bin/:$PATH + elif has_version =dev-lang/opendylan-bin-2013.2; then + PATH=/opt/opendylan-2013.2/bin/:$PATH + elif has_version =dev-lang/opendylan-bin-2013.1; then + PATH=/opt/opendylan-2013.1/bin/:$PATH + else + PATH=/opt/opendylan/bin:$PATH + fi + + if use amd64; then + econf --prefix=/opt/opendylan || die + else + econf --prefix=/opt/opendylan --with-mps=/usr/include/mps/ || die + fi + if use x86; then + # Includedir, pointing at something wrong + sed -i -e 's:-I$(MPS)/code:-I$(MPS):' sources/lib/run-time/pentium-linux/Makefile || die "Couldn't fix mps path" + sed -i -e 's~(cd $(MPS)/code; make -f lii4gc.gmk mmdw.a)~:;~' sources/lib/run-time/pentium-linux/Makefile || die "Couldn't fix mps building" + sed -i -e 's~(cd $(MPS)/code; make -f lii4gc.gmk mpsplan.a)~:;~' sources/lib/run-time/pentium-linux/Makefile || die "Couldn't fix mps building" + sed -i -e 's~$(MPS_LIB)/mpsplan.a~/usr/lib/mpsplan.a~' sources/lib/run-time/pentium-linux/Makefile || die "Couldn't fix mps clone" + sed -i -e 's~$(MPS_LIB)/mmdw.a~/usr/lib/mmdw.a~' sources/lib/run-time/pentium-linux/Makefile || die "Couldn't fix mps clone" + fi +} + +src_compile() { + ulimit -s 32000 # this is naughty build system + emake -j1 3-stage-bootstrap || die +} + +src_install() { + ulimit -s 32000 # this is naughty build system + # because of Makefile weirdness it rebuilds quite a bit here + # upstream has been notified + emake -j1 DESTDIR="${D}" install + mkdir -p "${D}/etc/env.d/opendylan/" + echo "export PATH=/opt/opendylan/bin:\$PATH" > "${D}/etc/env.d/opendylan/99-opendylan" || die "Failed to add env settings" +} -- cgit v1.2.3