Checking in changes prior to tagging of version 1.004. Changelog diff is:
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
index cbbf6c9..67af4d9 100644 (file)
@@ -14,4 +14,22 @@ build_requires 'Test::More';
 
 resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-TT-XHTML';
 
+if (-e 'inc/.author') {
+  build_requires 'Test::Pod' => 1.14;
+  build_requires 'Test::Pod::Coverage' => 1.04;
+
+  if ($^O eq 'darwin') {
+      my $osx_ver = `/usr/bin/sw_vers -productVersion`;
+      chomp $osx_ver;
+
+      # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
+      # On 10.5 (Leopard) it wants COPYFILE_DISABLE
+      my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
+
+      makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
+                                        qq{ echo "You must set the ENV variable $attr to true,"; }.
+                                        ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
+  }
+}
+
 WriteAll();