forked from ezyang/ldap-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LDAP.cabal
86 lines (75 loc) · 2.14 KB
/
LDAP.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
cabal-version: >=1.8
Name: LDAP
Version: 0.6.10
License: BSD3
Maintainer: Edward Z. Yang <[email protected]>
Author: John Goerzen, Edward Z. Yang
Stability: Beta
Copyright: Copyright (c) 2005-2014 John Goerzen, Edward Z. Yang
homepage: https://github.com/ezyang/ldap-haskell
Category: Network
Synopsis: Haskell binding for C LDAP API
Description: This package provides LDAP interface code for Haskell programs,
binding to the C LDAP API.
license-file: COPYRIGHT
extra-source-files: COPYING
Build-Type: Simple
Flag buildtests
description: Build the executable to run unit tests
default: False
Library
-- C-Sources: glue/glue.c
Exposed-Modules: LDAP,
LDAP.Types,
LDAP.Init,
LDAP.Constants,
LDAP.Data,
LDAP.Exceptions,
LDAP.Search,
LDAP.Modify
Other-Modules: LDAP.Utils,
LDAP.TypesLL,
LDAP.Result
Build-Depends: base
build-depends: base >= 4 && <5,
bytestring
Extra-Libraries: ldap, lber
GHC-Options: -O2
-- CC-Options: -Iglue
if os(openbsd)
CC-Options: -DLDAP_X_PROXY_AUTHZ_FAILURE=LDAP_PROXY_AUTHZ_FAILURE
else
CC-Options: -DLDAP_DEPRECATED=1
Extensions: ForeignFunctionInterface, TypeSynonymInstances,
EmptyDataDecls, ScopedTypeVariables, CPP
Test-Suite test-ldap
type: exitcode-stdio-1.0
main-is: runtests.hs
Extra-Libraries: ldap, lber
build-depends: base >= 4 && < 5,
LDAP,
HUnit,
bytestring
if os(openbsd)
CC-Options: -DLDAP_X_PROXY_AUTHZ_FAILURE=LDAP_PROXY_AUTHZ_FAILURE
else
CC-Options: -DLDAP_DEPRECATED=1
GHC-Options: -O2
Extensions: ForeignFunctionInterface, TypeSynonymInstances,
EmptyDataDecls, ScopedTypeVariables, CPP
hs-source-dirs: testsrc, .
Executable runtests
if flag(buildtests)
Buildable: True
else
Buildable: False
Main-Is: runtests.hs
if os(openbsd)
CC-Options: -DLDAP_X_PROXY_AUTHZ_FAILURE=LDAP_PROXY_AUTHZ_FAILURE
else
CC-Options: -DLDAP_DEPRECATED=1
Extensions: ForeignFunctionInterface, TypeSynonymInstances,
EmptyDataDecls, ScopedTypeVariables, CPP
Hs-Source-Dirs: testsrc, .
GHC-Options: -O2
build-depends: base >= 4 && < 5