> > From what I gathered the v2-install target is largely unusable for > > installing packages outside of .cabal tree. At least neither I nor > > FreeBSD maintainer found a way to leverage that. Hence the manual > > install flow. > > I probably don't know all the subtleties, but when I run > "cabal v2-install", I get a nice set of files under > ~/.cabal/ghc-XXX/git-annex-XXX, including the man pages and all three > needed binaries. I would guess that just copying those files to the > destination would do the trick for most cabal executable packages, but > I haven't actually tried it. Maybe it's better to be cautious.
I mean ~/.cabal/store/ghc-XXX/git-annex-XXX. Also forgot to mention the following git-annex patch (already reported upstream) is needed if anyone does want to experiment with using cabal v2-install to get git-annex man pages. diff --git a/Build/Mans.hs b/Build/Mans.hs index 9fb29d4a3..672dcd71c 100644 --- a/Build/Mans.hs +++ b/Build/Mans.hs @@ -38,7 +38,8 @@ buildMans = do if (Just srcm > destm) then do r <- system $ unwords - [ "./Build/mdwn2man" + [ "perl" + , "Build/mdwn2man" , progName src , "1" , src