Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 83 lines (64 sloc) 1.91 KB
#! /usr/local/bin/parrot
# Copyright (C) 2009, Parrot Foundation.
# $Id$
=head1 NAME
setup.pir - Python distutils style
=head1 DESCRIPTION
No Configure step, no Makefile generated.
=head1 USAGE
$ parrot setup.pir build
$ parrot setup.pir test
$ sudo parrot setup.pir install
=cut
.sub 'main' :main
.param pmc args
$S0 = shift args
load_bytecode 'distutils.pbc'
$P0 = new 'Hash'
$P0['name'] = 'Pheme'
$P0['abstract'] = 'Yet Another Scheme'
$P0['description'] = 'Pheme is a Parrot-based implementation of Scheme.'
$P0['license_type'] = 'Artistic License 2.0'
$P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0'
$P0['copyright_holder'] = 'Parrot Foundation'
$P0['checkout_uri'] = 'https://svn.parrot.org/languages/pheme/trunk'
$P0['browser_uri'] = 'https://trac.parrot.org/languages/browser/pheme'
$P0['project_uri'] = 'https://trac.parrot.org/parrot/wiki/Languages'
# build
$P1 = new 'Hash'
$P1['lib/pheme_grammar_gen.pir'] = 'lib/pheme.g'
$P0['pir_pge'] = $P1
$P2 = new 'Hash'
$P2['lib/ASTGrammar.pir'] = 'lib/pge2past.tg'
$P0['pir_tge'] = $P2
$P3 = new 'Hash'
$P4 = split "\n", <<'SOURCES'
lib/PhemeCompiler.pir
lib/pheme_grammar_gen.pir
lib/ASTGrammar.pir
lib/PhemeObjects.pir
lib/PhemeSymbols.pir
SOURCES
$P3['pheme/pheme.pbc'] = $P4
$P3['pheme.pbc'] = 'pheme.pir'
$P0['pbc_pir'] = $P3
$P5 = new 'Hash'
$P5['parrot-pheme'] = 'pheme.pbc'
$P0['installable_pbc'] = $P5
# test
$S0 = get_parrot()
$S0 .= ' pheme.pbc'
$P0['prove_exec'] = $S0
$P0['prove_files'] = 't/*.t t/phemer/*.t'
# install
$P0['inst_lang'] = 'pheme/pheme.pbc'
# dist
$P3 = split ' ', 'MAINTAINER README TODO'
$P0['doc_files'] = $P3
.tailcall setup(args :flat, $P0 :flat :named)
.end
# Local Variables:
# mode: pir
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir: