You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=perl-ack
  6. PKG_VERSION:=3.5.0
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE_URL:=http://www.cpan.org/authors/id/P/PE/PETDANCE/
  9. PKG_SOURCE:=ack-v$(PKG_VERSION).tar.gz
  10. PKG_HASH:=66053e884e803387a02ddee0d68abf2a10239fab654364dab33287309a725521
  11. PKG_LICENSE:=Artistic-2.0
  12. PKG_LICENSE_FILE:=LICENSE.md
  13. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/perl/ack-v$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../perl/perlmod.mk
  17. define Package/ack
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=A grep-like source code search tool
  21. URL:=https://beyondgrep.com
  22. DEPENDS:=+perl +perl-ack
  23. PROVIDES:=ack-grep
  24. endef
  25. define Package/perl-ack
  26. SUBMENU:=Perl
  27. SECTION:=lang
  28. CATEGORY:=Languages
  29. TITLE:=grep-like text finder
  30. URL:=http://search.cpan.org/dist/ack/
  31. DEPENDS:=perl +perl-file-next +perlbase-filetest +perlbase-if \
  32. +perlbase-list +perlbase-pod +perlbase-test +perlbase-text \
  33. +perlbase-term
  34. endef
  35. define Build/Configure
  36. $(call perlmod/Configure,,)
  37. endef
  38. define Build/Compile
  39. $(call perlmod/Compile,,)
  40. endef
  41. define Package/ack/install
  42. $(INSTALL_DIR) $(1)/usr/bin/
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ack $(1)/usr/bin/
  44. $(SED) "1"'!'"b;s,^#"'!'".*perl.*,#"'!'"/usr/bin/perl," -i --follow-symlinks $(1)/usr/bin/ack
  45. endef
  46. define Package/perl-ack/install
  47. $(call perlmod/Install,$(1),App auto/ack)
  48. endef
  49. $(eval $(call BuildPackage,ack))
  50. $(eval $(call BuildPackage,perl-ack))