Browse Source

perl-file-rsyncp: New package

Signed-off-by: Carsten Wolff <carsten@wolffcarsten.de>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Carsten Wolff 7 years ago
parent
commit
16bc5a5b6c
2 changed files with 68 additions and 0 deletions
  1. +57
    -0
      lang/perl-file-rsyncp/Makefile
  2. +11
    -0
      lang/perl-file-rsyncp/patches/001-no-subdirs.patch

+ 57
- 0
lang/perl-file-rsyncp/Makefile View File

@ -0,0 +1,57 @@
# Copyright (C) 2018 OpenWrt
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-file-rsyncp
PKG_VERSION:=0.74
PKG_RELEASE:=1
PKG_SOURCE:=File-RsyncP-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/
PKG_HASH:=ba4df5f9b0db6c9d86a6c5cf9861cf00d17b18e77cfa028e7a9157c0015a5aa3
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/File-RsyncP-$(PKG_VERSION)
PKG_MAINTAINER:=Carsten Wolff <carsten@wolffcarsten.de>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=LICENSE README
include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk
define Package/perl-file-rsyncp
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=Perl Rsync client
URL:=http://search.cpan.org/~cbarratt/File-RsyncP/
DEPENDS:=perl +perlbase-autoloader +perlbase-socket +perlbase-getopt +perlbase-data +perlbase-config +perlbase-encode +perlbase-fcntl +perlbase-file
endef
define Build/Configure
$(call perlmod/Configure,,)
$(call perlmod/Configure,,,$(PKG_BUILD_DIR)/Digest)
$(call perlmod/Configure,,,$(PKG_BUILD_DIR)/FileList)
$(call Build/Configure/Default,,rsync_cv_HAVE_LONGLONG=yes,FileList)
endef
define Build/Compile
PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)/Digest
PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)/FileList
PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)
endef
define Package/perl-file-rsyncp/install
$(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/File/RsyncP
$(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
$(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/File/RsyncP.pm $(strip $(1))$(PERL_SITELIB)/File
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/File/RsyncP/FileIO.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
$(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/Digest.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
$(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/FileList.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
$(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/blib/lib/auto/File/RsyncP/Digest/autosplit.ix $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
$(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/blib/arch/auto/File/RsyncP/Digest/Digest.so $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
$(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/blib/lib/auto/File/RsyncP/FileList/autosplit.ix $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
$(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/blib/arch/auto/File/RsyncP/FileList/FileList.so $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
endef
$(eval $(call BuildPackage,perl-file-rsyncp))

+ 11
- 0
lang/perl-file-rsyncp/patches/001-no-subdirs.patch View File

@ -0,0 +1,11 @@
--- a/Makefile.PL 2010-07-25 22:50:02.000000000 +0200
+++ b/Makefile.PL 2018-03-27 15:46:16.724000000 +0200
@@ -8,7 +8,7 @@
Getopt::Long => 2.24, # need OO interface
},
'PMLIBDIRS' => ['lib'],
- 'DIR' => ['Digest', 'FileList'],
+ 'DIR' => [],
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/File/RsyncP.pm', # retrieve abstract from module
AUTHOR => 'Craig Barratt <cbarratt@users.sourceforge.net>')

Loading…
Cancel
Save