--- /usr/portage/dev-db/postgresql/postgresql-7.4.5-r1.ebuild 2004-09-15 21:53:14.000000000 +0200 +++ /usr/local/portage/dev-db/postgresql/postgresql-7.4.5-r1.ebuild 2004-10-11 07:11:25.123884344 +0200 @@ -15,7 +15,7 @@ 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" +IUSE="ssl nls java python tcltk perl libg++ pam readline zlib doc pg-hier pg-vacuumdelay pg-intdatetime psqlonly" DEPEND="virtual/libc sys-devel/autoconf @@ -126,12 +126,16 @@ --with-maxbackends=${MAX_CONNECTIONS} \ $myconf || die + use psqlonly && { cd src/bin/psql && (make || die) && return; } + make || die cd contrib make || die } src_install() { + use psqlonly && { cd src/bin/psql && (make DESTDIR=${D} install || die) && cd ../../interfaces/libpq && (make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die) && return; } + if use perl; then mv ${S}/src/pl/plperl/Makefile ${S}/src/pl/plperl/Makefile_orig sed -e "s:(INST_DYNAMIC) /usr/lib:(INST_DYNAMIC) ${D}/usr/lib:" \