You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/pgadmin3/pgadmin3-1.20.0.ebuild

60 lines
1.4 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.20.0.ebuild,v 1.1 2015/02/15 08:37:19 patrick Exp $
EAPI="4"
WX_GTK_VER="2.8"
inherit 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:2.8[X,debug=]
>=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"
}
src_configure() {
econf --with-wx-version=2.8 \
$(use_enable debug) \
$(use_enable databasedesigner)
}
src_install() {
emake DESTDIR="${D}" install
newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png
# icon location for the desktop file provided in pkg folder
insinto /usr/share/pgadmin3
doins "${S}/pgadmin/include/images/pgAdmin3.png"
domenu "${S}/pkg/pgadmin3.desktop"
# Fixing world-writable files
fperms -R go-w /usr/share
}