[76040] contrib/cpan2port/cpan2port

l2g at macports.org l2g at macports.org
Wed Feb 16 23:26:44 PST 2011


Revision: 76040
          http://trac.macports.org/changeset/76040
Author:   l2g at macports.org
Date:     2011-02-16 23:26:43 -0800 (Wed, 16 Feb 2011)
Log Message:
-----------
Don't override master_sites; instead, provide two versions of perl5.setup
(one commented out; the user can choose between the two by manual editing)

Modified Paths:
--------------
    contrib/cpan2port/cpan2port

Modified: contrib/cpan2port/cpan2port
===================================================================
--- contrib/cpan2port/cpan2port	2011-02-17 07:20:22 UTC (rev 76039)
+++ contrib/cpan2port/cpan2port	2011-02-17 07:26:43 UTC (rev 76040)
@@ -235,6 +235,13 @@
          }
     }
 
+    # Generate text for the portfile.
+    # Note that two versions of perl5.setup are generated. The second is for
+    # use when the distfile isn't in the customary location (unfortunately
+    # happening more and more often on CPAN). In the future, it would be nice
+    # to have a command line option to choose between the two, or better yet
+    # have it chosen automatically with a couple of quick Web checks. -L2G
+
     my $portfile = <<STOP;
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # \$Id\$
@@ -243,6 +250,7 @@
 PortGroup       perl5 1.0
 
 perl5.setup     $$info{prefix} $$info{version}
+#perl5.setup     $$info{prefix} $$info{version} ../by-authors/id/$$info{cpan_path}
 platforms       darwin
 maintainers     $$info{maintainers}
 description     $$info{description}
@@ -253,7 +261,6 @@
     }
 
     $portfile .= <<STOP;
-master_sites    http://search.cpan.org/CPAN/authors/id/$$info{cpan_path}
 $checksums
 $depends
 $build_depends
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110216/fb40fdec/attachment.html>


More information about the macports-changes mailing list