Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 89 lines (69 sloc) 2.036 kB
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
1 #! /usr/local/bin/parrot
2 # Copyright (C) 2009, Parrot Foundation.
3 # $Id$
4
5 =head1 NAME
6
7 setup.pir - Python distutils style
8
9 =head1 DESCRIPTION
10
11 No Configure step, no Makefile generated.
12
13 =head1 USAGE
14
15 $ parrot setup.pir build
16 $ parrot setup.pir test
17 $ sudo parrot setup.pir install
18
19 =cut
20
21 .sub 'main' :main
22 .param pmc args
23 $S0 = shift args
24 load_bytecode 'distutils.pbc'
25
26 $P0 = new 'Hash'
27 $P0['name'] = 'Lolcode'
28 $P0['abstract'] = 'Lolcode'
29 $P0['description'] = 'Lolcode'
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'] = 'https://svn.parrot.org/languages/lolcode/trunk'
34 $P0['browser_uri'] = 'https://trac.parrot.org/languages/browser/lolcode'
35 $P0['project_uri'] = 'https://trac.parrot.org/parrot/wiki/Languages'
36
37 # build
38 $P1 = new 'Hash'
39 $P1['src/gen_grammar.pir'] = 'src/parser/grammar.pg'
40 $P0['pir_pge'] = $P1
41
42 $P2 = new 'Hash'
43 $P2['src/gen_actions.pir'] = 'src/parser/actions.pm'
ccdbae0 @bacek First cut to update LOLCODE to nqp-ex. Still broken
bacek authored
44 $P0['pir_nqprx'] = $P2
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
45
46 $P3 = new 'Hash'
47 $P4 = split "\n", <<'SOURCES'
25bdb52 @fperrad [lolcode] refactor with the opcode load_language
fperrad authored
48 src/lolcode.pir
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
49 src/gen_grammar.pir
50 src/parser/yarn_literal.pir
51 src/gen_actions.pir
52 src/builtins.pir
53 src/builtins/cmp.pir
54 src/builtins/expr_parse.pir
55 src/builtins/math.pir
56 src/builtins/say.pir
57 SOURCES
25bdb52 @fperrad [lolcode] refactor with the opcode load_language
fperrad authored
58 $P3['lolcode/lolcode.pbc'] = $P4
59 $P3['lolcode.pbc'] = 'lolcode.pir'
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
60 $P0['pbc_pir'] = $P3
61
62 $P5 = new 'Hash'
63 $P5['parrot-lolcode'] = 'lolcode.pbc'
64 $P0['installable_pbc'] = $P5
65
fecfa81 @fperrad add manpage
fperrad authored
66 $P6 = new 'Hash'
67 $P6['man/man1/parrot-lolcode.1'] = 'lolcode.pod'
68 $P0['man_pod'] = $P6
69
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
70 # test
71 $S0 = get_parrot()
72 $S0 .= ' lolcode.pbc'
73 $P0['prove_exec'] = $S0
74
25bdb52 @fperrad [lolcode] refactor with the opcode load_language
fperrad authored
75 # install
76 $P0['inst_lang'] = 'lolcode/lolcode.pbc'
77
2e7d05e @fperrad add doc_files field in setup.pir
fperrad authored
78 # dist
79 $P0['doc_files'] = 'TODO'
80
6870c5e @fperrad [lolcode] modernize infrastructure with setup.pir (distutils)
fperrad authored
81 .tailcall setup(args :flat, $P0 :flat :named)
82 .end
83
84 # Local Variables:
85 # mode: pir
86 # fill-column: 100
87 # End:
88 # vim: expandtab shiftwidth=4 ft=pir:
Something went wrong with that request. Please try again.