Skip to content

Commit

Permalink
Use setup.pir instead of Configure.pir.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Dec 1, 2009
1 parent 4e0b954 commit 95026a8
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 199 deletions.
57 changes: 0 additions & 57 deletions Configure.pir

This file was deleted.

56 changes: 0 additions & 56 deletions Makefile.in

This file was deleted.

1 change: 0 additions & 1 deletion PARROT_REVISION

This file was deleted.

16 changes: 12 additions & 4 deletions README
Expand Up @@ -2,9 +2,17 @@ See 'perldoc unl.pir' for documentation.

Unlambda is a functional programming language.
See http://en.wikipedia.org/wiki/Unlambda for details.
Unlambda is hosted at http://github.com/bschmalhofer/unlambda.

$ parrot Configure.pir
$ make
$ make test
Build and test:
$ parrot setup.pir clean
$ parrot setup.pir
$ parrot setup.pir test

Show help:
$ parrot setup.pir help

Generate a file for Plumage:
$ mkdir plumage
$ parrot setup.pir plumage > plumage/unlambda.json

unlambda is hosted at http://github.com/bschmalhofer/unlambda.
1 change: 0 additions & 1 deletion build/PARROT_REVISION

This file was deleted.

80 changes: 0 additions & 80 deletions build/gen_parrot.pl

This file was deleted.

59 changes: 59 additions & 0 deletions setup.pir
@@ -0,0 +1,59 @@
#!/usr/bin/env parrot
# Copyright (C) 2009, Parrot Foundation.

=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'] = 'Unlambda'
$P0['abstract'] = 'Unlambda is a functional programming language.'
$P0['authority'] = 'http://github.com/bschmalhofer'
$P0['description'] = 'Unlambda is a functional programming language. See http://en.wikipedia.org/wiki/Unlambda for details.'
$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'] = 'git://github.com/bschmalhofer/unlambda.git'
$P0['browser_uri'] = 'http://github.com/bschmalhofer/unlambda'
$P0['project_uri'] = 'http://github.com/bschmalhofer/unlambda'

# build
$P1 = new 'Hash'
$P1['unl.pbc'] = 'unl.pir'
$P0['pbc_pir'] = $P1

$P2 = new 'Hash'
$P2['parrot-unl'] = 'unl.pbc'
#$P0['installable_pbc'] = $P2

# test
$S0 = get_libdir()
$S0 = 'perl -I' . $S0
$S0 .= '/tools/lib'
$P0['prove_exec'] = $S0

.tailcall setup(args :flat, $P0 :flat :named)
.end

# Local Variables:
# mode: pir
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:

0 comments on commit 95026a8

Please sign in to comment.