summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2004-01-17 22:12:45 +0000
committerMasatomo Nakano <nakano@gentoo.org>2004-01-17 22:12:45 +0000
commit030084e44282cc6fb1ab25f2b118dd04cd93ecc8 (patch)
tree945c3768f35ef64fa90f7c517e5fd4bc1f8bdeb0 /dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild
parentSeparated cdrecord-prodvd in an ebuild by it's own (diff)
downloadhistorical-030084e44282cc6fb1ab25f2b118dd04cd93ecc8.tar.gz
historical-030084e44282cc6fb1ab25f2b118dd04cd93ecc8.tar.bz2
historical-030084e44282cc6fb1ab25f2b118dd04cd93ecc8.zip
Fixed library symlink.
Diffstat (limited to 'dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild')
-rw-r--r--dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild b/dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild
new file mode 100644
index 000000000000..343f78d437d5
--- /dev/null
+++ b/dev-cpp/libpqpp/libpqpp-4.0-r3.ebuild
@@ -0,0 +1,37 @@
+# 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-r3.ebuild,v 1.1 2004/01/17 22:12:37 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|ln -s \$(POSTGRES_HOME)/lib/|ln -s |" Makefile || die
+ sed -i "s|\$(POSTGRES_HOME)/lib|${D}/usr/lib/postgresql|" 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"
+}