File: Makefile.PL

package info (click to toggle)
dbd-xbase 0.0583-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 200 kB
  • ctags: 100
  • sloc: perl: 2,534; makefile: 36
file content (30 lines) | stat: -rw-r--r-- 760 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

eval 'use XBase';
if (not $@ and eval { $XBase::VERSION < 0.0342 } )
	{
	print <<EOF;
	I can see you had XBase module installed before. There have been
	many changes since version $XBase::VERSION but the most important
	is that \$XBase::errstr is no longer supported. Please, use
	XBase->errstr() instead in your scripts. Thank you.
EOF
	}

eval 'use DBI';
if ($@ ne '')
	{
	print <<EOF;
	You do not seem to have DBI installed, so you might not be able
	to use DBD::XBase (but XBase should be running fine).
EOF
	}

use ExtUtils::MakeMaker;
WriteMakefile(
	'NAME' =>	'XBase',
	'DISTNAME' =>	'DBD-XBase',
	'VERSION_FROM' =>	'lib/XBase.pm',
        'dist' =>	{ COMPRESS => 'gzip -9f', SUFFIX => 'gz',
			POSTOP => 'mv $(DISTNAME)-$(VERSION).tar.gz ../' },
	);