blob: 6769135c6d6ff990143c25577cfc52b12cef9170 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.0.2.ebuild,v 1.9 2005/01/01 17:40:05 eradicator Exp $
IUSE=""
RESTRICT="nomirror"
DESCRIPTION="wxWindows GUI for PostgreSQL"
HOMEPAGE="http://www.pgadmin.org/"
SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 ppc sparc alpha amd64"
# Need 2.4.1-r1 for the extras in contrib
DEPEND=">=x11-libs/wxGTK-2.4.1-r1
|| ( >=dev-db/postgresql-7.3.5 >=dev-db/postgresql-7.4.1-r2 )
>=sys-apps/sed-4"
pkg_setup() {
if wx-config --cppflags | grep gtk2u >& /dev/null; then
einfo "${PN} will not build if wxGTK was compiled"
einfo "with unicode support. If you are using a version of"
einfo "wxGTK <= 2.4.2, you must set USE=-gtk2. In newer versions,"
einfo "you must set USE=-unicode."
die "wxGTK must be re-emerged without unicode suport"
fi
}
src_compile() {
LDFLAGS=-L/usr/lib/postgresql econf --with-pgsql-include=/usr/include/postgresql || die
cd ${S}/src
sed -i -e "s:^\(LIBS\).*:\1 = -lssl -lcrypto -lpq -lwx_gtk2-2.4 -lwx_gtk2_xrc-2.4 -lwx_gtk2_stc-2.4:" Makefile
cd ${S}
emake || die
}
src_install() {
einstall || die
}
|