# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
haskell.setup HOC 0.7-r${rev}
description A Haskell to Objective-C binding
long_description HOC is a Haskell to Objective-C binding. In \
a nutshell, it enables you to use Objective-C \
objects and frameworks from Haskell, and also \
enables you to write Objective-C objects in Haskell.
homepage https://code.google.com/p/hoc/
svn.url http://hoc.googlecode.com/svn/trunk/hoc
patchfiles patch-InterfaceGenerator2-Parser.hs.diff
reinplace "s:\"HOC-\" ++ fn ++ \"/\":\"${prefix}/share/HOC/\":" \
${worksrcpath}/InterfaceGenerator2/Main.hs
reinplace s:/usr/include/ffi:[exec pkg-config libffi --variable includedir]: \
reinplace "s:gcc -m32:${configure.cc} ${configure.cc_archflags}:" \
depends_build-append port:libffi \
depends_lib-append port:gmp \
configure.args-append --docdir=${prefix}/share/doc/${name} \
--extra-lib-dirs=${prefix}/lib \
--flags="BinaryInterfaces ObjCv2"