[fink:package-submissions] #5051 alien-sdl-pm 1.446
Daniel Macks via Fink-tracker <[email protected]> Tue, 31 Oct 2017 02:25:56 -0000
| Newsgroups | gmane.os.apple.fink.tracker |
|---|---|
| Message-ID | </p/fink/package-submissions/5051/51ec54506c6aefaf794a0f126b978f7359cbbdec.package-submissions@fink.p.sourceforge.net> |
- **status**: open --> closed-accepted
- **Group**: Undergoing_Validation --> Added_to_Fink
- **Comment**:
*phew* what a mess. Thanks for wrangling it!
---
** [package-submissions:#5051] alien-sdl-pm 1.446**
**Status:** closed-accepted
**Group:** Added_to_Fink
**Labels:** perlmod Updated Version of Existing
**Created:** Sat Oct 28, 2017 02:53 AM UTC by Hanspeter Niederstrasser
**Last Updated:** Mon Oct 30, 2017 10:01 AM UTC
**Owner:** nobody
**Attachments:**
- [alien-sdl-pm.info](https://sourceforge.net/p/fink/package-submissions/5051/attachment/alien-sdl-pm.info) (2.1 kB; application/octet-stream)
- [alien-sdl-pm.patch](https://sourceforge.net/p/fink/package-submissions/5051/attachment/alien-sdl-pm.patch) (864 Bytes; application/octet-stream)
This is an update to alien-sdl-pm. The patch serves the same purpose as before to avoid building internally all the libs provided by Fink (libpng, sdl, etc), bust just updated for the new system.
The package uses a Build.PL script, but it doesn't really follow ModuleBuild rules (`--install-path` during compile are ignored). This are the changes I currently have:
~~~
diff -u -U8 -r1.3 alien-sdl-pm.info
--- alien-sdl-pm.info 18 Sep 2015 06:52:23 -0000 1.3
+++ alien-sdl-pm.info 28 Oct 2017 02:39:28 -0000
@@ -1,58 +1,76 @@
Info2: <<
Package: alien-sdl-pm%type_pkg[perl]
-Version: 1.4.25
-Revision: 3
-Source: mirror:cpan:authors/id/F/FR/FROGGS/Alien-SDL-1.425.tar.gz
-Source-MD5: c6adaa35ea0779740950de36c8a8ffe2
+Version: 1.4.46
+Revision: 1
+Source: mirror:cpan:authors/id/F/FR/FROGGS/Alien-SDL-1.446.tar.gz
+Source-MD5: 3b3f8ba2e26f789caf392a9bba964330
Type: perl (5.16.2 5.18.2)
BuildDepends: <<
archive-extract-pm%type_pkg[perl],
archive-tar-pm%type_pkg[perl],
archive-zip-pm%type_pkg[perl],
+ capture-tiny-pm,
digest-sha-pm%type_pkg[perl],
file-fetch-pm%type_pkg[perl],
file-path-pm%type_pkg[perl] (>= 2.08-1),
+ file-sharedir-pm%type_pkg[perl],
+ file-which-pm%type_pkg[perl],
fink (>= 0.30.2),
+ fontconfig2-dev,
+ freetype219,
+ glib2-dev,
+ libjpeg9,
+ libpng16,
+ libtiff5,
+ libvorbis0,
module-build-pm%type_pkg[perl] (>= 0.36.0-1),
+ pango1-xft2-ft219-dev,
+ sdl-gfx13,
+ sdl-mixer,
+ sdl-ttf,
sdl,
text-patch-pm (>= 1.4-1)
<<
Depends: <<
capture-tiny-pm,
extutils-cbuilder-pm%type_pkg[perl] (>= 1:0.27.03-2),
file-sharedir-pm%type_pkg[perl],
file-which-pm%type_pkg[perl],
perl%type_pkg[perl]-core
<<
Recommends: <<
sdl
<<
PatchFile: %{ni}.patch
-PatchFile-MD5: 87fd946b02c79bfc377a22b8dd596d1c
+PatchFile-MD5: 1ba730dde779b468d4d6fc197b35e005
DefaultScript: ModuleBuild
CompileScript: <<
#!/bin/sh -ev
+ export SDL_INST_DIR=%p
+ export SDL_INC=%p/include
+ export SDL_LIB=%p/lib
export PERL_MM_USE_DEFAULT=1
- %{default_script}
+ %{default_script} destdir=%d prefix=%p mandir=%p/perl5/%type_raw[perl]/man
<<
InstallScript: <<
- %{default_script}
- mv %i/share/man %i/lib/perl5/%type_raw[perl]
+ ./Build install destdir=%d prefix=%p mandir=%p/perl5/%type_raw[perl]/man
+ mv %i/lib/perl5-core/* %i/lib/perl5
+ mv %i/lib/perl5/site_perl/%type_raw[perl]/* %i/lib/perl5/%type_raw[perl]
+ rm -rf %i/lib/perl5-core %i/lib/perl5/site_perl
+ mv %i/bin/sdl-config.pl %i/bin/sdl-config-%type_pkg[perl].pl
<<
DocFiles: Changes README LICENSE TODO
DescPort: <<
Build.pm forgot to provide implemention for get_path!
<<
DescPackaging: <<
Hardcode Build.PL to use pre-existing sdl-config script.
Uses sdl-config at runtime, but cannot assert Depends:sdl
because that package is BuildDependsOnly:true
-
- Cherry-pick upstream patch for File::Temp::tempfile call.
<<
Description: Building, finding and using SDL binaries
License: Artistic/GPL
Homepage: http://search.cpan.org/dist/Alien-SDL/
Maintainer: None <[email protected]>
<<
~~~
With the changes in InstallScript, this puts all the things in the right place for 10.11/pm5162, but things are placed in other locations by ./Build.PL, and I'm not certain what's caused by the different perl versions and what is caused by Fink-perl vs system-perl, so I don't know how to conditional the InstallScript commands to match either the perl source or the perl version.
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker