Gentoo Archives: gentoo-commits

From: "Aaron Swenson (titanofold)" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libpqxx: ChangeLog libpqxx-4.0.ebuild
Date: Mon, 28 Nov 2011 13:06:31
Message-Id: 20111128130619.EAAC92004B@flycatcher.gentoo.org
1 titanofold 11/11/28 13:06:19
2
3 Modified: ChangeLog
4 Added: libpqxx-4.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.11/cvs/Linux i686)
9
10 Revision Changes Path
11 1.74 dev-libs/libpqxx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpqxx/ChangeLog?rev=1.74&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpqxx/ChangeLog?rev=1.74&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpqxx/ChangeLog?r1=1.73&r2=1.74
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v
20 retrieving revision 1.73
21 retrieving revision 1.74
22 diff -u -r1.73 -r1.74
23 --- ChangeLog 27 Nov 2011 15:27:29 -0000 1.73
24 +++ ChangeLog 28 Nov 2011 13:06:19 -0000 1.74
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/libpqxx
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.73 2011/11/27 15:27:29 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.74 2011/11/28 13:06:19 titanofold Exp $
30 +
31 +*libpqxx-4.0 (28 Nov 2011)
32 +
33 + 28 Nov 2011; Aaron W. Swenson <titanofold@g.o> +libpqxx-4.0.ebuild:
34 + Version bump.
35
36 27 Nov 2011; Raúl Porcel <armin76@g.o> libpqxx-3.1-r2.ebuild:
37 alpha/ia64/sparc stable wrt #387081
38
39
40
41 1.1 dev-libs/libpqxx/libpqxx-4.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpqxx/libpqxx-4.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpqxx/libpqxx-4.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libpqxx-4.0.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-4.0.ebuild,v 1.1 2011/11/28 13:06:19 titanofold Exp $
51
52 EAPI="4"
53
54 inherit eutils
55
56 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
57
58 DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL."
59 SRC_URI="http://pqxx.org/download/software/${PN}/${P}.tar.gz"
60 HOMEPAGE="http://pqxx.org/development/libpqxx/"
61 LICENSE="BSD"
62 SLOT="0"
63 IUSE="doc"
64
65 DEPEND="dev-db/postgresql-base"
66 RDEPEND="${DEPEND}"
67
68 # src_test is interactive unless PGDATABASE and PGUSER is set either as an
69 # environment variable or in /etc/libpqxx_test_env
70 PROPERTIES="interactive"
71
72 src_configure() {
73 econf --enable-shared
74 }
75
76 src_install () {
77 emake DESTDIR="${D}" install
78
79 dodoc AUTHORS ChangeLog NEWS README*
80 use doc && dohtml -r doc/html/*
81 }
82
83 src_test() {
84 einfo "The tests need a running PostgreSQL server and an existing database."
85 einfo "Test requires PGDATABASE and PGUSER to be set at a minimum. Optionally,"
86 einfo "set PGPORT and PGHOST. Define them at the command line or in:"
87 einfo " ${EROOT%/}/etc/libpqxx_test_env"
88
89 if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
90 if [[ -f ${EROOT%/}/etc/libpqxx_test_env ]] ; then
91 source "${EROOT%/}/etc/libpqxx_test_env"
92 [[ -n $PGDATABASE ]] && export PGDATABASE
93 [[ -n $PGHOST ]] && export PGHOST
94 [[ -n $PGPORT ]] && export PGPORT
95 [[ -n $PGUSER ]] && export PGUSER
96 fi
97
98 # In case the file wasn't written properly or doesn't exist
99 if [[ -z $PGDATABASE || -z $PGUSER ]] ; then
100 echo -n "Database (Default: $(whoami)): "
101 read PGDATABASE
102 [[ -n $PGDATABASE ]] && export PGDATABASE
103 echo -n "Host (Default: Unix socket): "
104 read PGHOST
105 [[ -n $PGHOST ]] && export PGHOST
106 echo -n "Port (Default: 5432): "
107 read PGPORT
108 [[ -n $PGPORT ]] && export PGPORT
109 echo -n "User (Default: $(whoami)): "
110 read PGUSER
111 [[ -n $PGUSER ]] && export PGUSER
112 fi
113 fi
114
115 local server_version
116 server_version=$(psql -Aqtc 'SELECT version();' 2> /dev/null)
117 if [[ $? = 0 ]] ; then
118 # Currently works with highest server version in tree
119 # server_version=$(echo ${server_version} | cut -d " " -f 2 | cut -d "." -f -2 | tr -d .)
120 # if [[ $server_version < 92 ]] ; then
121 cd "${S}/test"
122 emake check
123 # else
124 # eerror "Server version must be 8.4.x or below."
125 # die "Server version isn't 8.4.x or below"
126 # fi
127 else
128 eerror "Is the server running?"
129 eerror "Verify role and database exist, and are permitted in pg_hba.conf for:"
130 eerror " Role: ${PGUSER}"
131 eerror " Database: ${PGDATABASE}"
132 die "Couldn't connect to server."
133 fi
134 }