1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 12:23:59 +02:00
openwrt-packages/lang/perl-try-tiny/Makefile
Matt Merhar 52668b1e97 perl-try-tiny: use relative include of perlmod.mk
The $(TOPDIR) seemed to cause Makefile parsing issues with CI.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
2021-02-15 21:36:28 -05:00

48 lines
1.1 KiB
Makefile

#
# Copyright (C) 2021 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-try-tiny
PKG_VERSION:=0.30
PKG_RELEASE:=2
PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/E/ET/ETHER/
PKG_SOURCE:=Try-Tiny-$(PKG_VERSION).tar.gz
PKG_HASH:=da5bd0d5c903519bbf10bb9ba0cb7bcac0563882bcfe4503aee3fb143eddef6b
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Try-Tiny-$(PKG_VERSION)
PKG_MAINTAINER:=Matt Merhar <mattmerhar@protonmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk
define Package/perl-try-tiny
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=Minimal try/catch with proper preservation of $$$$@
URL:=https://metacpan.org/pod/Try::Tiny
DEPENDS:=perl +perlbase-essential
endef
define Build/Configure
$(call perlmod/Configure,,)
endef
define Build/Compile
$(call perlmod/Compile,,)
endef
define Package/perl-try-tiny/install
$(call perlmod/Install,$(1),Try auto/Try)
endef
$(eval $(call BuildPackage,perl-try-tiny))