Skip to content

Instantly share code, notes, and snippets.

@cnd
Created November 26, 2012 10:19
Show Gist options
  • Save cnd/4147527 to your computer and use it in GitHub Desktop.
Save cnd/4147527 to your computer and use it in GitHub Desktop.
nemerle
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit mono eutils multilib git-2
DESCRIPTION="A hybrid programming language for .NET / Mono platforms"
HOMEPAGE="http://www.nemerle.org/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/rsdn/nemerle.git"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND=">dev-lang/mono-2.11.3"
RDEPEND="${DEPEND}"
src_configure() {
elog "Just don't"
}
src_compile() {
elog "Nemerle sources compiling : "
xbuild NemerleAll-Mono.nproj /t:Stage1 /p:Configuration=Release
}
src_install()
{
elog "Installing libraries"
insinto "/usr/$(get_libdir)/${PN}"
doins bin/Release/mono-3.5/Stage4/*.dll || die "installing libraries failed"
elog "Registering libraries to egac"
local nemerledll=bin/Release/mono-3.5/Stage4/Nemerle.dll
egacinstall "${nemerledll}" \
|| die "couldn't install ${nemerledll} in the global assembly cache"
local nemerlecompilerdll=bin/Release/mono-3.5/Stage4/Nemerle.Compiler.dll
egacinstall "${nemerlecompilerdll}" \
|| die "couldn't install ${nemerlecompilerdll} in the global assembly cache"
local nemerlemacrosdll=bin/Release/mono-3.5/Stage4/Nemerle.Macros.dll
egacinstall "${nemerlemacrosdll}" \
|| die "couldn't install ${nemerlemacrosdll} in the global assembly cache"
elog "Installing ncc"
dodoc README AUTHORS INSTALL NEWS ChangeLog
into /usr
dobin bin/Release/mono-3.5/Stage4/ncc.exe
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment