Ravenports generated: 02 Apr 2018 18:22
[ravenports.git] / bucket_BB / apq-pgsql
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               apq-pgsql
4 VERSION=                3.2.0
5 KEYWORDS=               databases ada
6 VARIANTS=               standard
7 SDESC[standard]=        APQ Ada95 MySQL database driver
8 HOMEPAGE=               https://bitbucket.org/kowframework/apq-postgresql
9 CONTACT=                John_Marino[draco@marino.st]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            FREELOCAL/marino
13 DISTFILE[1]=            apq-pgsql-3.2.0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          bash:primary:standard
21 BUILDRUN_DEPENDS=       apq-base:single:standard
22
23 USES=                   gprbuild pgsql:client,build
24
25 LICENSE=                GPLv2:single GMGPL:single
26 LICENSE_SCHEME=         multi
27 LICENSE_FILE=           GPLv2:{{WRKSRC}}/GMPGL_LICENSE
28                         GMGPL:{{WRKSRC}}/GMGPL_LICENSE
29
30 FPC_EQUIVALENT=         databases/apq-pgsql
31
32 MUST_CONFIGURE=         yes
33 CONFIGURE_ARGS=         --prefix={{PREFIX}}
34                         --disable-relocatable
35                         --work-path={{WRKDIR}}/build
36                         --processors={{MAKE_JOBS_NUMBER}}
37
38 post-patch:
39         ${RM} ${WRKSRC}/src/*.orig
40         ${REINPLACE_CMD} -e '/for Object_Dir/d' \
41                 ${WRKSRC}/src-in/apq-postgresql.gpr.in
42         ${REINPLACE_CMD} -e 's|processors=2|gprbuild_params="--autoconf=apq.cgpr"|' \
43                 ${WRKSRC}/configure
44         ${REINPLACE_CMD} -e 's|-ws|-ws --autoconf=dummy.cgpr|' \
45                 ${WRKSRC}/scripts/buildutil.sh
46
47 post-extract:
48         ${AWK} '/^$$/ {exit}; {print}' ${WRKSRC}/src/apq-postgresql-client.ads \
49                 > ${WRKDIR}/GMGPL_LICENSE
50
51 do-install:
52         ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
53                 ${STAGEDIR}${PREFIX}/lib/apq-postgresql/static \
54                 ${STAGEDIR}${PREFIX}/include/apq-postgresql
55         ${INSTALL_DATA} ${WRKDIR}/build/include/apq-postgresql/* \
56                 ${STAGEDIR}${PREFIX}/include/apq-postgresql
57         ${INSTALL_DATA} ${WRKDIR}/build/lib/apq-postgresql/static/*.a* \
58                 ${STAGEDIR}${PREFIX}/lib/apq-postgresql/static
59         ${INSTALL_DATA} ${WRKDIR}/build/lib/gnat/apq-postgresql.gpr \
60                 ${STAGEDIR}${PREFIX}/lib/gnat
61
62 [FILE:124:descriptions/desc.single]
63 APQ is a database interface library written in Ada95, and this package
64 contains the PostgreSQL driver that is used with it.
65
66
67 [FILE:102:distinfo]
68 b2bd6b1f3eaa26fe3abb88c1d8fb408e9fcfecc02c8732428bde2236dbcb2843        51553 apq-pgsql-3.2.0.tar.bz2
69
70
71 [FILE:360:manifests/plist.single]
72 include/apq-postgresql/
73  apq-postgresql-client.adb
74  apq-postgresql-client.ads
75  apq-postgresql-decimal.adb
76  apq-postgresql-decimal.ads
77  apq-postgresql.ads
78  decimal.h
79  notices.c
80  numeric.c
81  numeric.h
82  pgtypes.h
83 lib/apq-postgresql/static/
84  apq-postgresql-client.ali
85  apq-postgresql-decimal.ali
86  apq-postgresql.ali
87  libapq-postgresql.a
88 lib/gnat/apq-postgresql.gpr
89
90
91 [FILE:298:patches/patch-src_notices.c]
92 --- src/notices.c.orig  2012-04-26 16:10:18.000000000 -0500
93 +++ src/notices.c
94 @@ -31,6 +31,9 @@
95  #include <stdio.h>
96  #include <libpq-fe.h>
97  
98 +void notice_install (PGconn *, void *);
99 +void notice_uninstall (PGconn *);
100 +
101  /*
102   * Connection_Notify is an Ada procedure using C calling convention :
103   */
104
105
106 [FILE:185:patches/patch-src_numeric.c]
107 --- src/numeric.c.orig  2012-04-26 16:10:18.000000000 -0500
108 +++ src/numeric.c
109 @@ -30,6 +30,7 @@
110  
111  #include <stdlib.h>
112  #include <string.h>
113 +#include <ctype.h>
114  
115  #include "decimal.h"
116  
117