Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (48 sloc) 1.641 kb
e3f22f2 @Whiteknight add a setup.pir, adapted from the version for parrot-linear-algebra by f...
authored
1 #!/usr/bin/env parrot
2 # Copyright (C) 2009, Parrot Foundation.
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 See F<runtime/library/distutils.pir>.
13
14 =head1 USAGE
15
16 $ parrot setup.pir build
17 $ parrot setup.pir test
18 $ sudo parrot setup.pir install
19
20 =cut
21
22 .sub 'main' :main
23 .param pmc args
24 $S0 = shift args
25 load_bytecode 'distutils.pbc'
26
27 .local pmc config
28 config = new 'Hash'
29 config['name'] = 'parrot-data-structures'
30 config['abstract'] = 'Data structures library for the Parrot VM'
31 config['authority'] = 'http://github.com/Whiteknight'
32 config['description'] = 'Data structures library for the Parrot VM'
33 $P1 = split ';', 'stack;queue;array'
34 config['keywords'] = $P1
35 config['license_type'] = 'Artistic License 2.0'
36 config['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0'
37 config['copyright_holder'] = 'Andrew Whitworth'
38 config['checkout_uri'] = 'git://github.com/Whiteknight/parrot-data-structures.git'
39 config['browser_uri'] = 'http://github.com/Whiteknight/parrot-data-structures'
40 config['project_uri'] = 'http://github.com/Whiteknight/parrot-data-structures'
41
42 # build
43 $P2 = new 'Hash'
44 $P3 = split "\n", <<'SOURCES'
45 src/pmc/resizablepmcstack.pmc
46 src/pmc/fixedpmcstack.pmc
47 src/pmc/resizablepmcqueue.pmc
48 src/pmc/fixedpmcqueue.pmc
49 SOURCES
50 $S0 = pop $P3
51 $P2['pds_group'] = $P3
52 config['dynpmc'] = $P2
53
54 .tailcall setup(args :flat, config :flat :named)
55 .end
56
57 # Local Variables:
58 # mode: pir
59 # fill-column: 100
60 # End:
61 # vim: expandtab shiftwidth=4 ft=pir:
Something went wrong with that request. Please try again.