Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (59 sloc) 1.812 kb
05aa9ff convert to setup.pir (distutils)
unknown authored
1 #! /usr/local/bin/parrot
2 # $Id$
3
4 =head1 NAME
5
6 setup.pir - Python distutils style
7
8 =head1 DESCRIPTION
9
10 No Configure step, no Makefile generated.
11
12 =head1 USAGE
13
14 $ parrot setup.pir build
15 $ parrot setup.pir test
16 $ sudo parrot setup.pir install
17
18 =cut
19
20 .sub 'main' :main
21 .param pmc args
22 $S0 = shift args
23 load_bytecode 'distutils.pbc'
24
25 $P0 = new 'Hash'
26 $P0['name'] = 'Kea'
27 $P0['abstract'] = 'Kea - Factor on the Parrot Virtual Machine'
28 $P0['authority'] = 'http://github.com/leto'
29 $P0['description'] = 'Factor is a practical dynamic stack language. Parrot is a Virtual Machine designed to run dynamic languages.'
30 $P0['license_type'] = 'Artistic License 2.0'
31 $P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0'
32 $P0['copyright_holder'] = 'Parrot Foundation'
33 $P0['checkout_uri'] = 'git://github.com/leto/kea.git'
34 $P0['browser_uri'] = 'http://github.com/leto/kea'
35 $P0['project_uri'] = 'http://github.com/leto/kea'
36
37 # build
38 $P4 = new 'Hash'
39 $P5 = split ' ', 'src/parser/grammar.pg src/parser/grammar-oper.pg'
40 $P4['src/gen_grammar.pir'] = $P5
41 $P0['pir_pge'] = $P4
42
43 $P6 = new 'Hash'
44 $P6['src/gen_actions.pir'] = 'src/parser/actions.pm'
45 $P0['pir_nqp'] = $P6
46
47 $P7 = new 'Hash'
48 $P8 = split "\n", <<'SOURCES'
49 kea.pir
50 src/gen_grammar.pir
51 src/gen_actions.pir
52 src/builtins.pir
53 src/builtins/dup.pir
54 src/builtins/say.pir
55 SOURCES
56 $S0 = pop $P8
57 $P7['kea.pbc'] = $P8
58 $P0['pbc_pir'] = $P7
59
60 $P9 = new 'Hash'
61 $P9['parrot-kea'] = 'kea.pbc'
62 $P0['installable_pbc'] = $P9
63
64 # test
65 $S0 = get_nqp()
66 $P0['harness_exec'] = $S0
67
68 .tailcall setup(args :flat, $P0 :flat :named)
69 .end
70
71
72 # Local Variables:
73 # mode: pir
74 # fill-column: 100
75 # End:
76 # vim: expandtab shiftwidth=4 ft=pir:
77
Something went wrong with that request. Please try again.