diff options
Diffstat (limited to 'dev-lang/niecza')
-rw-r--r-- | dev-lang/niecza/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/niecza/niecza-9999.ebuild | 55 |
2 files changed, 61 insertions, 1 deletions
diff --git a/dev-lang/niecza/ChangeLog b/dev-lang/niecza/ChangeLog index 4cd63b2d0e41..34414b6f5230 100644 --- a/dev-lang/niecza/ChangeLog +++ b/dev-lang/niecza/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/niecza # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/niecza/ChangeLog,v 1.2 2012/08/22 03:34:07 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/niecza/ChangeLog,v 1.3 2012/08/22 03:50:29 patrick Exp $ + +*niecza-9999 (22 Aug 2012) + + 22 Aug 2012; Patrick Lauer <patrick@gentoo.org> +niecza-9999.ebuild: + Add live ebuild 22 Aug 2012; Patrick Lauer <patrick@gentoo.org> niecza-19.ebuild: Make repoman happy diff --git a/dev-lang/niecza/niecza-9999.ebuild b/dev-lang/niecza/niecza-9999.ebuild new file mode 100644 index 000000000000..cfe4d81bff56 --- /dev/null +++ b/dev-lang/niecza/niecza-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/niecza/niecza-9999.ebuild,v 1.1 2012/08/22 03:50:29 patrick Exp $ + +EAPI=4 + +inherit eutils git-2 + +GITHUB_CRAP="sorear-niecza-3743eb0" + +DESCRIPTION="A Perl 6 compiler targetting the CLR with an experimental focus on optimizations." +HOMEPAGE="https://github.com/sorear/niecza" +EGIT_REPO_URI="https://github.com/sorear/niecza.git" + +LICENSE="Artistic-2" +SLOT="0" +IUSE="" + +RDEPEND="dev-lang/mono" +DEPEND="${RDEPEND} + || ( dev-lang/niecza-bin dev-lang/niecza )" + +S=${WORKDIR}/${GITHUB_CRAP} + +src_prepare() { + epatch "${FILESDIR}"/fix-bootstrap.patch || die "Failed to fix" + cd "${S}" + # bootstrap only works from git dirs? sigh :) + sed -i -e 's:@git describe --tags:echo "v19":' Makefile + # silly workaround for stuff trying to write everywhere: copy the installed niecza here (sigh) + # since we have different installation paths for the bin version we need to check here + mkdir boot -p + if has_version dev-lang/niecza; then + cp -r /opt/niecza/* boot/ + else + cp -r /opt/niecza-bin/* boot/ + fi +} + +src_configure() { :; } + +src_compile() { + emake -j1 || die +} + +src_test() { + emake -j1 test || die +} + +src_install() { + mkdir -p "${D}"/opt/niecza + for i in docs lib obj run README.pod; do + cp -r "${S}"/$i "${D}"/opt/niecza/ || die "Failed to install" + done +} |