blob: 54a211a8e626f4e33edc21f4b86d73b601e04896 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/libpqpp-4.0-r5.ebuild,v 1.2 2005/04/13 20:06:33 eradicator Exp $
inherit eutils toolchain-funcs multilib
IUSE=""
MY_P=${P/pp/++}
DESCRIPTION="C++ wrapper for the libpq Postgresql library"
HOMEPAGE="http://gborg.postgresql.org/"
SRC_URI="ftp://gborg.postgresql.org/pub/libpqpp/stable/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~sparc ~x86"
DEPEND="virtual/libc >=dev-db/postgresql-7.3
>=sys-apps/sed-4"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
epatch ${FILESDIR}/${P}-Makefile.patch
}
src_compile() {
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)" || die
}
src_install() {
make DESTDIR="${D}" LIBDIR="$(get_libdir)" install || die
dodoc README CHANGES
}
|