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:
Josef Schlehofer
2025-06-17 22:43:38 +02:00
parent 04b7b67e75
commit e9f4aa38ef
97 changed files with 48 additions and 48 deletions

View File

@@ -0,0 +1,66 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-inline-c
PKG_VERSION:=0.81
PKG_RELEASE:=1
PKG_SOURCE:=Inline-C-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.cpan.org/authors/id/T/TI/TINITA
PKG_HASH:=f185258d9050d7f79b4f00f12625cc469c2f700ff62d3e831cb18d80d2c87aac
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
PKG_LICENSE_FILES:=LICENSE
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/Inline-C-$(PKG_VERSION)
HOST_BUILD_DEPENDS:=perl/host perl-inline/host perl-parse-recdescent/host perl-file-sharedir-install/host
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Inline-C-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=perl-inline/host perl-parse-recdescent/host perl-file-sharedir-install/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../perlmod.mk
define Package/perl-inline-c
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=C Language Support for Inline
URL:=https://search.cpan.org/dist/Inline-C/
DEPENDS:=perl +perl-inline +perl-parse-recdescent +perlbase-config +perlbase-cwd +perlbase-data +perlbase-essential +perlbase-file +perlbase-if
endef
define Host/Configure
$(call perlmod/host/Configure,,,)
endef
define Host/Compile
$(call perlmod/host/Compile,,)
endef
define Host/Install
$(call perlmod/host/Install,$(1),)
endef
define Build/Configure
$(call perlmod/Configure,,)
endef
define Build/Compile
$(call perlmod/Compile,,)
endef
define Package/perl-inline-c/install
$(call perlmod/Install,$(1),Inline auto/Inline)
endef
$(eval $(call BuildPackage,perl-inline-c))
$(eval $(call HostBuild))

View File

@@ -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";
}

View File

@@ -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;