--- /usr/portage/dev-db/libpq/libpq-8.2.4.ebuild 2007-05-03 00:35:30.000000000 +0200 +++ libpq-8.2.4.ebuild 2007-08-21 21:35:17.000000000 +0200 @@ -13,7 +13,7 @@ threads? ( mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2 )" LICENSE="POSTGRESQL" SLOT="4" -IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib" +IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib ldap" RDEPEND="!<=dev-db/postgresql-8.1.4 kerberos? ( virtual/krb5 ) @@ -28,6 +28,8 @@ S="${WORKDIR}/postgresql-${PV}" +KRB5_CONFIG="/usr/bin/krb5-config" + pkg_preinst() { # Removing wrong symlink created by previous ebuild if [[ -L "${ROOT}/usr/include/libpq" ]] ; then @@ -50,6 +52,9 @@ cd "${S}" + append-ldflags -L`${KRB5_CONFIG} --libs |sed -e's/^-L\([^ ]*\)\($\| .*$\)/\1/'` + append-flags -I`${KRB5_CONFIG} --cflags |sed -e's/^-I\([^ ]*\)\($\| .*$\)/\1/'` + ./configure --prefix=/usr \ --includedir=/usr/include/postgresql/libpq-${SLOT} \ --sysconfdir=/etc/postgresql \ @@ -61,6 +66,7 @@ $(use_with kerberos krb5) \ $(use_enable nls ) \ $(use_with pam) \ + $(use_with ldap) \ --without-perl \ $(use_enable pg-intdatetime integer-datetimes ) \ --without-python \