diff options
Diffstat (limited to 'databases/apq-pgsql')
-rw-r--r-- | databases/apq-pgsql/Makefile | 48 | ||||
-rw-r--r-- | databases/apq-pgsql/distinfo | 2 | ||||
-rw-r--r-- | databases/apq-pgsql/files/patch-src_notices.c | 12 | ||||
-rw-r--r-- | databases/apq-pgsql/files/patch-src_numeric.c | 10 | ||||
-rw-r--r-- | databases/apq-pgsql/pkg-descr | 4 | ||||
-rw-r--r-- | databases/apq-pgsql/pkg-plist | 20 |
6 files changed, 96 insertions, 0 deletions
diff --git a/databases/apq-pgsql/Makefile b/databases/apq-pgsql/Makefile new file mode 100644 index 000000000000..b2cbd1db8975 --- /dev/null +++ b/databases/apq-pgsql/Makefile @@ -0,0 +1,48 @@ +# Created by: John Marino <marino@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= apq-pgsql +PORTVERSION= ${APQ_VERSION} +PORTREVISION= ${DRV_PGSQL_PR} +CATEGORIES= databases +MASTER_SITES= LOCAL/marino + +MAINTAINER= marino@FreeBSD.org +COMMENT= APQ Ada95 PostgreSQL database driver + +LICENSE= GPLv2 GMGPL +LICENSE_COMB= multi + +BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \ + gprbuild:${PORTSDIR}/devel/gprbuild \ + ${LOCALBASE}/lib/gnat/apq.gpr:${PORTSDIR}/databases/apq +RUN_DEPENDS= ${LOCALBASE}/lib/gnat/apq.gpr:${PORTSDIR}/databases/apq + +USES= ada tar:bzip2 +USE_PGSQL= yes +HAS_CONFIGURE= yes +WRKPATH= ${WRKDIR}/build +CONFIGURE_ARGS= --prefix=${PREFIX} \ + --disable-relocatable \ + --work-path=${WRKPATH} \ + --processors=${MAKE_JOBS_NUMBER} + +.include "${.CURDIR}/../apq/Makefile.version" + +post-patch: + ${RM} ${WRKSRC}/src/*.orig + @${REINPLACE_CMD} -e '/for Object_Dir/d' \ + ${WRKSRC}/src-in/apq-postgresql.gpr.in + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \ + ${STAGEDIR}${PREFIX}/lib/apq-postgresql/static \ + ${STAGEDIR}${PREFIX}/include/apq-postgresql + ${INSTALL_DATA} ${WRKPATH}/include/apq-postgresql/* \ + ${STAGEDIR}${PREFIX}/include/apq-postgresql + ${INSTALL_DATA} ${WRKPATH}/lib/apq-postgresql/static/*.a* \ + ${STAGEDIR}${PREFIX}/lib/apq-postgresql/static + ${INSTALL_DATA} ${WRKPATH}/lib/gnat/apq-postgresql.gpr \ + ${STAGEDIR}${PREFIX}/lib/gnat + +.include <bsd.port.mk> diff --git a/databases/apq-pgsql/distinfo b/databases/apq-pgsql/distinfo new file mode 100644 index 000000000000..487761539bd5 --- /dev/null +++ b/databases/apq-pgsql/distinfo @@ -0,0 +1,2 @@ +SHA256 (apq-pgsql-3.2.0.tar.bz2) = b2bd6b1f3eaa26fe3abb88c1d8fb408e9fcfecc02c8732428bde2236dbcb2843 +SIZE (apq-pgsql-3.2.0.tar.bz2) = 51553 diff --git a/databases/apq-pgsql/files/patch-src_notices.c b/databases/apq-pgsql/files/patch-src_notices.c new file mode 100644 index 000000000000..1a8a30e827f4 --- /dev/null +++ b/databases/apq-pgsql/files/patch-src_notices.c @@ -0,0 +1,12 @@ +--- src/notices.c.orig 2012-04-26 16:10:18.000000000 -0500 ++++ src/notices.c +@@ -31,6 +31,9 @@ + #include <stdio.h> + #include <libpq-fe.h> + ++void notice_install (PGconn *, void *); ++void notice_uninstall (PGconn *); ++ + /* + * Connection_Notify is an Ada procedure using C calling convention : + */ diff --git a/databases/apq-pgsql/files/patch-src_numeric.c b/databases/apq-pgsql/files/patch-src_numeric.c new file mode 100644 index 000000000000..b39dd16344f8 --- /dev/null +++ b/databases/apq-pgsql/files/patch-src_numeric.c @@ -0,0 +1,10 @@ +--- src/numeric.c.orig 2012-04-26 16:10:18.000000000 -0500 ++++ src/numeric.c +@@ -30,6 +30,7 @@ + + #include <stdlib.h> + #include <string.h> ++#include <ctype.h> + + #include "decimal.h" + diff --git a/databases/apq-pgsql/pkg-descr b/databases/apq-pgsql/pkg-descr new file mode 100644 index 000000000000..f821a16d91ba --- /dev/null +++ b/databases/apq-pgsql/pkg-descr @@ -0,0 +1,4 @@ +APQ is a database interface library written in Ada95, and this is the +PostgreSQL driver that is used with it. + +WWW: https://bitbucket.org/kowframework/apq-postgresql diff --git a/databases/apq-pgsql/pkg-plist b/databases/apq-pgsql/pkg-plist new file mode 100644 index 000000000000..6f3c0384c543 --- /dev/null +++ b/databases/apq-pgsql/pkg-plist @@ -0,0 +1,20 @@ +include/apq-postgresql/apq-postgresql-client.adb +include/apq-postgresql/apq-postgresql-client.ads +include/apq-postgresql/apq-postgresql-decimal.adb +include/apq-postgresql/apq-postgresql-decimal.ads +include/apq-postgresql/apq-postgresql.ads +include/apq-postgresql/apq-postgresql.ads-e +include/apq-postgresql/decimal.h +include/apq-postgresql/notices.c +include/apq-postgresql/numeric.c +include/apq-postgresql/numeric.h +include/apq-postgresql/pgtypes.h +lib/apq-postgresql/static/apq-postgresql-client.ali +lib/apq-postgresql/static/apq-postgresql-decimal.ali +lib/apq-postgresql/static/apq-postgresql.ali +lib/apq-postgresql/static/libapq-postgresql.a +lib/gnat/apq-postgresql.gpr +@dirrmtry lib/gnat +@dirrm lib/apq-postgresql/static +@dirrm lib/apq-postgresql +@dirrm include/apq-postgresql |