blob: 989edade28f0af42856096737abbdb96350d4adb (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.10.2.ebuild,v 1.3 2010/07/05 20:18:58 patrick Exp $
EAPI="2"
WX_GTK_VER="2.8"
inherit wxwidgets eutils autotools
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
DESCRIPTION="wxWidgets GUI for PostgreSQL."
HOMEPAGE="http://www.pgadmin.org/"
SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
IUSE="debug"
DEPEND="x11-libs/wxGTK:2.8[X]
dev-db/postgresql-base
>=dev-libs/libxml2-2.5
>=dev-libs/libxslt-1.1"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/1.8.2-as_needed_ssl_detect_broken.patch"
eautoreconf
}
src_configure() {
econf \
--with-wx-version=2.8 \
$(use_enable debug)
}
src_install() {
emake DESTDIR="${D}" install || die "einstall failed"
insinto /usr/share/pixmaps
newins "${S}/pgadmin/include/images/elephant48.xpm" pgadmin3.xpm
insinto /usr/share/pgadmin3
newins "${S}/pgadmin/include/images/elephant48.xpm" pgadmin3.xpm
insinto /usr/share/applications
doins "${S}/pkg/pgadmin3.desktop"
# Fixing world-writable files
chmod -R go-w "${D}/usr/share"
}
|