From d2fdb2e8ef02a3f0709293426a58fa3d64154953 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 25 Dec 2020 22:05:05 +0000 Subject: [PATCH] perl: add NetAddr::IP package Disable native code for now as it fails due to the package's build-system not considering STAGING_DIR. Signed-off-by: Daniel Golle --- lang/perl-netaddr-ip/Makefile | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 lang/perl-netaddr-ip/Makefile diff --git a/lang/perl-netaddr-ip/Makefile b/lang/perl-netaddr-ip/Makefile new file mode 100644 index 000000000..4e6cf6d21 --- /dev/null +++ b/lang/perl-netaddr-ip/Makefile @@ -0,0 +1,62 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=perl-netaddr-ip +PKG_VERSION:=4.079 +PKG_RELEASE:=1 + +PKG_SOURCE_NAME:=NetAddr-IP +PKG_SOURCE_URL:=https://www.cpan.org/authors/id/M/MI/MIKER/ +PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz +PKG_HASH:=ec5a82dfb7028bcd28bb3d569f95d87dd4166cc19867f2184ed3a59f6d6ca0e7 + +PKG_LICENSE:=GPL-2.0-or-later Artistic-1.0-Perl +PKG_LICENSE_FILES:=Copying +PKG_MAINTAINER:=Daniel Golle + +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/NetAddr-IP-$(PKG_VERSION) +HOST_BUILD_DEPENDS:=perl/host +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/NetAddr-IP-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk +include ../perl/perlmod.mk + +define Package/perl-netaddr-ip + SUBMENU:=Perl + SECTION:=lang + CATEGORY:=Languages + TITLE:=NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets + URL:=http://search.cpan.org/dist/NetAddr::IP/ + DEPENDS:=perl +perlbase-essential +perlbase-test +endef + +define Host/Configure + $(call perlmod/host/Configure,-noxs,,) + $(call Host/Configure/Default,,,Lite/Util) +endef + +define Host/Compile + $(call Host/Compile/Default,,,Lite/Util) + $(call perlmod/host/Compile,,) +endef + +define Host/Install + $(call perlmod/host/Install,$(1),) +endef + +define Build/Configure + $(call perlmod/Configure,-noxs,) + $(call Build/Configure/Default,,,Lite/Util) +endef + +define Build/Compile + $(call Build/Compile/Default,,,Lite/Util) + $(call perlmod/Compile,,) +endef + +define Package/perl-netaddr-ip/install + $(call perlmod/Install,$(1),NetAddr auto/NetAddr) +endef + +$(eval $(call BuildPackage,perl-netaddr-ip)) +$(eval $(call HostBuild))