Subject: | Add CVS repo in Makefile.PL to show it on MetaCPAN |
Please find below a patch to add the URL to the Sourceforge website to the Makefile.PL. This way, it will be shown on the left panel on MetaCPAN, too.
The code was inspired by http://perlmaven.com/add-meta-data-to-cpan-distribution (2015-10-12).
--- D:\zwischen\cpan\Text-Similarity-0.13\Makefile.PL
+++ D:\zwischen\cpan\Text-Similarity-0.13\Makefile-0.14.PL
@@ -19,4 +19,19 @@
# allows for automatic creation of META.yml
($ExtUtils::MakeMaker::VERSION ge '6.30_00'?
('LICENSE' => 'gpl', ) : ()),
-);
+ (eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
+ META_MERGE => {
+ 'meta-spec' => { version => 2 },
+ resources => {
+ repository => {
+ type => 'csv',
+ url => 'http://sourceforge.net/p/text-similarity/code/',
+ web => 'http://sourceforge.net/p/text-similarity/code/',
+ },
+ homepage => 'http://text-similarity.sourceforge.net',
+ },
+ } ) : ()),
+);
\ No newline at end of file