/[gentoo-x86]/dev-lang/niecza/niecza-9999.ebuild
Gentoo

Contents of /dev-lang/niecza/niecza-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Aug 28 07:50:36 2012 UTC (2 years, 4 months ago) by patrick
Branch: MAIN
Changes since 1.1: +5 -3 lines
Bump

(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/niecza/niecza-9999.ebuild,v 1.1 2012/08/22 03:50:29 patrick Exp $
4
5 EAPI=4
6
7 inherit eutils git-2
8
9 GITHUB_CRAP="sorear-niecza-3743eb0"
10
11 DESCRIPTION="A Perl 6 compiler targetting the CLR with an experimental focus on optimizations."
12 HOMEPAGE="https://github.com/sorear/niecza"
13 EGIT_REPO_URI="https://github.com/sorear/niecza.git"
14
15 LICENSE="Artistic-2"
16 SLOT="0"
17 IUSE=""
18
19 RDEPEND="dev-lang/mono"
20 DEPEND="${RDEPEND}
21 || ( dev-lang/niecza-bin dev-lang/niecza )"
22
23 S=${WORKDIR}/${GITHUB_CRAP}
24
25 src_prepare() {
26 epatch "${FILESDIR}"/fix-bootstrap-${PV}.patch || die "Failed to fix"
27 cd "${S}"
28 # bootstrap only works from git dirs? sigh :)
29 sed -i -e 's:@git describe --tags:echo "v9999":' Makefile
30 # silly workaround for stuff trying to write everywhere: copy the installed niecza here (sigh)
31 # since we have different installation paths for the bin version we need to check here
32 mkdir boot -p
33 if has_version dev-lang/niecza; then
34 cp -r /opt/niecza/* boot/
35 else
36 cp -r /opt/niecza-bin/* boot/
37 fi
38 mkdir -p boot/obj
39 }
40
41 src_configure() { :; }
42
43 src_compile() {
44 emake -j1 || die
45 }
46
47 src_test() {
48 export XDG_DATA_HOME="${S}"
49 emake -j1 test || die
50 }
51
52 src_install() {
53 mkdir -p "${D}"/opt/niecza
54 for i in docs lib obj run README.pod; do
55 cp -r "${S}"/$i "${D}"/opt/niecza/ || die "Failed to install"
56 done
57 }

  ViewVC Help
Powered by ViewVC 1.1.20