Revision
87536
Author
dports@macports.org
Date
2011-11-24 10:37:06 -0800 (Thu, 24 Nov 2011)

Log Message

p5-libwww-perl: use ${subport} instead of ${name} to name the doc
directory to prevent conflicts

Modified Paths

Diff

Modified: trunk/dports/perl/p5-libwww-perl/Portfile (87535 => 87536)


--- trunk/dports/perl/p5-libwww-perl/Portfile	2011-11-24 18:31:52 UTC (rev 87535)
+++ trunk/dports/perl/p5-libwww-perl/Portfile	2011-11-24 18:37:06 UTC (rev 87536)
@@ -4,6 +4,7 @@
 PortGroup                    perl5 1.0
 
 perl5.setup                  libwww-perl 6.03 LWP
+revision                     1
 maintainers                  nomaintainer
 license                      {Artistic GPL}
 supported_archs              noarch
@@ -43,12 +44,12 @@
 
 post-destroot {
     # Install miscellaneous doc files
-    file mkdir ${destroot}${prefix}/share/doc/${name}
+    file mkdir ${destroot}${prefix}/share/doc/${subport}
     file copy ${worksrcpath}/AUTHORS \
               ${worksrcpath}/Changes \
               ${worksrcpath}/README \
               ${worksrcpath}/README.SSL \
-        ${destroot}${prefix}/share/doc/${name}
+        ${destroot}${prefix}/share/doc/${subport}
 }
 
 variant ssl description {Include optional SSL/TLS (HTTPS) support} {
@@ -60,11 +61,11 @@
 
 notes \
     "As of version 6.00, libwww-perl has been broken up into multiple" \
-    "packages.  If you were using ${name} for just one or two of its" \
+    "packages.  If you were using ${subport} for just one or two of its" \
     "modules before, you may be able to pare down your installation to" \
     "just those modules now.  Other important changes have been made that" \
     "may affect your code; for details, please see:" \
-    ${prefix}/share/doc/${name}/Changes
+    ${prefix}/share/doc/${subport}/Changes
 
 # Starting with version 6.02, LWP::Protocol::https began to be packaged
 # separately from libwww-perl as well.  The thinking seems to have been that