|
1 |
| -Name: postgresql-libpq |
2 |
| -Version: 0.9.4.2 |
3 |
| -x-revision: 1 |
4 |
| -Synopsis: low-level binding to libpq |
5 |
| - |
6 |
| -Description: This is a binding to libpq: the C application |
7 |
| - programmer's interface to PostgreSQL. libpq is a |
8 |
| - set of library functions that allow client |
9 |
| - programs to pass queries to the PostgreSQL |
10 |
| - backend server and to receive the results of |
11 |
| - these queries. |
12 |
| - |
13 |
| -Homepage: https://github.com/phadej/postgresql-libpq |
14 |
| -License: BSD3 |
15 |
| -License-file: LICENSE |
16 |
| -Author: Grant Monroe, Leon P Smith, Joey Adams |
17 |
| -Maintainer: Oleg Grenrus <oleg.grenrus@iki.fi> |
18 |
| -Copyright: (c) 2010 Grant Monroe |
19 |
| - (c) 2011 Leon P Smith |
20 |
| -Category: Database |
21 |
| -Build-type: Custom |
22 |
| -Extra-source-files: cbits/noticehandlers.h |
23 |
| -Cabal-version: >=1.8 |
24 |
| -Tested-with: |
25 |
| - GHC==7.0.4, |
26 |
| - GHC==7.2.2, |
27 |
| - GHC==7.4.2, |
28 |
| - GHC==7.6.3, |
29 |
| - GHC==7.8.4, |
30 |
| - GHC==7.10.3, |
31 |
| - GHC==8.0.2, |
32 |
| - GHC==8.2.2, |
33 |
| - GHC==8.4.4, |
34 |
| - GHC==8.6.5, |
35 |
| - GHC==8.8.1 |
36 |
| - |
37 |
| -extra-source-files: |
38 |
| - CHANGELOG.md |
39 |
| - |
40 |
| -Custom-setup |
| 1 | +name: postgresql-libpq |
| 2 | +version: 0.9.4.2 |
| 3 | +x-revision: 1 |
| 4 | +synopsis: low-level binding to libpq |
| 5 | +description: |
| 6 | + This is a binding to libpq: the C application |
| 7 | + programmer's interface to PostgreSQL. libpq is a |
| 8 | + set of library functions that allow client |
| 9 | + programs to pass queries to the PostgreSQL |
| 10 | + backend server and to receive the results of |
| 11 | + these queries. |
| 12 | + |
| 13 | +homepage: https://github.com/phadej/postgresql-libpq |
| 14 | +license: BSD3 |
| 15 | +license-file: LICENSE |
| 16 | +author: Grant Monroe, Leon P Smith, Joey Adams |
| 17 | +maintainer: Oleg Grenrus <oleg.grenrus@iki.fi> |
| 18 | +copyright: |
| 19 | + (c) 2010 Grant Monroe |
| 20 | + (c) 2011 Leon P Smith |
| 21 | + |
| 22 | +category: Database |
| 23 | +build-type: Custom |
| 24 | +extra-source-files: cbits/noticehandlers.h |
| 25 | +cabal-version: >=1.8 |
| 26 | +tested-with: |
| 27 | + GHC ==7.0.4 |
| 28 | + || ==7.2.2 |
| 29 | + || ==7.4.2 |
| 30 | + || ==7.6.3 |
| 31 | + || ==7.8.4 |
| 32 | + || ==7.10.3 |
| 33 | + || ==8.0.2 |
| 34 | + || ==8.2.2 |
| 35 | + || ==8.4.4 |
| 36 | + || ==8.6.5 |
| 37 | + || ==8.8.1 |
| 38 | + |
| 39 | +extra-source-files: CHANGELOG.md |
| 40 | + |
| 41 | +custom-setup |
41 | 42 | setup-depends:
|
42 |
| - base >= 4.3 && <5, Cabal >= 1.10 && <3.1 |
| 43 | + base >=4.3 && <5 |
| 44 | + , Cabal >=1.10 && <3.1 |
43 | 45 |
|
44 | 46 | -- If true, use pkg-config, otherwise use the pg_config based build
|
45 | 47 | -- configuration
|
46 |
| -Flag use-pkg-config |
| 48 | +flag use-pkg-config |
47 | 49 | default: False
|
48 | 50 | manual: True
|
49 | 51 |
|
50 |
| -Library |
51 |
| - hs-source-dirs: src |
52 |
| - c-sources: cbits/noticehandlers.c |
53 |
| - include-dirs: cbits |
54 |
| - Exposed-modules: Database.PostgreSQL.LibPQ |
55 |
| - Database.PostgreSQL.LibPQ.Internal |
56 |
| - Build-depends: base >=4.3 && <4.14 |
57 |
| - , bytestring >=0.9.1.0 && <0.11 |
| 52 | +library |
| 53 | + hs-source-dirs: src |
| 54 | + c-sources: cbits/noticehandlers.c |
| 55 | + include-dirs: cbits |
| 56 | + exposed-modules: |
| 57 | + Database.PostgreSQL.LibPQ |
| 58 | + Database.PostgreSQL.LibPQ.Internal |
| 59 | + |
| 60 | + build-depends: |
| 61 | + base >=4.3 && <4.14 |
| 62 | + , bytestring >=0.9.1.0 && <0.11 |
58 | 63 |
|
59 | 64 | if !os(windows)
|
60 |
| - Build-depends: unix >=2.4.2.0 && <2.8 |
| 65 | + build-depends: unix >=2.4.2.0 && <2.8 |
61 | 66 |
|
62 | 67 | if os(windows)
|
63 |
| - Build-depends: Win32 >=2.2.0.2 && <2.7 |
| 68 | + build-depends: Win32 >=2.2.0.2 && <2.7 |
64 | 69 |
|
65 |
| - GHC-Options: -Wall |
| 70 | + ghc-options: -Wall |
66 | 71 |
|
67 | 72 | if flag(use-pkg-config)
|
68 |
| - Pkgconfig-depends: libpq >=9.3 |
| 73 | + pkgconfig-depends: libpq ==9.3 || >9.3 |
| 74 | + |
69 | 75 | else
|
70 | 76 | if os(windows)
|
71 | 77 | -- Due to https://sourceware.org/bugzilla/show_bug.cgi?id=22948,
|
72 | 78 | -- if we specify pq instead of libpq, then ld might link against
|
73 | 79 | -- libpq.dll directly, which can lead to segfaults. As a temporary hack,
|
74 | 80 | -- we force ld to link against the libpq.lib import library directly
|
75 | 81 | -- by specifying libpq here.
|
76 |
| - Extra-Libraries: libpq |
| 82 | + extra-libraries: libpq |
| 83 | + |
77 | 84 | else
|
78 |
| - Extra-Libraries: pq |
| 85 | + extra-libraries: pq |
| 86 | + |
79 | 87 | if os(openbsd)
|
80 |
| - Extra-Libraries: crypto ssl |
| 88 | + extra-libraries: |
| 89 | + crypto |
| 90 | + ssl |
81 | 91 |
|
82 | 92 | -- Other-modules:
|
83 |
| - Build-tools: hsc2hs |
| 93 | + build-tools: hsc2hs -any |
84 | 94 |
|
85 | 95 | test-suite smoke
|
86 | 96 | type: exitcode-stdio-1.0
|
87 | 97 | main-is: Smoke.hs
|
88 | 98 | hs-source-dirs: test
|
89 | 99 | build-depends:
|
90 |
| - base, |
91 |
| - bytestring, |
92 |
| - postgresql-libpq |
| 100 | + base |
| 101 | + , bytestring |
| 102 | + , postgresql-libpq |
93 | 103 |
|
94 | 104 | source-repository head
|
95 | 105 | type: git
|
|
0 commit comments