# Copyright 1999-2004 Gentoo Technologies, Inc. # 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.3 2004/01/17 15:08:27 nakano Exp $ IUSE="" S=${WORKDIR}/${P} DESCRIPTION="wxWindows GUI for PostgreSQL" HOMEPAGE="http://www.pgadmin.org/" SRC_URI="mirror://postgresql/pgadmin3/release/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-r1 >=dev-db/postgresql-7.4.1-r2 )" 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 }