kili a7359bc2e8 Hoogle is a Haskell API search engine, which allows you to search
many standard Haskell libraries by either function name, or by
approximate type signature.

There are still a lot of things left to improve for this port:

- Privilege dropping when running the server as root (difficult,
  because this should be better done in hs-warp). To be worked on
  with upstream.

- Add an rc.d script for the server.

- Remove unneded files after running "hoogle data ...". To be worked
  on with upstream.

- Integrate with our own hs-packages (so you can search in installed
  libraries only).

- Add usable documentation. To be done with upstream (currently,
  there's only some Wiki page).

- Use our ftp(1) instead of wget(1). (IIRC, the hoogle API contains
  some functions which pass options verbatim to wget(1), so this
  may be difficult to get right).


ok (with a hint about MODULES and WANTLIB) jasper@
2011-12-06 21:03:43 +00:00

48 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/12/06 21:03:43 kili Exp $
COMMENT = Haskell API search engine
DISTNAME = hoogle-4.2.7
CATEGORIES = devel
HOMEPAGE = http://www.haskell.org/hoogle/
MAINTAINER = Matthias Kilian <kili@openbsd.org>
# GPLv2, some files are MIT and/or BSD3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage haddock register
WANTLIB = c gmp m pthread util
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/hs-case-insensitive>=0.2,<0.3 \
devel/hs-cmdargs>=0.7,<0.8 \
devel/hs-safe \
devel/hs-binary \
devel/hs-parsec>=2.1 \
devel/hs-transformers>=0.2,<0.3 \
devel/hs-uniplate>=1.6,<1.7 \
lang/hs-haskell-src-exts>=1.9,<1.12 \
devel/hs-blaze-builder>=0.2,<0.4 \
devel/hs-enumerator>=0.4,<0.5 \
textproc/hs-tagsoup>=0.11,<0.13 \
www/hs-http-types>=0.6,<0.7 \
www/hs-wai>=0.4,<0.5 \
www/hs-warp>=0.4,<0.5 \
net/wget
HOOGLEDB = /var/db/hoogle
SUBST_VARS = HOOGLEDB
# Quick hack until I figure how to do this properly with cabal:
post-install:
ln -s ${HOOGLEDB} ${PREFIX}/share/hs-${DISTNAME}/databases
.include <bsd.port.mk>