aboutsummaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libconstant/libconstant-defer-perl_5.bb
blob: 581a98be078ebcdc77c7627d34ee483f817279a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SUMMARY = "constant::defer - constant subs with deferred value calculation"
DESCRIPTION = "\"constant::defer\" creates a subroutine which on the first \
call runs given code to calculate its value, and on the second and \
subsequent calls just returns that value, like a constant.  The value code \
is discarded once run, allowing it to be garbage collected. \
\
Deferring a calculation is good if it might take a lot of work or produce \
a big result, but is only needed sometimes or only well into a program run. \
If it's never needed then the value code never runs."

SECTION = "libs"

HOMEPAGE = "http://user42.tuxfamily.org/constant-defer/index.html"

LICENSE = "GPL-3.0+"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"

SRC_URI = "${CPAN_MIRROR}/authors/id/K/KR/KRYDE/constant-defer-${PV}.tar.gz"
SRC_URI[md5sum] = "519232b64896395b84b41f5300d1cab3"
SRC_URI[sha256sum] = "985fe4be377dc58d424dd3e6be1cab81f7ef4a75730d99298d94476aace0d215"

S = "${WORKDIR}/constant-defer-${PV}"

inherit cpan

DEPENDS_${PN} = "  libextutils-makemaker-perl-native"

BBCLASSEXTEND = "native"