mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 08:04:32 +04: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:
63
lang/perl/perl-ack/Makefile
Normal file
63
lang/perl/perl-ack/Makefile
Normal file
@@ -0,0 +1,63 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=perl-ack
|
||||
PKG_VERSION:=3.8.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=https://www.cpan.org/authors/id/P/PE/PETDANCE/
|
||||
PKG_SOURCE:=ack-v$(PKG_VERSION).tar.gz
|
||||
PKG_HASH:=a5239f5a2c12e0c7b4e432ffd7e936feef945a9621a41591c77d3b0cf458560b
|
||||
|
||||
PKG_LICENSE:=Artistic-2.0
|
||||
PKG_LICENSE_FILE:=LICENSE.md
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/ack-v$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../perlmod.mk
|
||||
|
||||
define Package/ack
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=A grep-like source code search tool
|
||||
URL:=https://beyondgrep.com
|
||||
DEPENDS:=+perl +perl-ack
|
||||
PROVIDES:=ack-grep
|
||||
endef
|
||||
|
||||
define Package/perl-ack
|
||||
SUBMENU:=Perl
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=grep-like text finder
|
||||
URL:=http://search.cpan.org/dist/ack/
|
||||
DEPENDS:=perl +perl-file-next +perlbase-filetest +perlbase-if \
|
||||
+perlbase-list +perlbase-pod +perlbase-test +perlbase-text \
|
||||
+perlbase-term
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call perlmod/Configure,,)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call perlmod/Compile,,)
|
||||
endef
|
||||
|
||||
define Package/ack/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ack $(1)/usr/bin/
|
||||
$(SED) "1"'!'"b;s,^#"'!'".*perl.*,#"'!'"/usr/bin/perl," -i --follow-symlinks $(1)/usr/bin/ack
|
||||
endef
|
||||
|
||||
define Package/perl-ack/install
|
||||
$(call perlmod/Install,$(1),App auto/ack)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ack))
|
||||
$(eval $(call BuildPackage,perl-ack))
|
||||
6
lang/perl/perl-ack/test.sh
Normal file
6
lang/perl/perl-ack/test.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
"ack")
|
||||
ack --version | grep "$PKG_VERSION"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user