1 |
commit: 6d1da50b8257d38b280f9719ab9dbc2069884ce5 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 23 19:48:32 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 23 19:48:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d1da50b |
7 |
|
8 |
Revert "dev-db/pgadmin3: Remove last rites package" |
9 |
|
10 |
This reverts commit c27c8dfa1bc0dd1371ce9cd0a1383a44965b0dc9. |
11 |
|
12 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
13 |
|
14 |
dev-db/pgadmin3/Manifest | 1 + |
15 |
dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch | 15 ++++++++ |
16 |
.../files/pgadmin3-gcc6-null-pointer.patch | 11 ++++++ |
17 |
dev-db/pgadmin3/metadata.xml | 11 ++++++ |
18 |
dev-db/pgadmin3/pgadmin3-1.22.2.ebuild | 45 ++++++++++++++++++++++ |
19 |
profiles/package.mask | 6 +++ |
20 |
6 files changed, 89 insertions(+) |
21 |
|
22 |
diff --git a/dev-db/pgadmin3/Manifest b/dev-db/pgadmin3/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..618d2737428 |
25 |
--- /dev/null |
26 |
+++ b/dev-db/pgadmin3/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST pgadmin3-1.22.2.tar.gz 14788481 BLAKE2B fd38ae523bfc554138f56a99ee5fe0aaf2446d3b77416552861d4c3d3d939e553ee160264720af3095f91d270b6c719e078ec29b998c2f4a13739ed34c4c0312 SHA512 dcfc72cc2e33dbf1c9d1ce287f9d1d46eb047c99a165372cb74ef1716098f90f2ce2a8d0cd21b511a1ac8c0569dc7b3c0593208a74641f5a8f29dc9c04e40bbd |
29 |
|
30 |
diff --git a/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch b/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..64a599e00cd |
33 |
--- /dev/null |
34 |
+++ b/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch |
35 |
@@ -0,0 +1,15 @@ |
36 |
+diff -Naruw a/pkg/pgadmin3.desktop b/pkg/pgadmin3.desktop |
37 |
+--- a/pkg/pgadmin3.desktop 2013-02-22 12:21:19.000000000 -0500 |
38 |
++++ b/pkg/pgadmin3.desktop 2015-02-04 15:36:34.845312953 -0500 |
39 |
+@@ -2,9 +2,8 @@ |
40 |
+ Encoding=UTF-8 |
41 |
+ Name=pgAdmin III |
42 |
+ Exec=/usr/bin/pgadmin3 |
43 |
+-Icon=/usr/share/pgadmin3/pgAdmin3.png |
44 |
++Icon=/usr/share/pixmaps/pgadmin3.png |
45 |
+ Type=Application |
46 |
+-Categories=Application;Development; |
47 |
+-MimeType=text/html |
48 |
++Categories=Development; |
49 |
+ DocPath=/usr/share/pgadmin3/docs/en_US/index.html |
50 |
+ Comment=PostgreSQL Tools |
51 |
|
52 |
diff --git a/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch b/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch |
53 |
new file mode 100644 |
54 |
index 00000000000..1396f8de8aa |
55 |
--- /dev/null |
56 |
+++ b/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch |
57 |
@@ -0,0 +1,11 @@ |
58 |
+--- a/pgadmin/frm/plugins.cpp |
59 |
++++ b/pgadmin/frm/plugins.cpp |
60 |
+@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p |
61 |
+ { |
62 |
+ // If we need a specific server type, we can't enable unless |
63 |
+ // we have a connection. |
64 |
+- if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) |
65 |
++ if (!obj || !obj->GetConnection() || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) |
66 |
+ return false; |
67 |
+ |
68 |
+ // Get the server type. |
69 |
|
70 |
diff --git a/dev-db/pgadmin3/metadata.xml b/dev-db/pgadmin3/metadata.xml |
71 |
new file mode 100644 |
72 |
index 00000000000..7d8a73bc92c |
73 |
--- /dev/null |
74 |
+++ b/dev-db/pgadmin3/metadata.xml |
75 |
@@ -0,0 +1,11 @@ |
76 |
+<?xml version="1.0" encoding="UTF-8"?> |
77 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
78 |
+<pkgmetadata> |
79 |
+ <maintainer type="project"> |
80 |
+ <email>pgsql-bugs@g.o</email> |
81 |
+ <name>PostgreSQL and Related Package Development</name> |
82 |
+ </maintainer> |
83 |
+<use> |
84 |
+ <flag name="databasedesigner">Enable the Database Designer component</flag> |
85 |
+</use> |
86 |
+</pkgmetadata> |
87 |
|
88 |
diff --git a/dev-db/pgadmin3/pgadmin3-1.22.2.ebuild b/dev-db/pgadmin3/pgadmin3-1.22.2.ebuild |
89 |
new file mode 100644 |
90 |
index 00000000000..5498f4be6fd |
91 |
--- /dev/null |
92 |
+++ b/dev-db/pgadmin3/pgadmin3-1.22.2.ebuild |
93 |
@@ -0,0 +1,45 @@ |
94 |
+# Copyright 1999-2018 Gentoo Foundation |
95 |
+# Distributed under the terms of the GNU General Public License v2 |
96 |
+ |
97 |
+EAPI="6" |
98 |
+ |
99 |
+inherit eutils multilib versionator wxwidgets |
100 |
+ |
101 |
+DESCRIPTION="wxWidgets GUI for PostgreSQL" |
102 |
+HOMEPAGE="https://www.pgadmin.org/" |
103 |
+SRC_URI="mirror://postgresql/pgadmin/pgadmin3/v${PV}/src/${P}.tar.gz" |
104 |
+ |
105 |
+LICENSE="POSTGRESQL" |
106 |
+KEYWORDS="amd64 ppc x86 ~x86-fbsd" |
107 |
+SLOT="0" |
108 |
+IUSE="debug +databasedesigner" |
109 |
+ |
110 |
+DEPEND=" |
111 |
+ x11-libs/wxGTK:3.0=[X] |
112 |
+ >=dev-db/postgresql-8.4.0:= |
113 |
+ >=dev-libs/libxml2-2.6.18 |
114 |
+ >=dev-libs/libxslt-1.1" |
115 |
+RDEPEND="${DEPEND}" |
116 |
+ |
117 |
+PATCHES=( "${FILESDIR}"/pgadmin3-{desktop-r1,gcc6-null-pointer}.patch ) |
118 |
+ |
119 |
+src_configure() { |
120 |
+ WX_GTK_VER="3.0" |
121 |
+ |
122 |
+ setup-wxwidgets |
123 |
+ |
124 |
+ econf --with-wx-version=${WX_GTK_VER} \ |
125 |
+ $(use_enable debug) \ |
126 |
+ $(use_enable databasedesigner) |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ emake DESTDIR="${D}" install |
131 |
+ |
132 |
+ newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png |
133 |
+ |
134 |
+ domenu "${S}/pkg/pgadmin3.desktop" |
135 |
+ |
136 |
+ # Fixing world-writable files |
137 |
+ fperms -R go-w /usr/share |
138 |
+} |
139 |
|
140 |
diff --git a/profiles/package.mask b/profiles/package.mask |
141 |
index 65fac9ba71e..d0d70a949c7 100644 |
142 |
--- a/profiles/package.mask |
143 |
+++ b/profiles/package.mask |
144 |
@@ -169,6 +169,12 @@ net-voip/linphone |
145 |
net-libs/libeXosip |
146 |
net-libs/libosip |
147 |
|
148 |
+# Aaron W. Swenson <titanofold@g.o> (25 Oct 2018) |
149 |
+# Fails to build against up to date OpenSSL library (Bug 663966). No longer |
150 |
+# supported upstream. Use dev-db/pgadmin4. |
151 |
+# Masked for removal on 2018-11-24, bug #669650. |
152 |
+dev-db/pgadmin3 |
153 |
+ |
154 |
# Lars Wendler <polynomial-c@g.o> (22 Oct 2018) |
155 |
# Breaks dev-libs/gobject-introspection and its consumers |
156 |
# See #669278 |