I realized after submitting the patch that I made an error in the
patch. The include directory is in a ghc-$version subdirectory, not
directly inside $cabalnameversion. I'm not terribly familiar with
dh_haskell, so I'm not sure how to get the list of ghc versions;
instead, the updated patch uses a glob. This is definitely not the
best way to do it, so I leave things from here in the hands of the
experts :)
--- haskell-devscripts-0.6.9/dh_haskell_install 2008-03-22 15:24:55.000000000
-0400
+++ haskell-devscripts-0.6.9-new/dh_haskell_install 2008-03-25
11:16:40.147320630 -0400
@@ -166,6 +166,8 @@
doit("./setup", "copy", "--destdir=$tmp");
# Remove LICENSE file and empty directories from package
doit("rm", "-f",
"$tmp/usr/lib/haskell-packages/ghc6/share/doc/$cabalnameversion/LICENSE");
+ # Remove C include files---they are already in the -dev package
+ doit("rm", "-rf",
glob("$tmp/usr/lib/haskell-packages/ghc6/lib/$cabalnameversion/*/include"));
finddepth({wanted => \&remove_emptydir}, "$tmp/usr/lib");
} elsif ($pkgtype eq "haddock" ) {
mkpath("$tmp" . "/usr/share/doc/$package");
--
Neil Moore, [EMAIL PROTECTED], http://s-z.org/neil/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]