forked from mwotton/Hubris-Haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhubris.cabal
executable file
·52 lines (49 loc) · 2.55 KB
/
hubris.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name: hubris
Version: 0.0.3
Author: Mark Wotton
Maintainer: [email protected]
Build-Type: Simple
Cabal-Version: >=1.2
License: OtherLicense
License-File: LICENSE
Build-Type: Simple
Author: Mark Wotton <[email protected]>
Maintainer: Mark Wotton <[email protected]>
bug-reports: http://github.com/mwotton/Hubris-Haskell/issues
Category: Language
Stability: Experimental
extra-source-files:
Synopsis: Support library for Hubris, the Ruby <=> Haskell bridge
Description: Support library for Hubris, the Ruby to Haskell bridge
more info at <http://github.com/mwotton/Hubris-Haskell>
.
Anyway, this version strips the boilerplate that used to be necessary, and is intended to be used in conjunction with <http://github.com/mwotton/Hubris>.
Library
-- the ordering is critical, because Cabal doesn't do dependency analysis.
Exposed-Modules: Language.Ruby.Hubris.Binding, Language.Ruby.Hubris, Language.Ruby.Hubris.LibraryBuilder, Language.Ruby.Hubris.ZCode, Language.Ruby.Hubris.GHCBuild, Includes, Language.Ruby.Hubris.Arity
c-sources: cbits/rshim.c
-- includes: cbits/rshim.h
install-includes: cbits/rshim.h
include-dirs: cbits
cc-options: -U__BLOCKS__ -DHAVE_SNPRINTF
extra-libraries: ruby
-- a proper fix for this would involve autoconf and I'm not feeling up to it.
-- best to pass the args on the command line.
--extra-include-dirs=/opt/local/include/ruby-1.9.1/
--extra-lib-dirs: /opt/local/lib
extra-libraries: ruby
build-depends: ghc, Cabal>=1.7.4 && < 2.0, base, haskell98, containers, bytestring, array, mtl, old-time, ghc-paths, hint, HUnit
Executable Hubrify
Main-is: Hubrify.hs
Build-Depends: base >= 3 && < 5, ghc, Cabal>=1.7.4 && < 2.0, base, haskell98, containers, bytestring, array, mtl, old-time, ghc-paths, hint, process
Other-Modules: Language.Ruby.Hubris.Binding
c-sources: cbits/rshim.c
include-dirs: cbits
cc-options: -U__BLOCKS__ -DHAVE_SNPRINTF
extra-libraries: ruby
-- extra-libraries: ruby1.9
-- This is bad form, apparently, and if i include it, ./Setup dist cries big fat tears,
-- but you _really_ want a dynamic lib with Hubrify, or you'll get a truly
-- huge binary (may not even link, I had problems with the iconv dependency from HSbase)
-- anyway, pass "--ghc-options=-dynamic" to ./Setup configure, and you should be apples.
-- ghc-options: -dynamic