cvs commit: ports/archivers/hs-zip-archive Makefile distinfo pkg-descr pkg-plist ports/devel/hs-binary Makefile distinfo pkg-descr pkg-plist ports/devel/hs-darcs/files patch-Setup.lhs patch-darcs.cabal ports/devel/hs-darcs Makefile distinfo pkg-d

Gabor PALI pgj at FreeBSD.org
Sat May 29 02:28:32 UTC 2010


On 05/28/10 05:49, Alexey Dokuchaev wrote:
>> - Create a devel/darcs port which contains everything but Haskell
>> libraries and the Haskell API documentation. If somebody wants to use
>> darcs as an end-user application and not a module, this must be fine.
>>
>> - Keep the devel/hs-darcs port as a Haskell binding to devel/darcs
>> (itself) with a dependency on devel/darcs. This way the user (or a
>> dependent port) has both the application and its modules.
>
> Sounds interesting, probably this is nice way to go. May I see patches
> when you have them? Want to take a look to see the details of
> implementation, and possibly comment on them.

I created the split ports [1] for darcs.  It seems to be nice:
devel/darcs is just a slave port of devel/hs-darcs, while hs-darcs
depends on darcs.  The price is that we need to build darcs twice when
installing hs-darcs (which is reasonable since we use the very same
sources to build an executable and a library).  I also need to face
another problem (which is solved but I am not sure about its
correctness): We should take care of the possibility of name clashes in
${PREFIX}/share, so I prefixed it with "hs-" for hs-darcs (but not for
darcs).  I would do the same for all the other Cabal ports.

I needed to improve "bsd.cabal.mk" to support all the stuff, but is okay
(but not tested exhaustively).  I would also like to add the end-user
documentation to devel/darcs, since it is missing from the Cabalized
version at the moment.


> If you mean that it is not immediately obvious how to
> separate `x11-wm/xmonad' frontend port from `x11-wm/hs-xmonad' (rather
> Haskell than user related), I'm sure there is acceptable solution.

The next step is xmonad :)  I am quite optimistic.


Cheers,
:g


[1] http://people.freebsd.org/~pgj/haskell/split-darcs/ports/



More information about the cvs-ports mailing list