Skip to content

Commit 1674917

Browse files
authored
Merge pull request #13 from timlegge/dist-zilla
Convert build to Dist zilla
2 parents f3ad896 + feb4b31 commit 1674917

File tree

16 files changed

+895
-321
lines changed

16 files changed

+895
-321
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ MYMETA.yml
1414
nytprof.out
1515
pm_to_blib
1616
*~
17-
17+
Crypt-CBC-3*

LICENSE

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
This software is Copyright (c) 1998 - 2025 by Lincoln Stein.
2+
3+
This is free software, licensed under:
4+
5+
The Artistic License 2.0 (GPL Compatible)
6+
7+
The Artistic License 2.0
8+
9+
Copyright (c) 2000-2006, The Perl Foundation.
10+
11+
Everyone is permitted to copy and distribute verbatim copies
12+
of this license document, but changing it is not allowed.
13+
14+
Preamble
15+
16+
This license establishes the terms under which a given free software
17+
Package may be copied, modified, distributed, and/or redistributed.
18+
The intent is that the Copyright Holder maintains some artistic
19+
control over the development of that Package while still keeping the
20+
Package available as open source and free software.
21+
22+
You are always permitted to make arrangements wholly outside of this
23+
license directly with the Copyright Holder of a given Package. If the
24+
terms of this license do not permit the full use that you propose to
25+
make of the Package, you should contact the Copyright Holder and seek
26+
a different licensing arrangement.
27+
28+
Definitions
29+
30+
"Copyright Holder" means the individual(s) or organization(s)
31+
named in the copyright notice for the entire Package.
32+
33+
"Contributor" means any party that has contributed code or other
34+
material to the Package, in accordance with the Copyright Holder's
35+
procedures.
36+
37+
"You" and "your" means any person who would like to copy,
38+
distribute, or modify the Package.
39+
40+
"Package" means the collection of files distributed by the
41+
Copyright Holder, and derivatives of that collection and/or of
42+
those files. A given Package may consist of either the Standard
43+
Version, or a Modified Version.
44+
45+
"Distribute" means providing a copy of the Package or making it
46+
accessible to anyone else, or in the case of a company or
47+
organization, to others outside of your company or organization.
48+
49+
"Distributor Fee" means any fee that you charge for Distributing
50+
this Package or providing support for this Package to another
51+
party. It does not mean licensing fees.
52+
53+
"Standard Version" refers to the Package if it has not been
54+
modified, or has been modified only in ways explicitly requested
55+
by the Copyright Holder.
56+
57+
"Modified Version" means the Package, if it has been changed, and
58+
such changes were not explicitly requested by the Copyright
59+
Holder.
60+
61+
"Original License" means this Artistic License as Distributed with
62+
the Standard Version of the Package, in its current version or as
63+
it may be modified by The Perl Foundation in the future.
64+
65+
"Source" form means the source code, documentation source, and
66+
configuration files for the Package.
67+
68+
"Compiled" form means the compiled bytecode, object code, binary,
69+
or any other form resulting from mechanical transformation or
70+
translation of the Source form.
71+
72+
73+
Permission for Use and Modification Without Distribution
74+
75+
(1) You are permitted to use the Standard Version and create and use
76+
Modified Versions for any purpose without restriction, provided that
77+
you do not Distribute the Modified Version.
78+
79+
80+
Permissions for Redistribution of the Standard Version
81+
82+
(2) You may Distribute verbatim copies of the Source form of the
83+
Standard Version of this Package in any medium without restriction,
84+
either gratis or for a Distributor Fee, provided that you duplicate
85+
all of the original copyright notices and associated disclaimers. At
86+
your discretion, such verbatim copies may or may not include a
87+
Compiled form of the Package.
88+
89+
(3) You may apply any bug fixes, portability changes, and other
90+
modifications made available from the Copyright Holder. The resulting
91+
Package will still be considered the Standard Version, and as such
92+
will be subject to the Original License.
93+
94+
95+
Distribution of Modified Versions of the Package as Source
96+
97+
(4) You may Distribute your Modified Version as Source (either gratis
98+
or for a Distributor Fee, and with or without a Compiled form of the
99+
Modified Version) provided that you clearly document how it differs
100+
from the Standard Version, including, but not limited to, documenting
101+
any non-standard features, executables, or modules, and provided that
102+
you do at least ONE of the following:
103+
104+
(a) make the Modified Version available to the Copyright Holder
105+
of the Standard Version, under the Original License, so that the
106+
Copyright Holder may include your modifications in the Standard
107+
Version.
108+
109+
(b) ensure that installation of your Modified Version does not
110+
prevent the user installing or running the Standard Version. In
111+
addition, the Modified Version must bear a name that is different
112+
from the name of the Standard Version.
113+
114+
(c) allow anyone who receives a copy of the Modified Version to
115+
make the Source form of the Modified Version available to others
116+
under
117+
118+
(i) the Original License or
119+
120+
(ii) a license that permits the licensee to freely copy,
121+
modify and redistribute the Modified Version using the same
122+
licensing terms that apply to the copy that the licensee
123+
received, and requires that the Source form of the Modified
124+
Version, and of any works derived from it, be made freely
125+
available in that license fees are prohibited but Distributor
126+
Fees are allowed.
127+
128+
129+
Distribution of Compiled Forms of the Standard Version
130+
or Modified Versions without the Source
131+
132+
(5) You may Distribute Compiled forms of the Standard Version without
133+
the Source, provided that you include complete instructions on how to
134+
get the Source of the Standard Version. Such instructions must be
135+
valid at the time of your distribution. If these instructions, at any
136+
time while you are carrying out such distribution, become invalid, you
137+
must provide new instructions on demand or cease further distribution.
138+
If you provide valid instructions or cease distribution within thirty
139+
days after you become aware that the instructions are invalid, then
140+
you do not forfeit any of your rights under this license.
141+
142+
(6) You may Distribute a Modified Version in Compiled form without
143+
the Source, provided that you comply with Section 4 with respect to
144+
the Source of the Modified Version.
145+
146+
147+
Aggregating or Linking the Package
148+
149+
(7) You may aggregate the Package (either the Standard Version or
150+
Modified Version) with other packages and Distribute the resulting
151+
aggregation provided that you do not charge a licensing fee for the
152+
Package. Distributor Fees are permitted, and licensing fees for other
153+
components in the aggregation are permitted. The terms of this license
154+
apply to the use and Distribution of the Standard or Modified Versions
155+
as included in the aggregation.
156+
157+
(8) You are permitted to link Modified and Standard Versions with
158+
other works, to embed the Package in a larger work of your own, or to
159+
build stand-alone binary or bytecode versions of applications that
160+
include the Package, and Distribute the result without restriction,
161+
provided the result does not expose a direct interface to the Package.
162+
163+
164+
Items That are Not Considered Part of a Modified Version
165+
166+
(9) Works (including, but not limited to, modules and scripts) that
167+
merely extend or make use of the Package, do not, by themselves, cause
168+
the Package to be a Modified Version. In addition, such works are not
169+
considered parts of the Package itself, and are not subject to the
170+
terms of this license.
171+
172+
173+
General Provisions
174+
175+
(10) Any use, modification, and distribution of the Standard or
176+
Modified Versions is governed by this Artistic License. By using,
177+
modifying or distributing the Package, you accept this license. Do not
178+
use, modify, or distribute the Package, if you do not accept this
179+
license.
180+
181+
(11) If your Modified Version has been derived from a Modified
182+
Version made by someone other than you, you are nevertheless required
183+
to ensure that your Modified Version complies with the requirements of
184+
this license.
185+
186+
(12) This license does not grant you the right to use any trademark,
187+
service mark, tradename, or logo of the Copyright Holder.
188+
189+
(13) This license includes the non-exclusive, worldwide,
190+
free-of-charge patent license to make, have made, use, offer to sell,
191+
sell, import and otherwise transfer the Package with respect to any
192+
patent claims licensable by the Copyright Holder that are necessarily
193+
infringed by the Package. If you institute patent litigation
194+
(including a cross-claim or counterclaim) against any party alleging
195+
that the Package constitutes direct or contributory patent
196+
infringement, then this Artistic License to you shall terminate on the
197+
date that such litigation is filed.
198+
199+
(14) Disclaimer of Warranty:
200+
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
201+
IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
202+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
203+
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
204+
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
205+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
206+
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
207+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST

