summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2005-01-04 15:45:36 +0000
committerMasatomo Nakano <nakano@gentoo.org>2005-01-04 15:45:36 +0000
commitab7b3c12100b0dc150f8d3811d72283653522e41 (patch)
treee55f41a8616fbd93b5157debb9e7fe20ce7196f0 /dev-db
parentMarked stable on x86. (Manifest recommit) (diff)
downloadgentoo-2-ab7b3c12100b0dc150f8d3811d72283653522e41.tar.gz
gentoo-2-ab7b3c12100b0dc150f8d3811d72283653522e41.tar.bz2
gentoo-2-ab7b3c12100b0dc150f8d3811d72283653522e41.zip
added xml support
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/postgresql/ChangeLog5
-rw-r--r--dev-db/postgresql/postgresql-7.4.6.ebuild15
2 files changed, 16 insertions, 4 deletions
diff --git a/dev-db/postgresql/ChangeLog b/dev-db/postgresql/ChangeLog
index c1c270794312..cef7c1e0250b 100644
--- a/dev-db/postgresql/ChangeLog
+++ b/dev-db/postgresql/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-db/postgresql
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.165 2005/01/04 13:22:07 nakano Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.166 2005/01/04 15:45:36 nakano Exp $
+
+ 04 Jan 2005; Masatomo Nakano <nakano@gentoo.org> postgresql-7.4.6.ebuild:
+ Added xml support. (#75701)
*postgresql-8.0.0_rc3 (04 Jan 2005)
diff --git a/dev-db/postgresql/postgresql-7.4.6.ebuild b/dev-db/postgresql/postgresql-7.4.6.ebuild
index d7322d6da47a..f36dde768e42 100644
--- a/dev-db/postgresql/postgresql-7.4.6.ebuild
+++ b/dev-db/postgresql/postgresql-7.4.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.6.ebuild,v 1.8 2005/01/01 17:42:02 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.6.ebuild,v 1.9 2005/01/04 15:45:36 nakano Exp $
inherit eutils gnuconfig flag-o-matic java-pkg
@@ -15,7 +15,7 @@ SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2
LICENSE="POSTGRESQL"
SLOT="0"
KEYWORDS="x86 ~ppc sparc ~mips alpha ~arm hppa amd64 ~ia64 ~s390 ~ppc64"
-IUSE="ssl nls java python tcltk perl libg++ pam readline zlib doc pg-hier pg-vacuumdelay pg-intdatetime threads"
+IUSE="ssl nls java python tcltk perl libg++ pam readline zlib doc pg-hier pg-vacuumdelay pg-intdatetime threads xml2"
DEPEND="virtual/libc
sys-devel/autoconf
@@ -29,7 +29,8 @@ DEPEND="virtual/libc
java? ( >=virtual/jdk-1.3* >=dev-java/ant-1.3
dev-java/java-config )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
+ nls? ( sys-devel/gettext )
+ xml2? ( dev-libs/libxml2 dev-libs/libxslt )"
# java dep workaround for portage bug
# x86? ( java? ( =dev-java/sun-jdk-1.3* >=dev-java/ant-1.3 ) )
RDEPEND="virtual/libc
@@ -113,6 +114,8 @@ src_compile() {
# down, anything more aggressive fails (i.e. -mcpu or -Ox)
# Gerk - Nov 26, 2002
use ppc && CFLAGS="-pipe -fsigned-char"
+ use xml2 && CFLAGS="${CFLAGS} $(pkg-config --cflags libxml-2.0)"
+ use xml2 && LIBS="${LIBS} $(pkg-config --libs libxml-2.0)"
# Detect mips systems properly
gnuconfig_update
@@ -131,6 +134,9 @@ src_compile() {
make || die
cd contrib
make || die
+ if use xml2; then
+ make -C xml || die
+ fi
}
src_install() {
@@ -147,6 +153,9 @@ src_install() {
make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal install-all-headers || die
cd ${S}/contrib
make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
+ if use xml2; then
+ make -C xml DESTDIR=${D} IBDIR=${D}/usr/lib install || die
+ fi
cd ${S}
if use pg-hier; then
dodoc ${WORKDIR}/README-${P_HIERPG}.html || die