# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later DESCRIPTION="C++ wrapper for the libpq Postgresql library" HOMEPAGE="http://gborg.postgresql.org/" SRC_URI="ftp://gborg.postgresql.org/pub/libpqpp/stable/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="x86 ~ppc" RDEPEND=">=dev-db/postgresql-7.3" S=${WORKDIR}/${P} src_unpack(){ cd ${WORKDIR} unpack "${P}.tar.gz" einfo "${P}" } src_install() { cd ${S} sed "s|^POSTGRES_HOME=/usr/local/pgsql$|POSTGRES_HOME=/usr|g" Makefile > Makefile.new && mv Makefile.new Makefile emake sed "s|^POSTGRES_HOME=/usr$|POSTGRES_HOME=\${D}usr|g" Makefile > Makefile.new && mv Makefile.new Makefile sed "s|^\tln -s .*$|\tln -s \$(soname) \$(POSTGRES_HOME)/lib/\$(TARGET).so|g" Makefile > Makefile.new && mv Makefile.new Makefile mkdir -p ${D}/usr/{lib,include} einstall install || die "Install failed" }