summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2012-01-29 15:28:48 +0000
committerAaron W. Swenson <titanofold@gentoo.org>2012-01-29 15:28:48 +0000
commit4f153d76f663781d4631b3a1a85464814a25209d (patch)
tree896ff069c131b1880af3d1e7c1b1fc50fdb900f2
parentalpha/ia64/sparc stable (diff)
downloadgentoo-2-4f153d76f663781d4631b3a1a85464814a25209d.tar.gz
gentoo-2-4f153d76f663781d4631b3a1a85464814a25209d.tar.bz2
gentoo-2-4f153d76f663781d4631b3a1a85464814a25209d.zip
Cleanup outdated ebuilds and patches. Fix bug 397407.
(Portage version: 2.1.10.41/cvs/Linux i686)
-rw-r--r--dev-libs/libpqxx/ChangeLog10
-rw-r--r--dev-libs/libpqxx/files/libpqxx-2.5.1-gentoo.patch79
-rw-r--r--dev-libs/libpqxx/files/libpqxx-3.1-gcc46.patch24
-rw-r--r--dev-libs/libpqxx/libpqxx-2.6.8.ebuild57
-rw-r--r--dev-libs/libpqxx/libpqxx-3.0.2.ebuild59
-rw-r--r--dev-libs/libpqxx/libpqxx-3.1-r2.ebuild88
-rw-r--r--dev-libs/libpqxx/libpqxx-3.1-r3.ebuild94
-rw-r--r--dev-libs/libpqxx/libpqxx-4.0-r1.ebuild72
8 files changed, 81 insertions, 402 deletions
diff --git a/dev-libs/libpqxx/ChangeLog b/dev-libs/libpqxx/ChangeLog
index 5d6bcf735647..3585339720b3 100644
--- a/dev-libs/libpqxx/ChangeLog
+++ b/dev-libs/libpqxx/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/libpqxx
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.78 2012/01/15 16:34:13 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.79 2012/01/29 15:28:47 titanofold Exp $
+
+*libpqxx-4.0-r1 (29 Jan 2012)
+
+ 29 Jan 2012; Aaron W. Swenson <titanofold@gentoo.org>
+ -files/libpqxx-2.5.1-gentoo.patch, -libpqxx-2.6.8.ebuild,
+ -libpqxx-3.0.2.ebuild, -libpqxx-3.1-r2.ebuild, -libpqxx-3.1-r3.ebuild,
+ -files/libpqxx-3.1-gcc46.patch, +libpqxx-4.0-r1.ebuild:
+ Cleanup outdated ebuilds and patches. Fix bug 397407.
15 Jan 2012; Raúl Porcel <armin76@gentoo.org> libpqxx-4.0.ebuild:
alpha/ia64/sparc stable wrt #396483
diff --git a/dev-libs/libpqxx/files/libpqxx-2.5.1-gentoo.patch b/dev-libs/libpqxx/files/libpqxx-2.5.1-gentoo.patch
deleted file mode 100644
index d7802ba875d3..000000000000
--- a/dev-libs/libpqxx/files/libpqxx-2.5.1-gentoo.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-diff -Naru libpqxx-2.5.1.org/configure libpqxx-2.5.1/configure
---- libpqxx-2.5.1.org/configure 2005-05-06 11:09:52.000000000 +0100
-+++ libpqxx-2.5.1/configure 2005-05-09 21:25:38.000000000 +0100
-@@ -20183,73 +20183,8 @@
- echo "$as_me:$LINENO: result: $cpp_pragma_message" >&5
- echo "${ECHO_T}$cpp_pragma_message" >&6
-
--# Find PostgreSQL includes and libraries
--for ac_prog in pg_config
--do
-- # Extract the first word of "$ac_prog", so it can be a program name with args.
--set dummy $ac_prog; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
--if test "${ac_cv_path_PG_CONFIG+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- case $PG_CONFIG in
-- [\\/]* | ?:[\\/]*)
-- ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
-- ;;
-- *)
-- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
--for as_dir in $PATH
--do
-- IFS=$as_save_IFS
-- test -z "$as_dir" && as_dir=.
-- for ac_exec_ext in '' $ac_executable_extensions; do
-- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-- ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
-- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-- break 2
-- fi
--done
--done
--
-- ;;
--esac
--fi
--PG_CONFIG=$ac_cv_path_PG_CONFIG
--
--if test -n "$PG_CONFIG"; then
-- echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
--echo "${ECHO_T}$PG_CONFIG" >&6
--else
-- echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
--fi
--
-- test -n "$PG_CONFIG" && break
--done
--
--if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
-- { { echo "$as_me:$LINENO: error:
--PostgreSQL configuration script pg_config not found. Make sure this is in your
--command path before configuring. Without it, the configure script has no way to
--find the right location for the libpq library and its headers.
--" >&5
--echo "$as_me: error:
--PostgreSQL configuration script pg_config not found. Make sure this is in your
--command path before configuring. Without it, the configure script has no way to
--find the right location for the libpq library and its headers.
--" >&2;}
-- { (exit 1); exit 1; }; }
--fi
--with_postgres_include=`$PG_CONFIG --includedir`
--{ echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5
--echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
--with_postgres_lib=`$PG_CONFIG --libdir`
--{ echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5
--echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
--
--
--
-+with_postgres_include=/usr/include/postgresql
-+with_postgres_lib=/usr/lib
- POSTGRES_LIB="-L${with_postgres_lib} -R${with_postgres_lib} -lpq"
-
- POSTGRES_INCLUDE="-I${with_postgres_include}"
diff --git a/dev-libs/libpqxx/files/libpqxx-3.1-gcc46.patch b/dev-libs/libpqxx/files/libpqxx-3.1-gcc46.patch
deleted file mode 100644
index 91cd5d24a5f1..000000000000
--- a/dev-libs/libpqxx/files/libpqxx-3.1-gcc46.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/include/pqxx/compiler-internal.hxx
-+++ b/include/pqxx/compiler-internal.hxx
-@@ -76,7 +76,7 @@
- namespace internal
- {
- /// Wrapper for std::distance; not all platforms have std::distance().
--template<typename T> inline ptrdiff_t distance(T first, T last)
-+template<typename T> inline PGSTD::ptrdiff_t distance(T first, T last)
- {
- #ifdef PQXX_HAVE_DISTANCE
- return PGSTD::distance(first, last);
---- a/test/unit/test_escape.cxx
-+++ b/test/unit/test_escape.cxx
-@@ -54,8 +54,8 @@
- PQXX_CHECK_EQUAL(t.quote("x"), "'x'", "Basic quote() fails.");
- PQXX_CHECK_EQUAL(t.quote(1), "'1'", "quote() not dealing with int properly.");
- PQXX_CHECK_EQUAL(t.quote(0), "'0'", "Quoting zero is a problem.");
-- const char *const nullptr = NULL;
-- PQXX_CHECK_EQUAL(t.quote(nullptr), "NULL", "Not quoting NULL correctly.");
-+ const char *const null_ptr = NULL;
-+ PQXX_CHECK_EQUAL(t.quote(null_ptr), "NULL", "Not quoting NULL correctly.");
- PQXX_CHECK_EQUAL(t.quote(string("'")), "''''", "Escaping quotes goes wrong.");
-
- PQXX_CHECK_EQUAL(t.quote("x"),
diff --git a/dev-libs/libpqxx/libpqxx-2.6.8.ebuild b/dev-libs/libpqxx/libpqxx-2.6.8.ebuild
deleted file mode 100644
index 973dfa623cfb..000000000000
--- a/dev-libs/libpqxx/libpqxx-2.6.8.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-2.6.8.ebuild,v 1.13 2011/04/16 11:00:47 titanofold Exp $
-
-inherit eutils
-
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-
-DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
-SRC_URI="ftp://thaiopensource.org/software/${PN}/${P}.tar.gz"
-HOMEPAGE="http://thaiopensource.org/development/libpqxx/"
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-db/postgresql-base"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # should be safe enough to remove the lines directly from configure,
- # since it's copied directly from configure.ac
- sed -i \
- -e 's/\(gcc_visibility\)=yes/\1=no/g' \
- -e 's@\(#define PQXX_HAVE_GCC_VISIBILITY 1\)@/* \1 */@g' \
- -e '/-Werror/d' \
- configure || die "sed failed"
-}
-
-src_compile() {
- econf --enable-shared || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install () {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- dodoc AUTHORS ChangeLog NEWS README* TODO
- dohtml -r doc/html/*
-}
-
-src_test() {
- ewarn "The tests need a running PostgreSQL server and an existing database!"
- ewarn "You can set the following environment variables to change the connection parameters:"
- ewarn "PGDATABASE (default: username, probably root)"
- ewarn "PGHOST (default: localhost)"
- ewarn "PGPORT (default: pg's UNIX domain-socket)"
- ewarn "PGUSER (default: username, probably root)"
- epause 10
-
- cd "${S}/test"
- # Working around a mysterious bug in gcc-4.1
- sed -i -e 's/-O2/-O1/' Makefile
- emake -j1 check || die "emake check failed"
-}
diff --git a/dev-libs/libpqxx/libpqxx-3.0.2.ebuild b/dev-libs/libpqxx/libpqxx-3.0.2.ebuild
deleted file mode 100644
index 8fbe61b98772..000000000000
--- a/dev-libs/libpqxx/libpqxx-3.0.2.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-3.0.2.ebuild,v 1.4 2011/04/16 11:00:47 titanofold Exp $
-
-EAPI="2"
-
-inherit eutils
-
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
-SRC_URI="http://pqxx.org/download/software/${PN}/${P}.tar.gz"
-HOMEPAGE="http://pqxx.org/development/libpqxx/"
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-db/postgresql-base"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
- # should be safe enough to remove the lines directly from configure,
- # since it's copied directly from configure.ac
- sed -i \
- -e 's/\(gcc_visibility\)=yes/\1=no/g' \
- -e 's@\(#define PQXX_HAVE_GCC_VISIBILITY 1\)@/* \1 */@g' \
- -e '/-Werror/d' \
- configure || die "sed failed"
-}
-
-src_configure() {
- econf --enable-shared || die "econf failed"
-}
-
-src_install () {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- dodoc AUTHORS ChangeLog NEWS README* TODO
- dohtml -r doc/html/*
-}
-
-src_test() {
- ewarn "The tests need a running PostgreSQL server and an existing database!"
- ewarn "You can set the following environment variables to change the connection parameters:"
- ewarn "PGDATABASE (default: username, probably root)"
- ewarn "PGHOST (default: localhost)"
- ewarn "PGPORT (default: pg's UNIX domain-socket)"
- ewarn "PGUSER (default: username, probably root)"
- epause 10
-
- if [[ -n ${PGDATABASE} ]] ; then
- cd "${S}/test"
- # Working around a mysterious bug in gcc-4.1
- sed -i -e 's/-O2/-O1/' Makefile
- emake -j1 check || die "emake check failed"
- else
- ewarn "Tests skipped since PGDATABASE is not defined or empty"
- fi
-}
diff --git a/dev-libs/libpqxx/libpqxx-3.1-r2.ebuild b/dev-libs/libpqxx/libpqxx-3.1-r2.ebuild
deleted file mode 100644
index 4bbd2daa5f60..000000000000
--- a/dev-libs/libpqxx/libpqxx-3.1-r2.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-3.1-r2.ebuild,v 1.5 2011/11/27 15:27:29 armin76 Exp $
-
-EAPI="4"
-
-inherit eutils
-
-KEYWORDS="alpha amd64 hppa ia64 ~ppc ~ppc64 sparc x86 ~x86-fbsd"
-
-DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
-SRC_URI="http://pqxx.org/download/software/${PN}/${P}.tar.gz"
-HOMEPAGE="http://pqxx.org/development/libpqxx/"
-LICENSE="BSD"
-SLOT="0"
-IUSE="doc"
-
-DEPEND="dev-db/postgresql-base"
-RDEPEND="${DEPEND}"
-
-PROPERTIES="interactive"
-
-src_configure() {
- econf --enable-shared
-}
-
-src_install () {
- emake DESTDIR="${D}" install
-
- dodoc AUTHORS ChangeLog NEWS README*
- use doc && dohtml -r doc/html/*
-}
-
-src_test() {
- ewarn "The tests need a running PostgreSQL server version 8.4.x or older"
- ewarn "and an existing database."
- ewarn "Test requires PGDATABASE and PGUSER to be set at a minimum."
- ewarn "Optionally, set PGPORT and PGHOST."
- ewarn "Define them at the command line or in:"
- ewarn " ${EROOT%/}/etc/libpqxx_test_env"
- ewarn "Make sure 'standard_conforming_strings' is set to off in postgresql.conf."
-
- if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
- if [[ -f ${EROOT%/}/etc/libpqxx_test_env ]] ; then
- source "${EROOT%/}/etc/libpqxx_test_env"
- [[ -n $PGDATABASE ]] && export PGDATABASE
- [[ -n $PGHOST ]] && export PGHOST
- [[ -n $PGPORT ]] && export PGPORT
- [[ -n $PGUSER ]] && export PGUSER
- fi
-
- # In case the file wasn't written properly or doesn't exist
- if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
- echo -n "Database (Default: $(whoami)): "
- read PGDATABASE
- [[ -n $PGDATABASE ]] && export PGDATABASE
- echo -n "Host (Default: Unix socket): "
- read PGHOST
- [[ -n $PGHOST ]] && export PGHOST
- echo -n "Port (Default: 5432): "
- read PGPORT
- [[ -n $PGPORT ]] && export PGPORT
- echo -n "User (Default: $(whoami)): "
- read PGUSER
- [[ -n $PGUSER ]] && export PGUSER
- fi
- fi
-
- local server_version
- server_version=$(psql -Aqwtc 'SELECT version();' 2> /dev/null)
- if [[ $? = 0 ]] ; then
- server_version=$(echo ${server_version} | cut -d " " -f 2 | cut -d "." -f -2 | tr -d .)
- if [[ $server_version < 90 ]] ; then
- cd "${S}/test"
- emake check
- else
- eerror "Server version must be 8.4.x or below."
- die "Server version isn't 8.4.x or below"
- fi
- else
- eerror "Is the server running?"
- eerror "Check that the role and database exist, and authentication method is set to"
- eerror "trust for:"
- eerror " Role: ${PGUSER}"
- eerror " Database: ${PGDATABASE}"
- die "Couldn't connect to server."
- fi
-}
diff --git a/dev-libs/libpqxx/libpqxx-3.1-r3.ebuild b/dev-libs/libpqxx/libpqxx-3.1-r3.ebuild
deleted file mode 100644
index 3b393138354f..000000000000
--- a/dev-libs/libpqxx/libpqxx-3.1-r3.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-3.1-r3.ebuild,v 1.1 2011/11/12 16:58:37 titanofold Exp $
-
-EAPI="4"
-
-inherit eutils
-
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
-SRC_URI="http://pqxx.org/download/software/${PN}/${P}.tar.gz"
-HOMEPAGE="http://pqxx.org/development/libpqxx/"
-LICENSE="BSD"
-SLOT="0"
-IUSE="doc"
-
-DEPEND="dev-db/postgresql-base"
-RDEPEND="${DEPEND}"
-
-# src_test is interactive unless PGDATABASE and PGUSER is set either as an
-# environment variable or in /etc/libpqxx_test_env
-PROPERTIES="interactive"
-
-src_prepare() {
- epatch "${FILESDIR}/libpqxx-3.1-gcc46.patch"
-}
-
-src_configure() {
- econf --enable-shared
-}
-
-src_install () {
- emake DESTDIR="${D}" install
-
- dodoc AUTHORS ChangeLog NEWS README*
- use doc && dohtml -r doc/html/*
-}
-
-src_test() {
- ewarn "The tests need a running PostgreSQL server version 8.4.x or older"
- ewarn "and an existing database."
- ewarn "Test requires PGDATABASE and PGUSER to be set at a minimum."
- ewarn "Optionally, set PGPORT and PGHOST."
- ewarn "Define them at the command line or in:"
- ewarn " ${EROOT%/}/etc/libpqxx_test_env"
- ewarn "Make sure 'standard_conforming_strings' is set to off in postgresql.conf."
-
- if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
- if [[ -f ${EROOT%/}/etc/libpqxx_test_env ]] ; then
- source "${EROOT%/}/etc/libpqxx_test_env"
- [[ -n $PGDATABASE ]] && export PGDATABASE
- [[ -n $PGHOST ]] && export PGHOST
- [[ -n $PGPORT ]] && export PGPORT
- [[ -n $PGUSER ]] && export PGUSER
- fi
-
- # In case the file wasn't written properly or doesn't exist
- if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
- echo -n "Database (Default: $(whoami)): "
- read PGDATABASE
- [[ -n $PGDATABASE ]] && export PGDATABASE
- echo -n "Host (Default: Unix socket): "
- read PGHOST
- [[ -n $PGHOST ]] && export PGHOST
- echo -n "Port (Default: 5432): "
- read PGPORT
- [[ -n $PGPORT ]] && export PGPORT
- echo -n "User (Default: $(whoami)): "
- read PGUSER
- [[ -n $PGUSER ]] && export PGUSER
- fi
- fi
-
- local server_version
- server_version=$(psql -Aqwtc 'SELECT version();' 2> /dev/null)
- if [[ $? = 0 ]] ; then
- server_version=$(echo ${server_version} | cut -d " " -f 2 | cut -d "." -f -2 | tr -d .)
- if [[ $server_version < 90 ]] ; then
- cd "${S}/test"
- emake check
- else
- eerror "Server version must be 8.4.x or below."
- die "Server version isn't 8.4.x or below"
- fi
- else
- eerror "Is the server running?"
- eerror "Check that the role and database exist, and authentication method is set to"
- eerror "trust for:"
- eerror " Role: ${PGUSER}"
- eerror " Database: ${PGDATABASE}"
- die "Couldn't connect to server."
- fi
-}
diff --git a/dev-libs/libpqxx/libpqxx-4.0-r1.ebuild b/dev-libs/libpqxx/libpqxx-4.0-r1.ebuild
new file mode 100644
index 000000000000..3d316d7b952a
--- /dev/null
+++ b/dev-libs/libpqxx/libpqxx-4.0-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-4.0-r1.ebuild,v 1.1 2012/01/29 15:28:47 titanofold Exp $
+
+EAPI="4"
+
+inherit eutils
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
+SRC_URI="http://pqxx.org/download/software/${PN}/${P}.tar.gz"
+HOMEPAGE="http://pqxx.org/development/libpqxx/"
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc"
+
+DEPEND="dev-db/postgresql-base"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf --enable-shared
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README*
+ use doc && dohtml -r doc/html/*
+}
+
+src_test() {
+ einfo "The tests need a running PostgreSQL server and an existing database."
+ einfo "Test requires PGDATABASE and PGUSER to be set at a minimum. Optionally,"
+ einfo "set PGPORT and PGHOST. Define them at the command line or in:"
+ einfo " ${EROOT%/}/etc/libpqxx_test_env"
+
+ if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
+ if [[ -f ${EROOT%/}/etc/libpqxx_test_env ]] ; then
+ source "${EROOT%/}/etc/libpqxx_test_env"
+ [[ -n $PGDATABASE ]] && export PGDATABASE
+ [[ -n $PGHOST ]] && export PGHOST
+ [[ -n $PGPORT ]] && export PGPORT
+ [[ -n $PGUSER ]] && export PGUSER
+ fi
+ fi
+
+ if [[ -n $PGDATABASE && -n $PGUSER ]] ; then
+ local server_version
+ server_version=$(psql -Aqtc 'SELECT version();' 2> /dev/null)
+ if [[ $? = 0 ]] ; then
+ # Currently works with highest server version in tree
+ #server_version=$(echo ${server_version} | cut -d " " -f 2 | cut -d "." -f -2 | tr -d .)
+ #if [[ $server_version < 92 ]] ; then
+ cd "${S}/test"
+ emake check
+ #else
+ # eerror "Server version must be 8.4.x or below."
+ # die "Server version isn't 8.4.x or below"
+ #fi
+ else
+ eerror "Is the server running?"
+ eerror "Verify role and database exist, and are permitted in pg_hba.conf for:"
+ eerror " Role: ${PGUSER}"
+ eerror " Database: ${PGDATABASE}"
+ die "Couldn't connect to server."
+ fi
+ else
+ eerror "PGDATABASE and PGUSER must be set to perform tests."
+ eerror "Skipping tests."
+ fi
+}