This patch is not so good. I studied the fedory rmp spec and gentoo
ebuild and want all the manual fixes/hacks here.

We should rather skip /usr/{compilers,config,src,language,tools}

Later needed:
symlink /usr/include/parrot/parrot.h to /usr/include/parrot.h
mv ${D}/usr/bin/pdb.exe ${D}/usr/bin/parrot_pdb.exe

But I'm still testing.

# necessary for mod_parrot-0.3
insinto /usr/lib/${PN}/src/
doins "${B}/src/install_config.o" "${B}/src/null_config.o"
"${B}/src/parrot_config.o" 

-- 
Reini Urban
difforig tools/dev/install_files.pl

diff -u tools/dev/install_files.pl.orig tools/dev/install_files.pl
--- tools/dev/install_files.pl.orig	2008-05-18 16:44:14.000000000 +0000
+++ tools/dev/install_files.pl	2008-07-03 00:21:12.187500000 +0000
@@ -126,7 +126,7 @@
     bindir      => '/usr/bin',
     libdir      => '/usr/lib',
     includedir  => '/usr/include',
-    docdir      => '/usr/share/doc',
+    docdir      => '/usr/share/doc/parrot',
     'dry-run'   => 0,
 );
 
@@ -189,6 +189,7 @@
     }
     elsif ( $meta{include} ) {
         $dest =~ s/^include//;
+        $dest =~ s/^src/parrot/;
         $dest = File::Spec->catdir( $options{includedir}, $dest );
     }
     elsif ( $meta{doc} ) {
@@ -197,13 +198,14 @@
     elsif ( $meta{pkgconfig} ) {
 
         # For the time being this is hardcoded as being installed under libdir
-        # as it is typically donw with automake installed packages.  If there
+        # as it is typically done with automake installed packages.  If there
         # is a use case to make this configurable we'll add a seperate
         # --pkgconfigdir option.
         $dest = File::Spec->catdir( $options{libdir}, 'pkgconfig', $dest );
     }
     else {
-        $dest =~ s/^runtime/lib/ if /\[library]/;
+        $dest =~ s|^runtime/|| if /\[library]/;
+	next if $dest =~ /compilers|config|src|language|tools/;
         $dest = File::Spec->catdir( $options{prefix}, $dest );
     }
 
@@ -243,6 +245,7 @@
     }
     else {
         next unless -e $src;
+        next if $^O eq 'cygwin' and -e "$src.exe"; # cygwin stat works, but copy not
         copy( $src, $dest ) or die "copy $src to $dest: $!\n";
         print "$dest\n";
     }

Reply via email to