summaryrefslogtreecommitdiff
path: root/devel/darcs/patches/patch-Setup.hs
blob: 2c6f1561deb7a54f1b514280eabd178cd724b8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-Setup.hs,v 1.1 2022/02/14 14:45:09 pho Exp $

Install the man page to the correct directory. This is pkgsrc-specific.

--- Setup.hs.orig	2001-09-09 01:46:40.000000000 +0000
+++ Setup.hs
@@ -9,7 +9,7 @@ import Distribution.Package ( packageVer
 import Distribution.Version( Version )
 import Distribution.Simple.LocalBuildInfo
          ( LocalBuildInfo(..), absoluteInstallDirs )
-import Distribution.Simple.InstallDirs (mandir, CopyDest (NoCopyDest))
+import Distribution.Simple.InstallDirs (prefix, CopyDest (NoCopyDest))
 import Distribution.Simple.Setup
     (buildVerbosity, copyDest, copyVerbosity, fromFlag,
      haddockVerbosity, installVerbosity, replVerbosity )
@@ -87,7 +87,7 @@ installManpage pkg lbi verbosity copy = 
   when have_manpage $
     copyFiles
       verbosity
-      (mandir (absoluteInstallDirs pkg lbi copy) </> "man1")
+      (prefix (absoluteInstallDirs pkg lbi copy) </> "man" </> "man1")
       [(buildDir lbi </> "darcs", "darcs.1")]
 
 -- ---------------------------------------------------------------------