Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

#244 patch for File::Temp->tempfile, release 1.440

  • Loading branch information...
commit 398a893d6428c43138f8e7eb1f4e9836deca3ba2 1 parent f48e39f
Tobias Leich authored April 17, 2013
3  Changes
@@ -5,6 +5,9 @@ Versioning rule: public releases are even numbers, dev releases are odd. (same l
5 5
 TODO
6 6
      - check for available libs when using --with-sdl-config option
7 7
 
  8
+1.440 Sun Aug 12 2012
  9
+     - patch for File::Temp->tempfile -> File::Temp::tempfile (#244) [FROGGS]
  10
+
8 11
 1.438 Sun Aug 12 2012
9 12
      - added minimum Perl version [jtpalmer]
10 13
      - added release tests to check pod syntax and coverage [jtpalmer]
53  README
@@ -2,14 +2,13 @@ NAME
2 2
     Alien::SDL - building, finding and using SDL binaries
3 3
 
4 4
 VERSION
5  
-    Version 1.438
  5
+    Version 1.440
6 6
 
7 7
 SYNOPSIS
8 8
     Alien::SDL tries (in given order) during its installation:
9 9
 
10  
-    *   When given "--with-sdl-config" option use specified sdl-config
11  
-        script to locate SDL libs.
12  
-
  10
+    * When given `--with-sdl-config' option use specified sdl-config script
  11
+    to locate SDL libs.
13 12
          perl Build.PL --with-sdl-config=/opt/sdl/bin/sdl-config
14 13
 
15 14
         or using default script name 'sdl-config' by running:
@@ -19,17 +18,14 @@ SYNOPSIS
19 18
         IMPORTANT NOTE: Using --with-sdl-config avoids considering any other
20 19
         build methods; no prompt with other available build options.
21 20
 
22  
-    *   Locate an already installed SDL via 'sdl-config' script.
23  
-
24  
-    *   Check for SDL libs in directory specified by SDL_INST_DIR variable.
25  
-        In this case the module performs SDL library detection via
26  
-        '$SDL_INST_DIR/bin/sdl-config' script.
27  
-
  21
+    * Locate an already installed SDL via 'sdl-config' script.
  22
+    * Check for SDL libs in directory specified by SDL_INST_DIR variable. In
  23
+    this case the module performs SDL library detection via
  24
+    '$SDL_INST_DIR/bin/sdl-config' script.
28 25
          SDL_INST_DIR=/opt/sdl perl ./Build.PL
29 26
 
30  
-    *   Download prebuilt SDL binaries (if available for your platform).
31  
-
32  
-    *   Build SDL binaries from source codes (if possible on your system).
  27
+    * Download prebuilt SDL binaries (if available for your platform).
  28
+    * Build SDL binaries from source codes (if possible on your system).
33 29
 
34 30
     Later you can use Alien::SDL in your module that needs to link agains
35 31
     SDL and/or related libraries like this:
@@ -49,28 +45,25 @@ SYNOPSIS
49 45
 DESCRIPTION
50 46
     Please see Alien for the manifesto of the Alien namespace.
51 47
 
52  
-    In short "Alien::SDL" can be used to detect and get configuration
  48
+    In short `Alien::SDL' can be used to detect and get configuration
53 49
     settings from an installed SDL and related libraries. Based on your
54 50
     platform it offers the possibility to download and install prebuilt
55 51
     binaries or to build SDL & co. from source codes.
56 52
 
57 53
     The important facts:
58 54
 
59  
-    *   The module does not modify in any way the already existing SDL
60  
-        installation on your system.
61  
-
62  
-    *   If you reinstall SDL libs on your system you do not need to
63  
-        reinstall Alien::SDL (providing that you use the same directory for
64  
-        the new installation).
65  
-
66  
-    *   The prebuild binaries and/or binaries built from sources are always
67  
-        installed into perl module's 'share' directory.
68  
-
69  
-    *   If you use prebuild binaries and/or binaries built from sources it
70  
-        happens that some of the dynamic libraries (*.so, *.dll) will not
71  
-        automaticly loadable as they will be stored somewhere under perl
72  
-        module's 'share' directory. To handle this scenario Alien::SDL
73  
-        offers some special functionality (see below).
  55
+    * The module does not modify in any way the already existing SDL
  56
+    installation on your system.
  57
+    * If you reinstall SDL libs on your system you do not need to reinstall
  58
+    Alien::SDL (providing that you use the same directory for the new
  59
+    installation).
  60
+    * The prebuild binaries and/or binaries built from sources are always
  61
+    installed into perl module's 'share' directory.
  62
+    * If you use prebuild binaries and/or binaries built from sources it
  63
+    happens that some of the dynamic libraries (*.so, *.dll) will not
  64
+    automaticly loadable as they will be stored somewhere under perl
  65
+    module's 'share' directory. To handle this scenario Alien::SDL offers
  66
+    some special functionality (see below).
74 67
 
75 68
 METHODS
76 69
   config()
@@ -136,7 +129,7 @@ METHODS
136 129
 
137 130
 BUGS
138 131
     Please post issues and bugs at
139  
-    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Alien-SDL>
  132
+    http://rt.cpan.org/NoAuth/Bugs.html?Dist=Alien-SDL
140 133
 
141 134
 AUTHOR
142 135
         Kartik Thakore
2  inc/My/Utility.pm
@@ -494,7 +494,7 @@ sub check_header {
494 494
   my ($cflags, @header) = @_;
495 495
   print STDERR "Testing header(s): " . join(', ', @header) . "\n";
496 496
   my $cb = ExtUtils::CBuilder->new(quiet => 1);
497  
-  my ($fs, $src) = File::Temp->tempfile('XXXXaa', SUFFIX => '.c', UNLINK => 1);
  497
+  my ($fs, $src) = File::Temp::tempfile('aaXXXX', SUFFIX => '.c', UNLINK => 1);
498 498
   my $inc = '';
499 499
   $inc .= "#include <$_>\n" for @header;
500 500
   syswrite($fs, <<MARKER); # write test source code
6  lib/Alien/SDL.pm
@@ -16,11 +16,11 @@ Alien::SDL - building, finding and using SDL binaries
16 16
 
17 17
 =head1 VERSION
18 18
 
19  
-Version 1.438
  19
+Version 1.440
20 20
 
21 21
 =cut
22 22
 
23  
-our $VERSION = '1.438';
  23
+our $VERSION = '1.440';
24 24
 $VERSION = eval $VERSION;
25 25
 
26 26
 =head1 SYNOPSIS
@@ -240,7 +240,7 @@ sub check_header {
240 240
   }
241 241
 
242 242
   my $cb = ExtUtils::CBuilder->new( quiet => 1, config => $config );
243  
-  my ($fs, $src) = File::Temp->tempfile('XXXXaa', SUFFIX => '.c', UNLINK => 1);
  243
+  my ($fs, $src) = File::Temp::tempfile('aaXXXX', SUFFIX => '.c', UNLINK => 1);
244 244
   my $inc = '';
245 245
   my $i = 0;
246 246
   foreach (@header) {

0 notes on commit 398a893

Please sign in to comment.
Something went wrong with that request. Please try again.