Lines changed: 0 additions & 34 deletions
This file was deleted.

Makefile.PL

Lines changed: 56 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,59 @@
1+
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.032.
2+
use strict;
3+
use warnings;
4+
5+
use 5.008;
6+
17
use ExtUtils::MakeMaker;
2-
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
3-
# the contents of the Makefile that is written.
4-
WriteMakefile(
5-
'NAME' => 'Crypt::CBC',
6-
'VERSION_FROM' => 'lib/Crypt/CBC.pm', # finds $VERSION
7-
'PREREQ_PM' => {
8-
'Digest::MD5' => 0,
9-
'Digest::SHA' => 0,
10-
'Crypt::PBKDF2' => 0,
11-
'Crypt::Cipher::AES' => 0,
12-
'Crypt::URandom' => 0,
13-
},
14-
'LIBS' => [''], # e.g., '-lm'
15-
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
16-
'INC' => '', # e.g., '-I/usr/include/other'
17-
'dist' => {'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
18-
'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'}
198

9+
my %WriteMakefileArgs = (
10+
"ABSTRACT" => "Encrypt Data with Cipher Block Chaining Mode",
11+
"AUTHOR" => "Lincoln Stein, lstein\@cshl.org",
12+
"CONFIGURE_REQUIRES" => {
13+
"ExtUtils::MakeMaker" => 0
14+
},
15+
"DISTNAME" => "Crypt-CBC",
16+
"LICENSE" => "artistic_2",
17+
"MIN_PERL_VERSION" => "5.008",
18+
"NAME" => "Crypt::CBC",
19+
"PREREQ_PM" => {
20+
"Crypt::Cipher::AES" => 0,
21+
"Crypt::PBKDF2" => 0,
22+
"Crypt::URandom" => 0,
23+
"Digest::MD5" => 0,
24+
"Digest::SHA" => 0
25+
},
26+
"TEST_REQUIRES" => {
27+
"Test" => 0,
28+
"Test::More" => 0,
29+
"lib" => 0
30+
},
31+
"VERSION" => "3.06",
32+
"test" => {
33+
"TESTS" => "t/*.t"
34+
}
35+
);
36+
37+
38+
my %FallbackPrereqs = (
39+
"Crypt::Cipher::AES" => 0,
40+
"Crypt::PBKDF2" => 0,
41+
"Crypt::URandom" => 0,
42+
"Digest::MD5" => 0,
43+
"Digest::SHA" => 0,
44+
"Test" => 0,
45+
"Test::More" => 0,
46+
"lib" => 0
2047
);
48+
49+
50+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
51+
delete $WriteMakefileArgs{TEST_REQUIRES};
52+
delete $WriteMakefileArgs{BUILD_REQUIRES};
53+
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
54+
}
55+
56+
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
57+
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
58+
59+
WriteMakefile(%WriteMakefileArgs);

0 commit comments

Comments
 (0)