mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 02:21:19 +00:00
treewide: move all perl packages into its own folder
This makes it in sync with Python packages. Python packages has its own place in /lang/python Perl does not, so this fixes it. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/lib/Inline/C.pm
|
||||
+++ b/lib/Inline/C.pm
|
||||
@@ -380,7 +380,7 @@ sub build {
|
||||
$o->call('write_XS', 'Build Glue 1');
|
||||
$o->call('write_Inline_headers', 'Build Glue 2');
|
||||
$o->call('write_Makefile_PL', 'Build Glue 3');
|
||||
- $o->call('compile', 'Build Compile');
|
||||
+ $o->call('compile', 'Build Compile') unless $ENV{'_INLINE_C_NO_COMPILE_'};
|
||||
if (IS_WIN32) {
|
||||
$lockfh->release or die "releasemutex $file: $^E";
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
--- a/lib/Inline/C.pm
|
||||
+++ b/lib/Inline/C.pm
|
||||
@@ -457,22 +457,28 @@ sub get_maps {
|
||||
print STDERR "get_maps Stage\n" if $o->{CONFIG}{BUILD_NOISY};
|
||||
my $typemap = '';
|
||||
my $file;
|
||||
- $file = File::Spec->catfile(
|
||||
- $Config::Config{installprivlib},
|
||||
- "ExtUtils",
|
||||
- "typemap",
|
||||
- );
|
||||
- $typemap = $file if -f $file;
|
||||
- $file = File::Spec->catfile(
|
||||
- $Config::Config{privlibexp}
|
||||
- ,"ExtUtils","typemap"
|
||||
- );
|
||||
- $typemap = $file
|
||||
- if (not $typemap and -f $file);
|
||||
- warn "Can't find the default system typemap file"
|
||||
- if (not $typemap and $^W);
|
||||
+
|
||||
+ unless ($ENV{'_INLINE_C_SYSTEM_TYPEMAP_'}) {
|
||||
+ $file = File::Spec->catfile(
|
||||
+ $Config::Config{installprivlib},
|
||||
+ "ExtUtils",
|
||||
+ "typemap",
|
||||
+ );
|
||||
+ $typemap = $file if -f $file;
|
||||
+ $file = File::Spec->catfile(
|
||||
+ $Config::Config{privlibexp}
|
||||
+ ,"ExtUtils","typemap"
|
||||
+ );
|
||||
+ $typemap = $file
|
||||
+ if (not $typemap and -f $file);
|
||||
+ warn "Can't find the default system typemap file"
|
||||
+ if (not $typemap and $^W);
|
||||
|
||||
- unshift(@{$o->{ILSM}{MAKEFILE}{TYPEMAPS}}, $typemap) if $typemap;
|
||||
+ unshift(@{$o->{ILSM}{MAKEFILE}{TYPEMAPS}}, $typemap) if $typemap;
|
||||
+ }
|
||||
+ else {
|
||||
+ unshift(@{$o->{ILSM}{MAKEFILE}{TYPEMAPS}}, $ENV{'_INLINE_C_SYSTEM_TYPEMAP_'});
|
||||
+ }
|
||||
|
||||
if (not $o->UNTAINT) {
|
||||
require FindBin;
|
||||
Reference in New Issue
Block a user