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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 5 05:47:31 2012 UTC (2 years, 2 months ago) by patrick
Branch: MAIN
Bump

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

  ViewVC Help
Powered by ViewVC 1.1.20