1 |
commit: 34059e350be41038f98967e1112c3205c352c0d2 |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 30 04:27:03 2020 +0000 |
4 |
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 30 04:27:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34059e35 |
7 |
|
8 |
dev-libs/libpqxx: Bump to 7.1.2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/697548 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.23 |
12 |
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libpqxx/Manifest | 1 + |
15 |
dev-libs/libpqxx/libpqxx-7.1.2.ebuild | 78 +++++++++++++++++++++++++++++++++++ |
16 |
dev-libs/libpqxx/metadata.xml | 21 +++++----- |
17 |
3 files changed, 89 insertions(+), 11 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/libpqxx/Manifest b/dev-libs/libpqxx/Manifest |
20 |
index 5c138ba7ab3..511e2fd88f7 100644 |
21 |
--- a/dev-libs/libpqxx/Manifest |
22 |
+++ b/dev-libs/libpqxx/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST libpqxx-6.4.5.tar.gz 715081 BLAKE2B 4f1356dc5fc9baddd8fdea6095541f4d90657ef0211edec7796ddd3693933b8d37d5bb14e19249a2e4627b85aef11c582b0ffac0226c8e99a70af1d2b0396e5c SHA512 b6f79c4af93876eaf859626c2deae3b23bd4fa1a438390bc01513ccc48b90565d59588f6977e7475bb7b8dbeb8b1c8ef2a4737d8eb4d15682531fbf78590ed5e |
25 |
+DIST libpqxx-7.1.2.tar.gz 693152 BLAKE2B da28d0041fc345eb7774eadf0a886e2a89692ac47d870120991aa97328a6be7d10e8cb2d6deb9e056dc7e05b04fd317d9d0fe4dcf8eab901114b27cd64bf4ff6 SHA512 a4a76c62f6115f5898e4c4bb1c6f095284bdb7ae6a1efa45add9efd422d2a8280d1698caa2469acbb087168208ae0fd8efa36c8735a8ce30e58853e27acd4161 |
26 |
|
27 |
diff --git a/dev-libs/libpqxx/libpqxx-7.1.2.ebuild b/dev-libs/libpqxx/libpqxx-7.1.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..1ce7f1510f3 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libpqxx/libpqxx-7.1.2.ebuild |
32 |
@@ -0,0 +1,78 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6..9} ) |
39 |
+inherit python-any-r1 |
40 |
+ |
41 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
42 |
+ |
43 |
+DESCRIPTION="Standard front-end for writing C++ programs that use PostgreSQL" |
44 |
+SRC_URI="https://github.com/jtv/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+HOMEPAGE="http://pqxx.org/development/libpqxx/" |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+IUSE="doc static-libs" |
49 |
+ |
50 |
+RDEPEND="dev-db/postgresql:=" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ ${PYTHON_DEPS} |
53 |
+ doc? ( |
54 |
+ app-doc/doxygen |
55 |
+ app-text/xmlto |
56 |
+ ) |
57 |
+" |
58 |
+ |
59 |
+DOCS=( AUTHORS NEWS README{.md,-UPGRADE} ) |
60 |
+ |
61 |
+src_configure() { |
62 |
+ econf \ |
63 |
+ --enable-shared \ |
64 |
+ $(use_enable doc documentation) \ |
65 |
+ $(use_enable static-libs static) |
66 |
+} |
67 |
+ |
68 |
+src_test() { |
69 |
+ einfo "The tests need a running PostgreSQL server and an existing database." |
70 |
+ einfo "Test requires PGDATABASE and PGUSER to be set at a minimum. Optionally," |
71 |
+ einfo "set PGPORT and PGHOST. Define them at the command line or in:" |
72 |
+ einfo " ${EROOT}/etc/libpqxx_test_env" |
73 |
+ |
74 |
+ if [[ -z $PGDATABASE || -z $PGUSER ]] ; then |
75 |
+ if [[ -f ${EROOT}/etc/libpqxx_test_env ]] ; then |
76 |
+ source "${EROOT}/etc/libpqxx_test_env" |
77 |
+ [[ -n $PGDATABASE ]] && export PGDATABASE |
78 |
+ [[ -n $PGHOST ]] && export PGHOST |
79 |
+ [[ -n $PGPORT ]] && export PGPORT |
80 |
+ [[ -n $PGUSER ]] && export PGUSER |
81 |
+ fi |
82 |
+ fi |
83 |
+ |
84 |
+ if [[ -n $PGDATABASE && -n $PGUSER ]] ; then |
85 |
+ local server_version |
86 |
+ server_version=$(psql -Aqtc 'SELECT version();' 2> /dev/null) |
87 |
+ if [[ $? = 0 ]] ; then |
88 |
+ cd "${S}/test" || die |
89 |
+ emake check |
90 |
+ else |
91 |
+ eerror "Is the server running?" |
92 |
+ eerror "Verify role and database exist, and are permitted in pg_hba.conf for:" |
93 |
+ eerror " Role: ${PGUSER}" |
94 |
+ eerror " Database: ${PGDATABASE}" |
95 |
+ die "Couldn't connect to server." |
96 |
+ fi |
97 |
+ else |
98 |
+ eerror "PGDATABASE and PGUSER must be set to perform tests." |
99 |
+ eerror "Skipping tests." |
100 |
+ fi |
101 |
+} |
102 |
+ |
103 |
+src_install () { |
104 |
+ use doc && HTML_DOCS=( doc/html/. ) |
105 |
+ default |
106 |
+ |
107 |
+ if ! use static-libs; then |
108 |
+ find "${D}" -name '*.la' -delete || die |
109 |
+ fi |
110 |
+} |
111 |
|
112 |
diff --git a/dev-libs/libpqxx/metadata.xml b/dev-libs/libpqxx/metadata.xml |
113 |
index 7a7404b989e..488d8965cfe 100644 |
114 |
--- a/dev-libs/libpqxx/metadata.xml |
115 |
+++ b/dev-libs/libpqxx/metadata.xml |
116 |
@@ -1,15 +1,14 @@ |
117 |
<?xml version="1.0" encoding="UTF-8"?> |
118 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
119 |
<pkgmetadata> |
120 |
- <maintainer type="project"> |
121 |
- <email>pgsql-bugs@g.o</email> |
122 |
- <name>PostgreSQL and Related Package Development</name> |
123 |
- </maintainer> |
124 |
- <longdescription> |
125 |
- libpqxx is the official C++ client API for PostgreSQL. If you are |
126 |
- writing software in C++ that needs to access databases managed by |
127 |
- Postgres — on just about any platform — then libpqxx is the |
128 |
- library you use. Supersedes the now defunct libpq++ (AKA, libpqpp) |
129 |
- API. |
130 |
- </longdescription> |
131 |
+ <maintainer type="project"> |
132 |
+ <email>pgsql-bugs@g.o</email> |
133 |
+ <name>PostgreSQL and Related Package Development</name> |
134 |
+ </maintainer> |
135 |
+ <longdescription> |
136 |
+ libpqxx is the official C++ client API for PostgreSQL. If you are writing |
137 |
+ software in C++ that needs to access databases managed by Postgres — on just |
138 |
+ about any platform — then libpqxx is the library you use. Supersedes the now |
139 |
+ defunct libpq++ (AKA, libpqpp) API. |
140 |
+ </longdescription> |
141 |
</pkgmetadata> |