1 |
commit: 878686c26fe0112a9aa73953dc8595bf1f8bd65f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 11 08:41:23 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 11 15:11:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=878686c2 |
7 |
|
8 |
dev-db/pgadmin3: Drop obsolete pgslot check, drop bogus html mimetype |
9 |
|
10 |
pgadmin3 is not a webbrowser, and opening html is unsuccessful. |
11 |
Dropped unused eclasses. |
12 |
Bumped to EAPI 6. |
13 |
|
14 |
Gentoo-bug: 626812 |
15 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
16 |
|
17 |
dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch | 15 +++++++++ |
18 |
dev-db/pgadmin3/pgadmin3-1.22.1-r2.ebuild | 45 +++++++++++++++++++++++++ |
19 |
2 files changed, 60 insertions(+) |
20 |
|
21 |
diff --git a/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch b/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..64a599e00cd |
24 |
--- /dev/null |
25 |
+++ b/dev-db/pgadmin3/files/pgadmin3-desktop-r1.patch |
26 |
@@ -0,0 +1,15 @@ |
27 |
+diff -Naruw a/pkg/pgadmin3.desktop b/pkg/pgadmin3.desktop |
28 |
+--- a/pkg/pgadmin3.desktop 2013-02-22 12:21:19.000000000 -0500 |
29 |
++++ b/pkg/pgadmin3.desktop 2015-02-04 15:36:34.845312953 -0500 |
30 |
+@@ -2,9 +2,8 @@ |
31 |
+ Encoding=UTF-8 |
32 |
+ Name=pgAdmin III |
33 |
+ Exec=/usr/bin/pgadmin3 |
34 |
+-Icon=/usr/share/pgadmin3/pgAdmin3.png |
35 |
++Icon=/usr/share/pixmaps/pgadmin3.png |
36 |
+ Type=Application |
37 |
+-Categories=Application;Development; |
38 |
+-MimeType=text/html |
39 |
++Categories=Development; |
40 |
+ DocPath=/usr/share/pgadmin3/docs/en_US/index.html |
41 |
+ Comment=PostgreSQL Tools |
42 |
|
43 |
diff --git a/dev-db/pgadmin3/pgadmin3-1.22.1-r2.ebuild b/dev-db/pgadmin3/pgadmin3-1.22.1-r2.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..27d932986e3 |
46 |
--- /dev/null |
47 |
+++ b/dev-db/pgadmin3/pgadmin3-1.22.1-r2.ebuild |
48 |
@@ -0,0 +1,45 @@ |
49 |
+# Copyright 1999-2017 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI="6" |
53 |
+ |
54 |
+inherit eutils wxwidgets |
55 |
+ |
56 |
+DESCRIPTION="wxWidgets GUI for PostgreSQL" |
57 |
+HOMEPAGE="https://www.pgadmin.org/" |
58 |
+SRC_URI="mirror://postgresql/${PN}/release/v${PV}/src/${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="POSTGRESQL" |
61 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
62 |
+SLOT="0" |
63 |
+IUSE="debug +databasedesigner" |
64 |
+ |
65 |
+DEPEND=" |
66 |
+ >=dev-db/postgresql-8.4.0:= |
67 |
+ >=dev-libs/libxml2-2.6.18 |
68 |
+ >=dev-libs/libxslt-1.1 |
69 |
+ x11-libs/wxGTK:3.0=[X]" |
70 |
+RDEPEND="${DEPEND}" |
71 |
+ |
72 |
+PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" ) |
73 |
+ |
74 |
+src_configure() { |
75 |
+ WX_GTK_VER="3.0" |
76 |
+ |
77 |
+ setup-wxwidgets |
78 |
+ |
79 |
+ econf --with-wx-version=${WX_GTK_VER} \ |
80 |
+ $(use_enable debug) \ |
81 |
+ $(use_enable databasedesigner) |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ default |
86 |
+ |
87 |
+ newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png |
88 |
+ |
89 |
+ domenu "${S}/pkg/pgadmin3.desktop" |
90 |
+ |
91 |
+ # Fixing world-writable files |
92 |
+ fperms -R go-w /usr/share |
93 |
+} |