blob: a6808d3f8e7ed007fd32aafd06491a82b49b59ef [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "strictures - turn on strict and make all warnings fatal"
2DESCRIPTION = "I've been writing the equivalent of this module at the top \
3of my code for about a year now. I figured it was time to make it shorter. \
4\
5Things like the importer in \"use Moose\" don't help me because they turn \
6warnings on but don't make them fatal -- which from my point of view is \
7useless because I want an exception to tell me my code isn't warnings-clean. \
8\
9Any time I see a warning from my code, that indicates a mistake. \
10\
11Any time my code encounters a mistake, I want a crash -- not spew to STDERR \
12and then unknown (and probably undesired) subsequent behaviour. \
13\
14I also want to ensure that obvious coding mistakes, like indirect object \
15syntax (and not so obvious mistakes that cause things to accidentally compile \
16as such) get caught, but not at the cost of an XS dependency and not at the \
17cost of blowing things up on another machine. \
18\
19Therefore, \"strictures\" turns on additional checking, but only when it \
20thinks it's running in a test file in a VCS checkout -- although if this \
21causes undesired behaviour this can be overridden by setting the \
22PERL_STRICTURES_EXTRA environment variable."
23
24SECTION = "libs"
25
26HOMEPAGE = "https://metacpan.org/pod/strictures"
27
28LICENSE = "Artistic-1.0 | GPL-1.0+"
29LIC_FILES_CHKSUM = "file://README;beginline=246;endline=262;md5=43be558cf4f19823cdd6af22135cf5f8"
30
31SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/strictures-${PV}.tar.gz"
32SRC_URI[md5sum] = "78244cfab6168dcf196370d1e2309536"
33SRC_URI[sha256sum] = "27f8ea096a521e9754d36ea32889c2cda28346d04e3e399e7ea118d182dbaf22"
34
35S = "${WORKDIR}/strictures-${PV}"
36
37inherit cpan
38
39RDEPENDS_${PN} = " perl-module-carp \
40 perl-module-strict \
41 perl-module-test-more \
42 perl-module-warnings \
43"
44
45BBCLASSEXTEND = "native"