Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2015 18:16:05 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381291 - in head/databases: . libpqtypes libpqtypes/files
Message-ID:  <201503141816.t2EIG5eR007781@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Mar 14 18:16:05 2015
New Revision: 381291
URL: https://svnweb.freebsd.org/changeset/ports/381291
QAT: https://qat.redports.org/buildarchive/r381291/

Log:
  libpqtypes is a libpq extension that offers a new way of handling parameterized
  queries and getting result field values. Both putting parameters and getting
  values use a printf/scanf style interface, with consistent specifiers for both.
  
  WWW: http://libpqtypes.esilo.com/
  
  PR:		196767
  Submitted by:	Dave Green <dg@fastmail.co.uk>

Added:
  head/databases/libpqtypes/
  head/databases/libpqtypes/Makefile   (contents, props changed)
  head/databases/libpqtypes/distinfo   (contents, props changed)
  head/databases/libpqtypes/files/
  head/databases/libpqtypes/files/patch-Makefile.am   (contents, props changed)
  head/databases/libpqtypes/files/patch-configure.ac   (contents, props changed)
  head/databases/libpqtypes/pkg-descr   (contents, props changed)
  head/databases/libpqtypes/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Sat Mar 14 17:48:29 2015	(r381290)
+++ head/databases/Makefile	Sat Mar 14 18:16:05 2015	(r381291)
@@ -147,6 +147,7 @@
     SUBDIR += libmongo-client
     SUBDIR += libodbc++
     SUBDIR += libpbl
+    SUBDIR += libpqtypes
     SUBDIR += libsdb
     SUBDIR += libzdb
     SUBDIR += linux-c6-sqlite3

Added: head/databases/libpqtypes/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/Makefile	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,21 @@
+# Created by: Dave Green <dg@fastmail.co.uk>
+# $FreeBSD$
+
+PORTNAME=	libpqtypes
+PORTVERSION=	1.5.1
+CATEGORIES=	databases
+MASTER_SITES=	http://pgfoundry.org/frs/download.php/3484/
+
+MAINTAINER=	dg@fastmail.co.uk
+COMMENT=	Extension to libpq parameter handling
+
+LICENSE=	BSD2CLAUSE
+
+USES=		gmake libtool pgsql autoreconf
+
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+
+INSTALL_TARGET=	install-strip
+
+.include <bsd.port.mk>

Added: head/databases/libpqtypes/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/distinfo	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,2 @@
+SHA256 (libpqtypes-1.5.1.tar.gz) = 8376d5b5ecd77453f8896d59a9bb96ecb6ac7ef9672c3ce9167740b6baf7ecfe
+SIZE (libpqtypes-1.5.1.tar.gz) = 411341

Added: head/databases/libpqtypes/files/patch-Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/files/patch-Makefile.am	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,9 @@
+--- Makefile.am.orig	2015-01-04 17:27:39.467515754 +0000
++++ Makefile.am	2015-01-04 17:28:01.265514225 +0000
+@@ -1,5 +1,5 @@
+ AM_LDFLAGS =
+-AUTOMAKE_OPTIONS = foreign
++AUTOMAKE_OPTIONS = foreign subdir-objects
+ @SET_MAKE@
+ 
+ srcfiles = src/array.c src/datetime.c src/error.c \

