summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-08-22 03:30:17 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-08-22 03:30:17 +0000
commit082448cda7d65113e5260ecea58f3b99bee05951 (patch)
tree3da2eb68c3aea026dc197ae9096c549b70106747 /dev-lang/niecza
parentInitial import, ebuilds by me (diff)
downloadgentoo-2-082448cda7d65113e5260ecea58f3b99bee05951.tar.gz
gentoo-2-082448cda7d65113e5260ecea58f3b99bee05951.tar.bz2
gentoo-2-082448cda7d65113e5260ecea58f3b99bee05951.zip
Initial import, ebuilds by me
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/niecza')
-rw-r--r--dev-lang/niecza/ChangeLog9
-rw-r--r--dev-lang/niecza/Manifest4
-rw-r--r--dev-lang/niecza/files/fix-bootstrap.patch13
-rw-r--r--dev-lang/niecza/metadata.xml8
-rw-r--r--dev-lang/niecza/niecza-19.ebuild57
5 files changed, 91 insertions, 0 deletions
diff --git a/dev-lang/niecza/ChangeLog b/dev-lang/niecza/ChangeLog
new file mode 100644
index 000000000000..fb407a25db94
--- /dev/null
+++ b/dev-lang/niecza/ChangeLog
@@ -0,0 +1,9 @@
+# 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.1 2012/08/22 03:30:17 patrick Exp $
+
+*niecza-19 (22 Aug 2012)
+
+ 22 Aug 2012; Patrick Lauer <patrick@gentoo.org> +files/fix-bootstrap.patch,
+ +metadata.xml, +niecza-19.ebuild:
+ Initial import, ebuilds by me
diff --git a/dev-lang/niecza/Manifest b/dev-lang/niecza/Manifest
new file mode 100644
index 000000000000..44bb16a16ca1
--- /dev/null
+++ b/dev-lang/niecza/Manifest
@@ -0,0 +1,4 @@
+AUX fix-bootstrap.patch 456 SHA256 6645fe985d3f3a65db8b427575e9ceaa293ce553f4daa56f9aa2a395c2d7325e SHA512 2859e4a897e45942aaa0bddcc105ba700ea61e00744b6f065eda73e5f8a218ab5a7116cc2644e86816091d903c99ea04e6d805b4deb6cb8d00d422e4225d7961 WHIRLPOOL 3b12e379ae5427c2ce497251dedf38370e3e99e72bfc8f0ae99d46518506d4df4e05fedfc11bd126d3203a5ed453a409fb88ef9f1b23e85f127197bc3614bf1b
+DIST niecza-19.zip 728618 SHA256 b320a72e77531515bafb2c1e1588572f39f24e9c38305eb4cbe60569e87845e9 SHA512 3be02a89f9698724fd4a5d8aad0dd2946a5cb4ace9bf519d0ddb52d159596beeeb162884a8b98b4fcdf8b322149ae222b3dd11caeb369218d73afe3194ab186c WHIRLPOOL 5e627ce9d885ed059bda2a898518bce551d82ca7801f5239b010316d5ce2aaf7c70ca063c73b204f06b72825158650a30653092ba86156e25021ad4bc67569b5
+EBUILD niecza-19.ebuild 1498 SHA256 020c362a3afd811f22730ed2245f7891b3a57e6e3b4c4df8746869ff0b28dace SHA512 3fe3d7ddba66d5174786947bfcfd99218df3682c3fd8ba1f36f6a7a7f3e2de716bde71687c0c78c8d65952ac976d0a93b50771cf8aa15b89379ab98917c7d482 WHIRLPOOL c166ea49f60740e38589a5264023d3a0f01b7f59b6ce61d5b51a1f9b00036f7e6b6c5da8502cab2c7f709bacda040c23cd2fc93be4406538cc8152a621c30ad0
+MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
diff --git a/dev-lang/niecza/files/fix-bootstrap.patch b/dev-lang/niecza/files/fix-bootstrap.patch
new file mode 100644
index 000000000000..71d02385824a
--- /dev/null
+++ b/dev-lang/niecza/files/fix-bootstrap.patch
@@ -0,0 +1,13 @@
+--- Makefile 2012-06-25 22:30:16.000000000 +0800
++++ Makefile.new 2012-08-22 10:55:22.879717085 +0800
+@@ -37,10 +37,6 @@
+ $(RUN_CLR) run/Kernel.dll -gen-app Niecza boot/obj
+
+ .fetch-stamp: FETCH_URL
+- -rm -rf boot/
+- mkdir boot
+- wget --no-check-certificate -Oboot/niecza.zip $$(cat FETCH_URL)
+- cd boot && unzip niecza.zip
+ NIECZA_KEEP_IL=1 $(RUN_CLR) boot/run/Niecza.exe -C $(libunits)
+ $(CP) boot/run/Kernel.dll boot/obj/
+ touch .fetch-stamp
diff --git a/dev-lang/niecza/metadata.xml b/dev-lang/niecza/metadata.xml
new file mode 100644
index 000000000000..24cbb90cf0c4
--- /dev/null
+++ b/dev-lang/niecza/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-lang/niecza/niecza-19.ebuild b/dev-lang/niecza/niecza-19.ebuild
new file mode 100644
index 000000000000..1d722ecbc29a
--- /dev/null
+++ b/dev-lang/niecza/niecza-19.ebuild
@@ -0,0 +1,57 @@
+# 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-19.ebuild,v 1.1 2012/08/22 03:30:17 patrick Exp $
+
+EAPI=4
+
+inherit eutils multilib
+
+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"
+#SRC_URI="https://github.com/downloads/sorear/${PN}/${P}.zip"
+SRC_URI="https://github.com/sorear/niecza/zipball/v19 -> niecza-19.zip"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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
+}