summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2004-01-16 16:24:09 +0000
committerMasatomo Nakano <nakano@gentoo.org>2004-01-16 16:24:09 +0000
commit6f385de4f63569763aaebcd4bdf4a26e8b5dc7e3 (patch)
treea277e9f614d71e3cc9b9122edbded5ae0794abae /dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild
parentVersion bump. (diff)
downloadhistorical-6f385de4f63569763aaebcd4bdf4a26e8b5dc7e3.tar.gz
historical-6f385de4f63569763aaebcd4bdf4a26e8b5dc7e3.tar.bz2
historical-6f385de4f63569763aaebcd4bdf4a26e8b5dc7e3.zip
Moved category and renamed package name.
Diffstat (limited to 'dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild')
-rw-r--r--dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild b/dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild
new file mode 100644
index 000000000000..f23df25a6222
--- /dev/null
+++ b/dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/libpqpp-4.0-r2.ebuild,v 1.1 2004/01/16 16:24:09 nakano Exp $
+
+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="~x86"
+
+DEPEND="virtual/glibc >=dev-db/postgresql-7.3"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+}
+
+src_compile() {
+ cp Makefile Makefile.backup
+ sed -i "s|\$(POSTGRES_HOME)/lib|/usr/lib/postgresql|g" Makefile || die
+ sed -i "s|\$(POSTGRES_HOME)/include|/usr/include/postgresql|g" Makefile || die
+ emake || die
+ cp Makefile.backup Makefile
+}
+
+src_install() {
+ sed -i "s|\$(POSTGRES_HOME)/lib|${D}/usr/lib/postgresql|g" Makefile || die
+ sed -i "s|\$(POSTGRES_HOME)/include|${D}/usr/include/postgresql|g" Makefile || die
+ dodir /usr/lib/postgresql /usr/include/postgresql
+ einstall || die "Install failed"
+}