Don't hardcode wxWidgets & gcc versions in the config filename.

Alien::wxWidgets public interface smartly uses Module::Pluggable to
find the config anyway. Tested to still work with p5-Wx.
spotted by jasper@
This commit is contained in:
landry 2009-09-08 21:46:17 +00:00
parent d4b47f3cd4
commit a546d0987e
3 changed files with 21 additions and 3 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $
# $OpenBSD: Makefile,v 1.2 2009/09/08 21:46:17 landry Exp $
COMMENT = building, finding and using wxWidgets binaries
MODULES = cpan
DISTNAME = Alien-wxWidgets-0.44
PKGNAME = p5-${DISTNAME}p0
CATEGORIES = devel
CPAN_AUTHOR = MBARBON

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-inc_My_Build_Base_pm,v 1.1 2009/09/08 21:46:17 landry Exp $
--- inc/My/Build/Base.pm.orig Tue Sep 8 23:35:06 2009
+++ inc/My/Build/Base.pm Tue Sep 8 23:35:41 2009
@@ -367,12 +367,11 @@ sub awx_get_name {
my $e = sub { defined $_[0] ? ( $_[0] ) : () };
my $pv = sub { join '.', map { 0 + ( $_ || 0 ) }
( $_[0] =~ /(\d+)\.(\d{1,3})(\d{0,3})/ ) } ;
- my $base = join '-', $args{toolkit}, $pv->( $args{version} ),
+ my $base = join '-', $args{toolkit},
$e->( $args{debug} ? 'dbg' : undef ),
$e->( $args{unicode} ? 'uni' : undef ),
$e->( $args{mslu} ? 'mslu' : undef ),
$e->( $args{compiler} ),
- $e->( $args{compiler_version} ),
;
$base =~ s/\./_/g; $base =~ s/-/_/g;

View File

@ -1,10 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $
@comment $OpenBSD: PLIST,v 1.2 2009/09/08 21:46:17 landry Exp $
${P5ARCH}/
${P5ARCH}/Alien/
${P5ARCH}/Alien/wxWidgets/
${P5ARCH}/Alien/wxWidgets.pm
${P5ARCH}/Alien/wxWidgets/Config/
${P5ARCH}/Alien/wxWidgets/Config/gtk2_2_8_7_gcc_3_2.pm
${P5ARCH}/Alien/wxWidgets/Config/gtk2_gcc.pm
${P5ARCH}/Alien/wxWidgets/Utility.pm
@man man/man3p/Alien::wxWidgets.3p
@man man/man3p/Alien::wxWidgets::Utility.3p