Fix hsc2hs finding its template file on Windows
[ghc-hetmet.git] / utils / hsc2hs / hsc2hs.cabal
1 Name: hsc2hs
2 Version: 0.67
3 Copyright: 2000, Marcin Kowalczyk
4 Build-Depends: base, directory, process
5 License: BSD3
6 License-File: LICENSE
7 Author: Marcin Kowalczyk <qrczak@knm.org.pl>
8 Maintainer: cvs-fptools@haskell.org
9 Synopsis: A preprocessor that helps with writing Haskell bindings to C code
10 Description:
11         The hsc2hs program can be used to automate some parts of the
12         process of writing Haskell bindings to C code.  It reads an
13         almost-Haskell source file with embedded special constructs, and
14         outputs a real Haskell file with these constructs processed, based
15         on information taken from some C headers.  The extra constructs
16         provide Haskell counterparts of C types, values of C constants,
17         including sizes of C types, and access to fields of C structs.
18         .
19         For more details, see
20         http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html
21 Category: Development
22 Data-Files: template-hsc.h
23 build-type: Simple
24 cabal-version: >=1.2
25
26 Flag base3
27   Description: Choose the new smaller, split-up base package.
28
29 Executable hsc2hs
30     Main-Is: Main.hs
31     -- needed for ReadP (used by Data.Version)
32     Hugs-Options: -98
33     Extensions: CPP, ForeignFunctionInterface
34     if flag(base3)
35         Build-Depends: base       >= 3   && < 4,
36                        directory  >= 1   && < 1.1,
37                        process    >= 1   && < 1.1
38     else
39         Build-Depends: base < 3
40     Build-Depends: haskell98, Cabal
41