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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 22 03:34:07 2012 UTC (2 years ago) by patrick
Branch: MAIN
Changes since 1.1: +5 -5 lines
Make repoman happy

(Portage version: 2.2.0_alpha121/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-19.ebuild,v 1.1 2012/08/22 03:30:17 patrick Exp $
4
5 EAPI=4
6
7 inherit eutils multilib
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 #SRC_URI="https://github.com/downloads/sorear/${PN}/${P}.zip"
14 SRC_URI="https://github.com/sorear/niecza/zipball/v19 -> niecza-19.zip"
15
16 LICENSE="Artistic-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE=""
20
21 RDEPEND="dev-lang/mono"
22 DEPEND="${RDEPEND}
23 || ( dev-lang/niecza-bin dev-lang/niecza )"
24
25 S=${WORKDIR}/${GITHUB_CRAP}
26
27 src_prepare() {
28 epatch "${FILESDIR}"/fix-bootstrap.patch || die "Failed to fix"
29 cd "${S}"
30 # bootstrap only works from git dirs? sigh :)
31 sed -i -e 's:@git describe --tags:echo "v19":' Makefile
32 # silly workaround for stuff trying to write everywhere: copy the installed niecza here (sigh)
33 # since we have different installation paths for the bin version we need to check here
34 mkdir boot -p
35 if has_version dev-lang/niecza; then
36 cp -r /opt/niecza/* boot/
37 else
38 cp -r /opt/niecza-bin/* boot/
39 fi
40 }
41
42 src_configure() { :; }
43
44 src_compile() {
45 emake -j1 || die
46 }
47
48 src_test() {
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