summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Diserholt <albert@diserholt.com>2017-10-18 21:54:53 +0200
committerAlbert Diserholt <albert@diserholt.com>2017-10-18 21:54:53 +0200
commite16599dfede74cc8372c935d81279a6035b2e5cd (patch)
treeb75fee829afdbbffe683153c748d39293b200b1d /dev-lang/neko/neko-2.0.0-r1.ebuild
parentUpdated Aseprite to version 1.2.2 (diff)
downloadDrauthius-e16599dfede74cc8372c935d81279a6035b2e5cd.tar.gz
Drauthius-e16599dfede74cc8372c935d81279a6035b2e5cd.tar.bz2
Drauthius-e16599dfede74cc8372c935d81279a6035b2e5cd.zip
Updated haxe and fixed neko.
Thanks to Alexander Konotop for the patches.
Diffstat (limited to 'dev-lang/neko/neko-2.0.0-r1.ebuild')
-rw-r--r--dev-lang/neko/neko-2.0.0-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-lang/neko/neko-2.0.0-r1.ebuild b/dev-lang/neko/neko-2.0.0-r1.ebuild
new file mode 100644
index 0000000..1efd7f5
--- /dev/null
+++ b/dev-lang/neko/neko-2.0.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base
+
+DESCRIPTION="Neko is a high-level dynamically typed programming language."
+HOMEPAGE="http://nekovm.org/"
+SRC_URI="http://nekovm.org/media/${P}.tar.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc x86"
+IUSE=""
+
+DEPEND="dev-libs/boehm-gc[threads]"
+RDEPEND="${DEPEND}"
+
+MAKEOPTS+=" -j1"
+
+src_configure() {
+ # Reading things from stdin doesn't work, so just replace with "s" (i.e. skip).
+ sed -i 's/readline();/"s";/' src/tools/install.neko || die "Unable to modify install.neko."
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-soname.patch"
+
+ # fix path to use lib64 for appropriate architectures
+ sed -i -e "s:\/lib\/:\/$(get_libdir)\/:g" Makefile \
+ || die "patching Makefile failed"
+ sed -i -e "s:\/lib$:\/$(get_libdir):" Makefile \
+ || die "patching Makefile failed"
+}
+
+src_install() {
+ mkdir -p "${D}/usr/"{$(get_libdir),bin} # Missing from install target
+ emake INSTALL_PREFIX="${D}/usr" install
+}