Import p5-Alien-wxWidgets 0.44, a prerequisite for p5-Wx.

Alien::wxWidgets can be used to detect and get configuration settings
from an installed wxWidgets.
This commit is contained in:
landry 2009-09-04 16:05:55 +00:00
parent e74bb2d7f0
commit 857d746261
6 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $
COMMENT = building, finding and using wxWidgets binaries
MODULES = cpan
DISTNAME = Alien-wxWidgets-0.44
CATEGORIES = devel
CPAN_AUTHOR = MBARBON
# perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
CONFIGURE_STYLE = modbuild
pre-configure:
${SUBST_CMD} ${WRKSRC}/inc/My/Build/Any_wx_config_Bakefile.pm
RUN_DEPENDS = ::x11/wxWidgets
BUILD_DEPENDS = ${RUN_DEPENDS}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Alien-wxWidgets-0.44.tar.gz) = 7Ms5Uhw0aqZDSPHv8Ivl4A==
RMD160 (Alien-wxWidgets-0.44.tar.gz) = byikhh2XH7JZor9hd/7D4RxZdF8=
SHA1 (Alien-wxWidgets-0.44.tar.gz) = 4WNVBLEGdziPfkIigZQbc8xZxRM=
SHA256 (Alien-wxWidgets-0.44.tar.gz) = 3LDtRuu0NUm7GBiECeRa4Xxrpe8ArjYUB1s0yF6bxMw=
SIZE (Alien-wxWidgets-0.44.tar.gz) = 642914

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-Build_PL,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $
--- Build.PL.orig Fri Aug 28 15:28:43 2009
+++ Build.PL Fri Aug 28 15:30:12 2009
@@ -97,8 +97,7 @@ EOT
}
}
chomp $build_prompt;
-my $build_wx = _askyn( $build, 'wxWidgets-build',
- $build_prompt, $build_wx_dflt );
+my $build_wx = 0;
$build->notes( 'build_wx' => $build_wx );
$build->notes( 'mk_portable' => $build->args('wxWidgets-portable') );
if( $build_wx ) {

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-inc_My_Build_Any_wx_config_Bakefile_pm,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $
use glob() to find all matching $lib.so.*, and take the last value
--- inc/My/Build/Any_wx_config_Bakefile.pm.orig Sun Aug 9 13:13:40 2009
+++ inc/My/Build/Any_wx_config_Bakefile.pm Fri Aug 28 15:29:47 2009
@@ -3,7 +3,6 @@ package My::Build::Any_wx_config_Bakefile;
use strict;
our @ISA = qw(My::Build::Any_wx_config::Base);
use Config;
-
sub awx_wx_config_data {
my $self = shift;
return $self->{awx_data} if $self->{awx_data};
@@ -24,7 +23,7 @@ sub awx_wx_config_data {
my $libraries = $self->_call_wx_config( $arg );
foreach my $lib ( grep { m/\-lwx/ } split ' ', $libraries ) {
- $lib =~ m/-l(.*_(\w+)-.*)/ or die $lib;
+ $lib =~ m/-l(.*_(\w+))/ or die $lib;
my( $key, $name ) = ( $2, $1 );
$key = 'base' if $key =~ m/^base[ud]{0,2}/;
$key = 'base' if $key =~ m/^carbon|^cocoa/ && $name !~ /osx_/; # here for Mac
@@ -34,7 +33,11 @@ sub awx_wx_config_data {
&& $self->awx_is_monolithic
&& $lib =~ m/(?:gtk2?|mac)[ud]{0,2}-/;
my $dll = "lib${name}." . $self->awx_dlext;
-
+ my @t = glob("${LOCALBASE}/lib/$dll.*");
+ if ($#t >= 0) {
+ $dll = $t[-1];
+ $dll =~ s/.*\///g;
+ }
$data{dlls}{$key} = { dll => $dll,
link => $lib };
}

View File

@ -0,0 +1,2 @@
Alien::wxWidgets can be used to detect and get configuration settings
from an installed wxWidgets.

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/04 16:05:55 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/Utility.pm
@man man/man3p/Alien::wxWidgets.3p
@man man/man3p/Alien::wxWidgets::Utility.3p