[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best practice for data-files?



Hi,

Am Mittwoch, den 06.03.2013, 09:29 -0800 schrieb David Fox:
> Is there a standard place to put the files that are listed in the
> data-files section of a cabal files?  I've seen them put into a
> package named haskell-mylibrary-utils, so that is what cabal-debian
> does right now by default.

where have you seen this? There is haskell-debian-utils, but that does
not contain data files, but rather /programs/ that are
useful /independently/ of the Haskell library.

The common scheme is libghc-foo-data:
libghc-ekg-data - remote monitoring of Haskell processes over HTTP - common files
libghc-filestore-data - Haskell interface for versioning file stores - common files
libghc-citeproc-hs-data - Haskell support for Citation Style Language - data files

(At least) the latter has a nice setup where the library package
contains information about what data packages it needs:
$ cat /usr/lib/haskell-packages/ghc/lib/citeproc-hs-0.3.6/extra-packages
libghc-citeproc-hs-data (>= 0.3.6)

Due to static liking, this dependency has then to be added to programs
built with citeproc-hs, e.g. libghc-pandoc-dev. The system is not
perfected yet, but goes in the right direction.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: