Hi, Am Donnerstag, den 11.06.2009, 08:59 -0300 schrieb Marco Túlio Gontijo e Silva: > > Recommending ghc-doc is probably ok. Also, recommending the -doc of any > > dependency could be useful (for the links). Bonus: Only depend on those > > that are actually linked to. > > The way I thought for doing this is searching with dpkg -S for a package > with the files linked. This would have to be done in > dh_haskell_depends, since dh_haskell_prep is called before build. One > problem of this is that dh_haskell_depends is a shell script, and > getting the links of a HTML file would be easier to do in Perl than in > shell. Do you know about some program that extract the links of a HTML > file, that could be used in dh_haskell_depends?
$ LANG=C lynx -dump -listonly /usr/share/doc/libghc6-xmonad-doc/html/XMonad-ManageHook.html|head -n 10 References 1. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/src/XMonad-ManageHook.html 2. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/index.html 3. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/doc-index.html 4. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/XMonad-ManageHook.html#v%3AliftX 5. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/XMonad-Core.html#t%3AX 6. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/XMonad-Core.html#t%3AQuery 7. file://localhost/usr/share/doc/libghc6-xmonad-doc/html/XMonad-ManageHook.html#v%3AidHook but there might be better tools. > (...) > > A versioning is useless for Suggests, I > > think. Also, I don’t think that people will need this Suggests at all. > > I think it's good to have the -dev package as a Suggests or Recommends > in the -doc package, since the -doc is, at first, not very useful > without the -dev. What do you think about unversioned Suggests in the > -dev package? > > Suggests: libghc6-package-dev I’m fine with that, as I don’t care too much :-) Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil