From 32afa037537822726c44a4bd505e0c598560286b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 9 Dec 2015 04:03:12 +0000 Subject: A build of pgadmin3 1.22.0 which supports PQ9.5 --- dev-db/pgadmin3/Manifest | 3 ++ dev-db/pgadmin3/files/pgadmin3-desktop.patch | 16 ++++++++ dev-db/pgadmin3/pgadmin3-1.22.0_beta1.ebuild | 61 ++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 dev-db/pgadmin3/Manifest create mode 100644 dev-db/pgadmin3/files/pgadmin3-desktop.patch create mode 100644 dev-db/pgadmin3/pgadmin3-1.22.0_beta1.ebuild diff --git a/dev-db/pgadmin3/Manifest b/dev-db/pgadmin3/Manifest new file mode 100644 index 0000000..89f78d9 --- /dev/null +++ b/dev-db/pgadmin3/Manifest @@ -0,0 +1,3 @@ +AUX pgadmin3-desktop.patch 533 SHA256 c0da2c8e45b5407f8c7421e92edf2f6d2902d69bc76aa1cce9e872d9a58f0819 SHA512 f36c3b3ce8dd384b32bf096de4ea95b3a7d63f82514512615f8e7cc3a0ac3f892390114ba65b66ebb69db1cce5415afd517941622cf2a6939a58d7792b362557 WHIRLPOOL b44a66c67f4037ae8aef7f47ec62ce40a30f2386fcc6dab8ef0eeef17b2b26e97e0988677b9b6c56cdec820112fb440413adfcfcf3ff0c092da1e84920dfd88a +DIST pgadmin3-1.22.0-beta1.tar.gz 14518519 SHA256 d5f04d8407215faedec7f67ff98d3b3a04c8530f9383a2cb3cb2e44b5ba88506 SHA512 3cc67ab89847de48456c9b2872061d65d36aa36a715ee393d6fd1f47101a2ebb3f6cc23bc8d0a304aa575aaa8a0e3923e5b13da80687abfdffe00c918440f427 WHIRLPOOL 68e9fd791a174b6a234e735c09a55d5195e3f955c31d76f2fd871ddfaa24cec2cb53837e300043d88a287c8357c47ea60b90bc61e5386f6912031bf973f4ad26 +EBUILD pgadmin3-1.22.0_beta1.ebuild 1391 SHA256 ecee841032d56625a08df71848cbe3da2432063ae77bebdfda0f6c083c28b18a SHA512 2ec12be20f9091f5b6c4c70db3787fa7a21d8fa4fe3a75674d7de73fbe981fefdc78a6f856af0cd87039b81d6eea20af26667da7d91eeb9b87fb25dc17afcd0b WHIRLPOOL 549e41573213a4154b0b5e61c1c88c283cf6756c9a81f70d00b1f07a9100139da84e78c1d135764761c4c26dda88a5a0cb4cbebfc2ea27458df162b605792e48 diff --git a/dev-db/pgadmin3/files/pgadmin3-desktop.patch b/dev-db/pgadmin3/files/pgadmin3-desktop.patch new file mode 100644 index 0000000..0453d8d --- /dev/null +++ b/dev-db/pgadmin3/files/pgadmin3-desktop.patch @@ -0,0 +1,16 @@ +diff -Naruw a/pkg/pgadmin3.desktop b/pkg/pgadmin3.desktop +--- a/pkg/pgadmin3.desktop 2013-02-22 12:21:19.000000000 -0500 ++++ b/pkg/pgadmin3.desktop 2015-02-04 15:36:34.845312953 -0500 +@@ -2,9 +2,9 @@ + Encoding=UTF-8 + Name=pgAdmin III + Exec=/usr/bin/pgadmin3 +-Icon=/usr/share/pgadmin3/pgAdmin3.png ++Icon=/usr/share/pixmaps/pgadmin3.png + Type=Application +-Categories=Application;Development; +-MimeType=text/html ++Categories=Development; ++MimeType=text/html; + DocPath=/usr/share/pgadmin3/docs/en_US/index.html + Comment=PostgreSQL Tools diff --git a/dev-db/pgadmin3/pgadmin3-1.22.0_beta1.ebuild b/dev-db/pgadmin3/pgadmin3-1.22.0_beta1.ebuild new file mode 100644 index 0000000..85256c4 --- /dev/null +++ b/dev-db/pgadmin3/pgadmin3-1.22.0_beta1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils multilib versionator wxwidgets + +DESCRIPTION="wxWidgets GUI for PostgreSQL" +HOMEPAGE="http://www.pgadmin.org/" +SRC_URI="mirror://postgresql/${PN}/release/v${PV/_/-}/src/${P/_/-}.tar.gz" + +LICENSE="POSTGRESQL" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="debug +databasedesigner" + +DEPEND="x11-libs/wxGTK:=[X,debug=] + >=dev-db/postgresql-8.4.0:= + >=dev-libs/libxml2-2.6.18 + >=dev-libs/libxslt-1.1" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${P/_/-} + +pkg_setup() { + local pgslot=$(postgresql-config show) + + if [[ ${pgslot//.} < 84 ]] ; then + eerror "PostgreSQL slot must be set to 8.4 or higher." + eerror " postgresql-config set 8.4" + die "PostgreSQL slot is not set to 8.4 or higher." + fi +} + +src_prepare() { + epatch "${FILESDIR}/pgadmin3-desktop.patch" + + epatch_user +} + +src_configure() { + WX_GTK_PV=$(best_version x11-libs/wxGTK[X,debug=]) + WX_GTK_VER=$(get_version_component_range 1-2 ${WX_GTK_PV#x11-libs/wxGTK-}) + + need-wxwidgets unicode + + econf --with-wx-version=${WX_GTK_VER} \ + $(use_enable debug) \ + $(use_enable databasedesigner) +} + +src_install() { + emake DESTDIR="${D}" install + + newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png + + domenu "${S}/pkg/pgadmin3.desktop" + + # Fixing world-writable files + fperms -R go-w /usr/share +} -- cgit v1.2.3