Codebase list libdist-inkt-role-git-perl / 6f27a6c
Import upstream version 0.001+git20191019.1.40d8efc Debian Janitor 2 years ago
9 changed file(s) with 54 addition(s) and 103 deletion(s). Raw diff Collapse all Expand all
55 Files: Changes
66 META.json
77 META.yml
8 dist.ini
98 doap.ttl
10 Copyright: Copyright 2018 Kjetil Kjernsmo.
9 Copyright: Copyright 2021 Kjetil Kjernsmo.
1110 License: GPL-1.0+ or Artistic-1.0
1211
1312 Files: README
2928 License: Unknown
3029
3130 Files: Makefile.PL
32 Copyright: Copyright 2013 Toby Inkster.
31 Copyright: Copyright 2020 Toby Inkster.
32 License: GPL-1.0+ or Artistic-1.0
33
34 Files: dist.ini
35 Copyright: Copyright 2019 Kjetil Kjernsmo.
3336 License: GPL-1.0+ or Artistic-1.0
3437
3538 License: Artistic-1.0
36 This software is Copyright (c) 2018 by the copyright holder(s).
39 This software is Copyright (c) 2021 by the copyright holder(s).
3740
3841 This is free software, licensed under:
3942
4043 The Artistic License 1.0
4144
4245 License: GPL-1.0
43 This software is Copyright (c) 2018 by the copyright holder(s).
46 This software is Copyright (c) 2021 by the copyright holder(s).
4447
4548 This is free software, licensed under:
4649
0 This software is copyright (c) 2018 by Kjetil Kjernsmo.
0 This software is copyright (c) 2021 by Kjetil Kjernsmo.
11
22 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
1111
1212 --- The GNU General Public License, Version 1, February 1989 ---
1313
14 This software is Copyright (c) 2018 by Kjetil Kjernsmo.
14 This software is Copyright (c) 2021 by Kjetil Kjernsmo.
1515
1616 This is free software, licensed under:
1717
271271
272272 --- The Artistic License 1.0 ---
273273
274 This software is Copyright (c) 2018 by Kjetil Kjernsmo.
274 This software is Copyright (c) 2021 by Kjetil Kjernsmo.
275275
276276 This is free software, licensed under:
277277
291291
292292 - "Package" refers to the collection of files distributed by the Copyright
293293 Holder, and derivatives of that collection of files created through
294 textual modification.
294 textual modification.
295295 - "Standard Version" refers to such a Package if it has not been modified,
296296 or has been modified in accordance with the wishes of the Copyright
297 Holder.
297 Holder.
298298 - "Copyright Holder" is whoever is named in the copyright or copyrights for
299 the package.
299 the package.
300300 - "You" is you, if you're thinking about copying or distributing this Package.
301301 - "Reasonable copying fee" is whatever you can justify on the basis of media
302302 cost, duplication charges, time of people involved, and so on. (You will
303303 not be required to justify it to the Copyright Holder, but only to the
304 computing community at large as a market that must bear the fee.)
304 computing community at large as a market that must bear the fee.)
305305 - "Freely Available" means that no fee is charged for the item itself, though
306306 there may be fees involved in handling the item. It also means that
307307 recipients of the item may redistribute it under the same conditions they
308 received it.
308 received it.
309309
310310 1. You may make and give away verbatim copies of the source form of the
311311 Standard Version of this Package without restriction, provided that you
372372
373373 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
374374 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
375 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
375 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
376376
377377 The End
378378
33 "Kjetil Kjernsmo (KJETILK) <kjetilk@cpan.org>"
44 ],
55 "dynamic_config" : 0,
6 "generated_by" : "Dist::Inkt::Profile::KJETILK version 0.100, CPAN::Meta::Converter version 2.150010",
6 "generated_by" : "Dist::Inkt::Profile::KJETILK version 0.101, CPAN::Meta::Converter version 2.150010",
77 "keywords" : [],
88 "license" : [
99 "perl_5"
1010 ],
1111 "meta-spec" : {
1212 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
13 "version" : "2"
13 "version" : 2
1414 },
1515 "name" : "Dist-Inkt-Role-Git",
1616 "no_index" : {
3535 "Git::Sub" : "0",
3636 "Moose" : "0",
3737 "Types::Standard" : "0",
38 "namespace::autoclean" : "0",
3839 "perl" : "5.014"
3940 }
4041 },
6768 "x_identifier" : "http://purl.org/NET/cpan-uri/dist/Dist-Inkt-Role-Git/project"
6869 },
6970 "version" : "0.001",
70 "x_serialization_backend" : "JSON::PP version 2.27300_01",
71 "x_serialization_backend" : "JSON::PP version 4.04",
7172 "x_static_install" : 1
7273 }
66 configure_requires:
77 ExtUtils::MakeMaker: '6.17'
88 dynamic_config: 0
9 generated_by: 'Dist::Inkt::Profile::KJETILK version 0.100, CPAN::Meta::Converter version 2.150010'
9 generated_by: 'Dist::Inkt::Profile::KJETILK version 0.101, CPAN::Meta::Converter version 2.150010'
1010 keywords: []
1111 license: perl
1212 meta-spec:
3030 Git::Sub: '0'
3131 Moose: '0'
3232 Types::Standard: '0'
33 namespace::autoclean: '0'
3334 perl: '5.014'
3435 resources:
3536 Identifier: http://purl.org/NET/cpan-uri/dist/Dist-Inkt-Role-Git/project
66 "abstract" => "Git functions for Dist::Inkt",
77 "author" => ["Kjetil Kjernsmo (KJETILK) <kjetilk\@cpan.org>"],
88 "dynamic_config" => 0,
9 "generated_by" => "Dist::Inkt::Profile::KJETILK version 0.100, CPAN::Meta::Converter version 2.150010",
9 "generated_by" => "Dist::Inkt::Profile::KJETILK version 0.101, CPAN::Meta::Converter version 2.150010",
1010 "keywords" => [],
1111 "license" => ["perl_5"],
1212 "meta-spec" => {
2222 "Dist::Inkt" => 0.001,
2323 "Git::Sub" => 0,
2424 "Moose" => 0,
25 "namespace::autoclean" => 0,
2526 "perl" => 5.014,
2627 "Types::Standard" => 0,
2728 },
120121 }
121122 }
122123
123 sub FixMakefile
124 {
125 return unless -d 'inc';
126 my $file = shift;
127
128 local *MAKEFILE;
129 open MAKEFILE, "< $file" or die "FixMakefile: Couldn't open $file: $!; bailing out";
130 my $makefile = do { local $/; <MAKEFILE> };
131 close MAKEFILE or die $!;
132
133 $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /;
134 $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g;
135 $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g;
136 $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m;
137 $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m;
138
139 open MAKEFILE, "> $file" or die "FixMakefile: Couldn't open $file: $!; bailing out";
140 print MAKEFILE $makefile or die $!;
141 close MAKEFILE or die $!;
142 }
143124
144125 my $mm = WriteMakefile(%WriteMakefileArgs);
145 FixMakefile($mm->{FIRST_MAKEFILE} || 'Makefile');
126
146127 exit(0);
147128
1111 use Git::Sub qw(tag status log);
1212 use Types::Standard 'Bool';
1313 use namespace::autoclean;
14
14
1515 has source_control_is_git => (
1616 is => "ro",
1717 isa => Bool,
1818 lazy => 1,
1919 builder => "_build_source_control_is_git",
2020 );
21
21
2222 sub _build_source_control_is_git {
2323 my $self = shift;
2424 !! $self->rootdir->child(".git")->is_dir;
2525 }
26
26
2727 after BUILD => sub {
2828 my $self = shift;
2929 return unless $self->source_control_is_git;
00 This file contains message digests of all files listed in MANIFEST,
1 signed via the Module::Signature module, version 0.81.
1 signed via the Module::Signature module, version 0.87.
22
33 To verify the content in this distribution, first make sure you have
44 Module::Signature installed, then type:
1111 not run its Makefile.PL or Build.PL.
1212
1313 -----BEGIN PGP SIGNED MESSAGE-----
14 Hash: SHA256
14 Hash: RIPEMD160
1515
16 SHA1 f564a321cacc971e1a4dc89902e1bc07a16ec1b1 COPYRIGHT
17 SHA1 e3e0e39296ce1cb035cb7c372a53ac507bbbda5f CREDITS
18 SHA1 fde97ea7f458c464cf0852a20610e80613b99cbe Changes
19 SHA1 25ea49a64d4761d8539bba852bb88c544a5339a5 INSTALL
20 SHA1 2454ea67cbcfa62e76ec0cafc958c03287d7ab41 LICENSE
21 SHA1 bf10cdde1c3c2764fde4eeafbbf8a19c0179cdf2 MANIFEST
22 SHA1 be3350bc4dbe531786318b8061ba570edb6461ab META.json
23 SHA1 ccdd4e4de2a5298b7019371ff52c314231399adf META.yml
24 SHA1 f9080db18343eab774bd7933da6128155b8c3efb Makefile.PL
25 SHA1 671c25baaffc139912f5594224723e033a1ebde4 README
26 SHA1 76c7f6988db21070a71ca8ee012f940377fed31f README.pod
27 SHA1 f8a7560b1f1dab5482f154b495161d667361266b dist.ini
28 SHA1 3d750ea3b3c511144a31175d733d6280c6dee4e8 doap.ttl
29 SHA1 76c7f6988db21070a71ca8ee012f940377fed31f lib/Dist/Inkt/Role/Git.pm
30 SHA1 6d614f5e6aaeed34aaa233d967ee109d85594a32 t/01basic.t
31 -----BEGIN PGP SIGNATURE-----
32
33 iQIzBAEBCAAdFiEEDsyLxtCi6bk7pBcmf77o3zqeSqUFAlqgj9MACgkQf77o3zqe
34 SqXgMhAArUWoeHd70xIbXuSHxnRMM6ETZSC4CBQkPqR0PRHCrS+8ltKvVsc3RiZv
35 nLV2sWmfVRfqZ92l+nMpBYzToEGseZz/p0yf5sJitRm5CpZw/faVmTVW5kbvIdqL
36 xJkt9rQx4ggdfG4P2zyltVxHDWsmxO4p+9wEfyho1vlrx3IUXZZOOtTdU7KtkOmW
37 b6jk9Tkj4CCol3f3BiN6xPkPC43Ida7aY/ewwSpfbJCzium7iMZGAr7zo/nop/rt
38 RKSEGi+OmNl8VXOGIN8nb2oTHW8p2hOr+PzXuwP572x5Gt1iiVr/mL0bwHWCMqQG
39 buGqCdpwdARFVe0bmwaNDU6GglXIb4cCUncSNZVLK3dm504zoA+JKJ/mkgIN78PA
40 Pyf1jilwKIUq7GUj7LR3m4arOZbow9vgaEyqkbUf/M2G9fjV0bbba9vywVqCZQcR
41 L6D1LWCqJTGQWEV41/IDzU4Rm7AKa99ciJYFEjUcWKXiKIILaIYlWbTiFck2UZEL
42 o5dOkXYXt3JTXHg4Ailm+vEJJwOsRZstSQUfIbeAv6dn7/EVSKhMGEt2zfbaA29X
43 /sGecllftwRqhse0nyoEQhvLvhSf+W405xDxvJPDnf1RiQt9ncmcNaWI3zJTamLP
44 kK4JXT5XcAzDClFqkv1ZqetHzkdwXYXFHVGIOCbn7oO1zWH5pf8=
45 =id8A
46 -----END PGP SIGNATURE-----
16 SHA256 eef8f49d929e7e95c79fa8da2df8dfadbb7b0fc51de8cd3694f87eeac5d3b6f5 COPYRIGHT
17 SHA256 07bbc00d72285ef453492c3677d6d1be52c236f25b0ec5d2e965237f565393df CREDITS
18 SHA256 a487a3d427d49af40d5660691616375916b06b5690617db100c92364eb6cefac Changes
19 SHA256 743b9c31c1d01e765800416c0477a7d887ff1a3fe2c413cbd98cf0f780289e9e INSTALL
20 SHA256 30051dd15cb3a8fc9014a598236d67aebc9a7b45c6f83dd40b97000aab35a320 LICENSE
21 SHA256 69800f25b267e86916531b6f9ae20fa07df37adc0ec56f1f8ef75fb2addbd9a7 MANIFEST
22 SHA256 8ff8c15b5add4f3ed04450ff738a83af283f52b627cc348af70b08d96870b998 META.json
23 SHA256 989e3a3fc7bd432228c718dde6b2440b9ca98ce93d53723627b359b600fa6c8b META.yml
24 SHA256 db8e7e0c07cec3c56ea4a27704378296cdfc7359748a6a4b0d1463a76c1be760 Makefile.PL
25 SHA256 ac32e346fd938c363db84b0ce606bce62da0128dd18fbf4bc11094f4e0124983 README
26 SHA256 6b4b67f17683610c8ddb857e01037bbfd0bd3ec78609dfae1d9939b55a9fef54 README.pod
27 SHA256 bed05752de817c927b2912a0f05110a2824a11493f439eef945509df863b643c dist.ini
28 SHA256 1d15c21782508be7d966ccab0dac610483d6f30cfad399e69eb1a61b0db37cf6 doap.ttl
29 SHA256 6b4b67f17683610c8ddb857e01037bbfd0bd3ec78609dfae1d9939b55a9fef54 lib/Dist/Inkt/Role/Git.pm
30 SHA256 4480a2e7ce51ffbc935f4911fde466ea226d4b3f48ed76c6790ad8f8671c2e9f t/01basic.t
55 @prefix owl: <http://www.w3.org/2002/07/owl#> .
66 @prefix prov: <http://www.w3.org/ns/prov#> .
77 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 @prefix wot: <http://xmlns.com/wot/0.1/> .
98 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10
11 <http://dev.perl.org/licenses/>
12 rdfs:comment "the same terms as the Perl 5 programming language system itself"@en.
139
1410 <http://purl.org/NET/cpan-uri/dist/Dist-Inkt-Role-Git/project>
1511 a doap:Project;
1612 dc:contributor <http://purl.org/NET/cpan-uri/person/kjetilk>;
17 doap-deps:runtime-requirement [ doap-deps:on "Dist::Inkt 0.001"^^doap-deps:CpanId ], [ doap-deps:on "perl 5.014"^^doap-deps:CpanId ], [ doap-deps:on "Types::Standard"^^doap-deps:CpanId ], [ doap-deps:on "Moose"^^doap-deps:CpanId ], [ doap-deps:on "Git::Sub"^^doap-deps:CpanId ];
13 doap-deps:runtime-requirement [ doap-deps:on "Dist::Inkt 0.001"^^doap-deps:CpanId ], [ doap-deps:on "perl 5.014"^^doap-deps:CpanId ], [ doap-deps:on "Types::Standard"^^doap-deps:CpanId ], [ doap-deps:on "Moose"^^doap-deps:CpanId ], [
14 doap-deps:on "namespace::autoclean"^^doap-deps:CpanId;
15 ], [ doap-deps:on "Git::Sub"^^doap-deps:CpanId ];
1816 doap-deps:test-requirement [ doap-deps:on "Test::More 0.96"^^doap-deps:CpanId ];
1917 doap:bug-database <https://github.com/kjetilk/p5-dist-inkt-role-git/issues>;
2018 doap:created "2018-03-08"^^xsd:date;
4543
4644 <http://purl.org/NET/cpan-uri/person/kjetilk>
4745 a foaf:Person;
48 foaf:mbox <mailto:kjetilk@cpan.org>;
4946 foaf:name "Kjetil Kjernsmo";
50 foaf:nick "KJETILK", "KjetilK";
47 foaf:nick "KJETILK";
5148 foaf:page <https://metacpan.org/author/KJETILK>;
52 owl:sameAs <http://git2prov.org/git2prov?giturl=https://github.com/kjetilk/p5-dist-inkt-role-git&serialization=PROV-O#user-Kjetil-Kjernsmo>, <http://www.kjetil.kjernsmo.net/foaf#me>;
53 rdfs:seeAlso <http://www.kjetil.kjernsmo.net/foaf>;
54 wot:hasKey _:B1.
49 owl:sameAs <http://git2prov.org/git2prov?giturl=https://github.com/kjetilk/p5-dist-inkt-role-git&serialization=PROV-O#user-Kjetil-Kjernsmo>.
5550
56 <http://www.kjetil.kjernsmo.net/foaf#me>
57 a foaf:Person;
58 foaf:homepage <http://kjetil.kjernsmo.net/>;
59 foaf:mbox <mailto:kjetilk@cpan.org>;
60 foaf:name "Kjetil Kjernsmo";
61 foaf:nick "KjetilK";
62 owl:sameAs <http://purl.org/NET/cpan-uri/person/kjetilk>;
63 rdfs:seeAlso <http://www.kjetil.kjernsmo.net/foaf>;
64 wot:hasKey _:B1.
65
66 _:B1
67 a wot:PubKey;
68 wot:fingerprint "0ECC8BC6D0A2E9B93BA417267FBEE8DF3A9E4AA5".
69
1111 use Git::Sub qw(tag status log);
1212 use Types::Standard 'Bool';
1313 use namespace::autoclean;
14
14
1515 has source_control_is_git => (
1616 is => "ro",
1717 isa => Bool,
1818 lazy => 1,
1919 builder => "_build_source_control_is_git",
2020 );
21
21
2222 sub _build_source_control_is_git {
2323 my $self = shift;
2424 !! $self->rootdir->child(".git")->is_dir;
2525 }
26
26
2727 after BUILD => sub {
2828 my $self = shift;
2929 return unless $self->source_control_is_git;