/usr/lib/perl5/Wx/Mini.pm is in libwx-perl 1:0.9903-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | package Wx::Mini; # for RPM
package Wx;
use strict;
our( $VERSION, $XS_VERSION );
our $alien_key = 'gtk2_2_8_11_uni_gcc_3_4';
{
my $VAR1;
$Wx::dlls = $VAR1 = {
'base' => 'libwx_baseu-2.8.so',
'richtext' => 'libwx_gtk2u_richtext-2.8.so',
'core' => 'libwx_gtk2u_core-2.8.so',
'stc' => 'libwx_gtk2u_stc-2.8.so',
'fl' => 'libwx_gtk2u_fl-2.8.so',
'aui' => 'libwx_gtk2u_aui-2.8.so',
'gl' => 'libwx_gtk2u_gl-2.8.so',
'net' => 'libwx_baseu_net-2.8.so',
'html' => 'libwx_gtk2u_html-2.8.so',
'gizmos' => 'libwx_gtk2u_gizmos-2.8.so',
'qa' => 'libwx_gtk2u_qa-2.8.so',
'media' => 'libwx_gtk2u_media-2.8.so',
'xml' => 'libwx_baseu_xml-2.8.so',
'xrc' => 'libwx_gtk2u_xrc-2.8.so',
'adv' => 'libwx_gtk2u_adv-2.8.so'
};
;
}
$VERSION = '0.9903'; # bootstrap will catch wrong versions
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
#
# Set Front Process on Mac
#
# Mac will be set to front process unless we are in test harness or
# and enivronment var is set
# e.g. In a syntax checking editor, set environment variable
# WXPERL_OPTIONS to include the string NO_MAC_SETFRONTPROCESS
sub MacSetFrontProcess {
return if( ( !defined( &Wx::_MacSetFrontProcess ) )
#||( exists($ENV{HARNESS_ACTIVE}) && $ENV{HARNESS_ACTIVE} )
||( exists($ENV{WXPERL_OPTIONS}) && $ENV{WXPERL_OPTIONS} =~ /NO_MAC_SETFRONTPROCESS/)
);
Wx::_MacSetFrontProcess();
}
#
# XSLoader/DynaLoader wrapper
#
our( $wx_path );
our( $wx_binary_loader );
# see the comment in Wx.xs:_load_plugin for why this is necessary
sub wxPL_STATIC();
sub wx_boot($$) {
local $ENV{PATH} = $wx_path . ';' . $ENV{PATH} if $wx_path;
if( $_[0] eq 'Wx' || !wxPL_STATIC ) {
no warnings 'redefine';
if( $] < 5.006 ) {
require DynaLoader;
local *DynaLoader::dl_load_file = \&Wx::_load_plugin if $_[0] ne 'Wx';
no strict 'refs';
push @{"$_[0]::ISA"}, 'DynaLoader';
$_[0]->bootstrap( $_[1] );
} else {
require XSLoader;
local *DynaLoader::dl_load_file = \&Wx::_load_plugin if $_[0] ne 'Wx';
XSLoader::load( $_[0], $_[1] );
}
} else {
no strict 'refs';
my $t = $_[0]; $t =~ tr/:/_/;
&{"_boot_$t"}( $_[0], $_[1] );
}
}
sub _alien_path {
return if defined $wx_path;
return unless length 'usr';
foreach ( @INC ) {
if( -d "$_/Alien/wxWidgets/usr" ) {
$wx_path = "$_/Alien/wxWidgets/usr/lib";
last;
}
}
}
_alien_path();
sub _init_binary_loader {
return if $wx_binary_loader;
# load the Loader
# a custom loader may exist as Wx::Loader::Custom
# or a packager may have installed a loader already
eval{ require Wx::Loader::Custom };
$wx_binary_loader = 'Wx::Loader::Standard' if !$wx_binary_loader;
}
sub _start {
&_init_binary_loader;
$wx_path = $wx_binary_loader->set_binary_path;
wx_boot( 'Wx', $XS_VERSION ) if!$wx_binary_loader->boot_overload;
_boot_Constant( 'Wx', $XS_VERSION );
_boot_GDI( 'Wx', $XS_VERSION );
Load( 1 );
Wx::MacSetFrontProcess();
}
# legacy load functions
sub set_load_function {
&_init_binary_loader;
$wx_binary_loader->external_set_load( $_[0] )
}
sub set_end_function {
&_init_binary_loader;
$wx_binary_loader->external_set_unload( $_[0] )
}
# standard loader package - it gets
# used if nothing overrides it
# See Wx/Loader.pod
package Wx::Loader::Standard;
our @ISA = qw( Exporter );
sub loader_info { 'Standard Distribution'; }
sub set_binary_path { $Wx::wx_path }
sub boot_overload { }
# back compat overloading
# by default load_dll and unload_dll are no-ops (dependencies
# and the Wx lib are loaded via wx_boot above).
# But custom loaders may override this
# we need this to support deprecated
# set_load_function / set_end_function fo a while.
# As it is undocumented, should not need to maintain
# this for long.
# once support for set_load_function / set_end_function is
# removed, the rest of this package is
#
# sub load_dll {}
# sub unload_dll {}
my( $load_fun, $unload_fun ) = ( \&_load_dll, \&_unload_dll );
sub external_set_load { $load_fun = $_[1] }
sub external_set_unload { $unload_fun = $_[1] }
sub _load_dll {};
sub _unload_dll {};
sub load_dll {
shift;
goto &$load_fun;
}
sub unload_dll {
shift;
goto &$unload_fun;
}
1;
|