process.cabal 1.57 KB
Newer Older
1
name:         process
pcapriotti's avatar
pcapriotti committed
2
version:      1.1.0.2
3
4
5
license:      BSD3
license-file: LICENSE
maintainer:   libraries@haskell.org
6
bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/process
7
synopsis:     Process libraries
Ross Paterson's avatar
Ross Paterson committed
8
category:     System
9
description:
10
    This package contains libraries for dealing with system processes.
Ross Paterson's avatar
Ross Paterson committed
11
extra-source-files:
12
    aclocal.m4 configure.ac configure
Ross Paterson's avatar
Ross Paterson committed
13
    include/HsProcessConfig.h.in
14
extra-tmp-files:
15
16
17
    config.log config.status autom4te.cache
    include/HsProcessConfig.h
build-type:    Configure
Ian Lynagh's avatar
Ian Lynagh committed
18
cabal-version: >=1.6
Ian Lynagh's avatar
Ian Lynagh committed
19

20
source-repository head
21
22
    type:     git
    location: http://darcs.haskell.org/packages/process.git/
23

24
25
flag base4

Ian Lynagh's avatar
Ian Lynagh committed
26
Library {
27
28
  exposed-modules: System.Cmd
  if !impl(nhc98) {
Ian Lynagh's avatar
Ian Lynagh committed
29
    exposed-modules:
30
        System.Process
31
32
    if impl(ghc)
        exposed-modules:
33
          System.Process.Internals
Ian Lynagh's avatar
Ian Lynagh committed
34
35
36
37
38
39
40
    c-sources:
        cbits/runProcess.c
    include-dirs: include
    includes:
        runProcess.h
    install-includes:
        runProcess.h
41
        processFlags.h
Ian Lynagh's avatar
Ian Lynagh committed
42
        HsProcessConfig.h
43
44
45
46
    if os(windows)
        build-depends: Win32 >=2.2.0.0
        extra-libraries: kernel32
    else
Ian Lynagh's avatar
Ian Lynagh committed
47
        build-depends: unix
48
  }
49
50

  if (flag(base4)) {
Simon Marlow's avatar
Simon Marlow committed
51
     build-depends: base >= 4 && < 5
52
     cpp-options: -Dbase4
53
54
55
56
     -- later, we can use the new MIN_VERSION_base() stuff that
     -- arrived in Cabal-1.6.
  } else {
     build-depends: base >= 3 && < 4
57
     cpp-options: -Dbase3
58
59
  }

Ian Lynagh's avatar
Ian Lynagh committed
60
  build-depends: directory >= 1.0 && < 1.2,
pcapriotti's avatar
pcapriotti committed
61
                 filepath  >= 1.1 && < 1.4,
62
                 deepseq   >= 1.1 && < 1.4
63

64
  extensions: CPP
Ian Lynagh's avatar
Ian Lynagh committed
65
}