Added: head/databases/libpqtypes/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/files/patch-configure.ac	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,41 @@
+--- configure.ac.orig	2013-06-27 19:30:46.000000000 +0100
++++ configure.ac	2015-01-04 17:19:48.036548382 +0000
+@@ -5,7 +5,7 @@
+ AC_INIT(libpqtypes, 1.5.1, libpqtypes@esilo.com)
+ AC_CANONICAL_TARGET
+ AC_PROG_MAKE_SET
+-SET_MAKE="MAKE=make --no-print-directory"
++SET_MAKE="MAKE=gmake --no-print-directory"
+ AC_CONFIG_AUX_DIR([.])
+ AM_INIT_AUTOMAKE(libpqtypes,1.5.1)
+ AC_SUBST([LIBPQTYPES_SO_VERSION], [1:5:1])
+@@ -18,16 +18,15 @@
+ AC_PROG_CC
+ 
+ CPPFLAGS="$CPPFLAGS -Isrc"
+-if test "$CC" = "gcc" ; then
+ 	# always want reentrant funcs, not just thread-safe mode. -s
+-	CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char"
++	CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char -I/usr/local/include"
+ 
+ 	# gcc doesn't indicate an error for unknown options when they are
+ 	# not warning/feature options, -Wxxx or -fxxx.  We have to test manually.
+ 	cprog="int main(void){return 0;}"
+-	gcctest="gcc -x c -c - -o /dev/null"
++	gcctest="$CC -x c -c - -o /dev/null"
+ 
+-	AC_MSG_CHECKING(CFLAGS for gcc -std=gnu99...)
++	AC_MSG_CHECKING(CFLAGS for $CC -std=gnu99...)
+ 	result=`echo "$cprog" | $gcctest -std=gnu99 2>&1`
+ 	if test -z "$result" ; then
+ 		CFLAGS="$CFLAGS -std=gnu99"
+@@ -51,9 +50,6 @@
+ 	AX_CFLAGS_GCC_OPTION([-fno-strict-aliasing])
+ 	AX_CFLAGS_GCC_OPTION([-funroll-all-loops])
+ 	AX_CFLAGS_GCC_OPTION([-funit-at-a-time])
+-else
+-	AC_MSG_ERROR([Using $CC instead of gcc, currently not supported])
+-fi
+ 
+ # Each case has an example of what target_os contains
+ case ${target_os} in

Added: head/databases/libpqtypes/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/pkg-descr	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,5 @@
+libpqtypes is a libpq extension that offers a new way of handling parameterized
+queries and getting result field values. Both putting parameters and getting
+values use a printf/scanf style interface, with consistent specifiers for both. 
+
+WWW: http://libpqtypes.esilo.com/

Added: head/databases/libpqtypes/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libpqtypes/pkg-plist	Sat Mar 14 18:16:05 2015	(r381291)
@@ -0,0 +1,37 @@
+include/libpqtypes.h
+lib/libpqtypes.so
+lib/libpqtypes.so.0
+lib/libpqtypes.so.0.1.5
+man/man3/PQclearSpecs.3.gz
+man/man3/PQclearTypes.3.gz
+man/man3/PQexecf.3.gz
+man/man3/PQexecvf.3.gz
+man/man3/PQgetErrorField.3.gz
+man/man3/PQgeterror.3.gz
+man/man3/PQgetf.3.gz
+man/man3/PQgetvf.3.gz
+man/man3/PQinitTypes.3.gz
+man/man3/PQlocalTZInfo.3.gz
+man/man3/PQparamClear.3.gz
+man/man3/PQparamCount.3.gz
+man/man3/PQparamCreate.3.gz
+man/man3/PQparamExec.3.gz
+man/man3/PQparamExecPrepared.3.gz
+man/man3/PQparamReset.3.gz
+man/man3/PQparamSendQuery.3.gz
+man/man3/PQparamSendQueryPrepared.3.gz
+man/man3/PQputf.3.gz
+man/man3/PQputvf.3.gz
+man/man3/PQregisterComposites.3.gz
+man/man3/PQregisterResult.3.gz
+man/man3/PQregisterSubClasses.3.gz
+man/man3/PQregisterTypes.3.gz
+man/man3/PQregisterUserDefinedTypes.3.gz
+man/man3/PQsendf.3.gz
+man/man3/PQsendvf.3.gz
+man/man3/PQseterror.3.gz
+man/man3/PQspecPrepare.3.gz
+man/man3/PQtypesRegister.3.gz
+man/man3/pqt-composites.3.gz
+man/man3/pqt-handlers.3.gz
+man/man3/pqt-specs.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503141816.t2EIG5eR007781>