diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2016-05-17 07:01:38 -0400 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2016-05-17 07:01:38 -0400 |
commit | 5b269bde2f90f91549bf292abbea4843a95b6e94 (patch) | |
tree | 74e4c319d35440766e156623ee1f585991bd694f /dev-db | |
parent | dev-ml/ocurl: bump to 0.7.7 (diff) | |
download | gentoo-5b269bde2f90f91549bf292abbea4843a95b6e94.tar.gz gentoo-5b269bde2f90f91549bf292abbea4843a95b6e94.tar.bz2 gentoo-5b269bde2f90f91549bf292abbea4843a95b6e94.zip |
dev-db/pgadmin3: Fix build issues with x11-libs/wxGTK
Changed and fixed dependency to the 3.0 slot as older slots are going
away soon, and PgAdmin is currently incompatible with GTK+3.
Bug: 575270, 580090
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/pgadmin3/pgadmin3-1.22.1-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-db/pgadmin3/pgadmin3-1.22.1-r1.ebuild b/dev-db/pgadmin3/pgadmin3-1.22.1-r1.ebuild new file mode 100644 index 000000000000..6badfd090513 --- /dev/null +++ b/dev-db/pgadmin3/pgadmin3-1.22.1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 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:3.0=[X] + >=dev-db/postgresql-8.4.0:= + >=dev-libs/libxml2-2.6.18 + >=dev-libs/libxslt-1.1" +RDEPEND="${DEPEND}" + +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_VER="3.0" + + setup-wxwidgets + + 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 +} |