Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv27174
Added Files:
sdl-pm.info sdl-pm.patch
Log Message:
new package
--- NEW FILE: sdl-pm.info ---
Info2: <<
Package: sdl-pm%type_pkg[perl]
Version: 2.510
Revision: 1
Distribution: (%type_pkg[perl] = 5100) 10.5, (%type_pkg[perl] = 5100) 10.6
Source: mirror:cpan:authors/id/K/KT/KTHAKORE/SDL-%v.tar.gz
Source-MD5: 85cff5e70828a42eaf524ea05db06044
Source2:
http://github.com/kthakore/SDL_perl/raw/e5fc625cc2c21f6bbedf98e891e3dbfecb8d9b9b/COPYING
Source2-MD5: 252890d9eee26aab7b432e8b8a616475
Source2Rename: SDL.pm-COPYING
Type: perl (5.8.8 5.10.0)
BuildDepends: <<
extutils-cbuilder-pm,
module-build-pm%type_pkg[perl] (>= 0.36.0-1),
test-most-pm%type_pkg[perl],
test-simple-pm%type_pkg[perl] (>= 0.88-1),
sdl,
sdl-gfx13,
sdl-image,
sdl-mixer,
sdl-ttf,
fink (>= 0.24.12)
<<
Depends: <<
alien-sdl-pm%type_pkg[perl],
file-sharedir-pm%type_pkg[perl],
io-captureoutput-pm%type_pkg[perl],
perl%type_pkg[perl]-core,
sdl-gfx13-shlibs,
sdl-image-shlibs,
sdl-mixer-shlibs,
sdl-shlibs,
sdl-ttf-shlibs,
tie-simple-pm
<<
PatchFile: %{ni}.patch
PatchFile-MD5: b454808360cde2bd599103ac9db9dbc9
PatchScript: <<
%{default_script}
perl -pi -e 's/SDL_Pango.h/SDL_Pango_FINK_DOES_NOT_DETECT_THIS_NOW.h/'
Build.PL
<<
CompileScript: <<
#!/bin/sh -ex
exec 2>&1
perlversion=%type_raw[perl]
perlcmd="perl$perlversion"
if dpkg --compare-versions "$perlversion" ">=" "5.10.0" && [ "%m" !=
"powerpc" ]; then
export ARCHFLAGS=""
perlcmd="/usr/bin/arch -%m $perlcmd"
fi
eval "`$perlcmd -V:archname`"
$perlcmd Build.PL \
--install_path arch=%i/lib/perl5/$perlversion/$archname \
--install_path bin=%i/bin \
--install_path bindoc=%i/lib/perl5/$perlversion/man/man1 \
--install_path lib=%i/lib/perl5/$perlversion \
--install_path libdoc=%i/lib/perl5/$perlversion/man/man3 \
--install_path script=%i/bin
./Build
<<
InfoTest: <<
TestScript: <<
echo "Testing automatically done during build for now."
<<
# #!/bin/sh -ex
# perlversion=%type_raw[perl]
# if dpkg --compare-versions "$perlversion" ">=" "5.10.0" && [
"%m" != "powerpc" ]; then
# export ARCHFLAGS=""
# export FULLPERL="/usr/bin/arch -%m perl$perlversion"
# fi
# ./Build test || exit 2
# <<
<<
InstallScript: <<
#!/bin/sh -ex
echo "Sorry, we have to do testing, which may trigger Aqua GUI use, in
order to get SDLPerl.app compiled."
perlversion=%type_raw[perl]
if dpkg --compare-versions "$perlversion" ">=" "5.10.0" && [ "%m" !=
"powerpc" ]; then
export ARCHFLAGS=""
export FULLPERL="/usr/bin/arch -%m perl$perlversion"
fi
./Build test || exit 2
./Build install
find %d -name .packlist -exec rm -rf {} \;
mkdir -p %i/Applications
cp -pr SDLPerl.app %i/Applications/SDLPerl-%type_raw[perl].app
mkdir %i/bin
ln -s
%p/Applications/SDLPerl-%type_raw[perl].app/Contents/MacOS/SDLPerl
%i/bin/SDLPerl-%type_raw[perl]
<<
DocFiles: CHANGELOG CONTRIBUTORS ../SDL.pm-COPYING:COPYING README TODO
DescPackaging: <<
Make sure we don't autodetect sdl-pango. Not presently in
fink, need to be consistent if we ever get it.
SDLPerl.app doesn't have an interface to select perl scripts
and isn't d rag'n'droppable, so have to run its internal
binary from command-line. Add symlink from %p/bin to make it
easy.
<<
DescPort: <<
Steal IO-Compress-2.030/t/010examples-zlib.t method for
enabling easy passing of perl interp.
<<
DescUsage: <<
To run an SDL-based perl program, use the "SDLPerl" driver for your
desired perl version. For example: SDLPerl-5.10.0 foo.pl
<<
Description: Simple DirectMedia Layer for Perl
License: LGPL
Homepage: http://search.cpan.org/dist/SDL/
Maintainer: Daniel Macks <[email protected]>
<<
--- NEW FILE: sdl-pm.patch ---
diff -Nurd -x'*~' SDL-2.510.orig/inc/My/Builder/Darwin.pm
SDL-2.510/inc/My/Builder/Darwin.pm
--- SDL-2.510.orig/inc/My/Builder/Darwin.pm 2010-08-02 19:40:41.000000000
-0400
+++ SDL-2.510/inc/My/Builder/Darwin.pm 2010-08-05 19:59:31.000000000 -0400
@@ -18,12 +18,13 @@
my $bundle_contents = "SDLPerl.app/Contents";
system "mkdir -p \"$bundle_contents\"";
mkdir "$bundle_contents/MacOS", 0755;
+ my $Perl = ($ENV{'FULLPERL'} or $^X or 'perl') ;
my $cflags; #= Alien::SDL->config('cflags');
- $cflags = ' ' . `$^X -MExtUtils::Embed -e ccopts`;
+ $cflags = ' ' . `$Perl -MExtUtils::Embed -e ccopts`;
chomp($cflags);
$cflags .= ' ' . Alien::SDL->config('cflags');
my $libs; #= Alien::SDL->config('libs');
- $libs = ' ' . `$^X -MExtUtils::Embed -e ldopts`;
+ $libs = ' ' . `$Perl -MExtUtils::Embed -e ldopts`;
chomp($libs);
$libs .= ' ' . Alien::SDL->config('libs') . ' -lSDLmain';
chomp($libs);
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs