blob: afe02aa2d733ed750cf8042e0dde31aaacb0aa47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.14.0_beta1.ebuild,v 1.2 2011/07/11 17:30:22 scarabeus Exp $
EAPI=4
WX_GTK_VER="2.8"
MY_PV=${PV/_/-}
MY_P=${PN}-${MY_PV}
inherit autotools wxwidgets
DESCRIPTION="wxWidgets GUI for PostgreSQL."
HOMEPAGE="http://www.pgadmin.org/"
SRC_URI="mirror://postgresql/${PN}/release/v${MY_PV}/src/${MY_P}.tar.gz"
LICENSE="Artistic"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
SLOT="0"
IUSE="debug"
DEPEND="x11-libs/wxGTK:2.8[X]
>=dev-db/postgresql-base-8.4.0
>=dev-libs/libxml2-2.6.18
>=dev-libs/libxslt-1.1"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
pkg_pretend() {
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}/ssl-detect.patch"
eautoreconf
}
src_configure() {
econf \
--with-wx-version=2.8 \
$(use_enable debug)
}
src_install() {
default
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
}
|