comparison interps/clc-intercal/CLC-INTERCAL-UI-X-1.-94.-2/Makefile.PL @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 #!/usr/bin/perl -w
2
3 eval 'exec perl -S $0 ${1+"$@"}'
4 if 0;
5
6 # This script will create the Makefile to build and install a graphical
7 # user interface for CLC-INTERCAL
8
9 # This file is part of CLC-INTERCAL 1.-94.-2
10
11 # Copyright (c) 2008 Claudio Calvelli, all rights reserved.
12
13 # CLC-INTERCAL is copyrighted software. However, permission to use, modify,
14 # and distribute it is granted provided that the conditions set out in the
15 # licence agreement are met. See files README and COPYING in the distribution.
16
17 require 5.005;
18 use Config qw(%Config);
19 use ExtUtils::MakeMaker;
20 use strict;
21
22 use vars qw($VERSION $PERVERSION);
23 ($VERSION) = ($PERVERSION = "CLC-INTERCAL/UI-X Makefile.PL 1.-94.-2") =~ /\s(\S+)$/;
24
25 my @want_type = grep { /^type=/ } @ARGV;
26 @ARGV = grep { ! /^type=/ } @ARGV;
27
28 my $base = $ENV{CLC_INTERCAL_PATH}
29 ? "'$ENV{CLC_INTERCAL_PATH}/INTERCAL/"
30 : 'Language::INTERCAL::';
31 my $end = $ENV{CLC_INTERCAL_PATH}
32 ? ".pm'"
33 : '';
34
35 for my $module (qw(Exporter InstallModule)) {
36 eval "require $base$module$end";
37 if ($@) {
38 $@ =~ /can't locate/i and die "You don't appear to have CLC-INTERCAL installed:\n$@";
39 die "Error loading the CLC-INTERCAL installer:\n$@";
40 }
41 }
42
43 import Language::INTERCAL::InstallModule '1.-94.-2';
44
45 install Language::INTERCAL::InstallModule 'UI-X', 0, {
46 'Gtk2' => 0,
47 };
48
49 1;