X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=blobdiff_plain;f=app-admin%2Feselect-postgresql%2Feselect-postgresql-1.2.1.ebuild;h=abc5d8bc32e4d5af495e72bcfecc9f03b71142d8;hp=4a437415a5241459202fd99dcdc0c64f8a4782fe;hb=53f167009f899efa706e1eb55c8be1b984972cf6;hpb=3f63d5013148676cf447da72f6049810dcdbd419 diff --git a/app-admin/eselect-postgresql/eselect-postgresql-1.2.1.ebuild b/app-admin/eselect-postgresql/eselect-postgresql-1.2.1.ebuild index 4a43741..abc5d8b 100644 --- a/app-admin/eselect-postgresql/eselect-postgresql-1.2.1.ebuild +++ b/app-admin/eselect-postgresql/eselect-postgresql-1.2.1.ebuild @@ -4,6 +4,8 @@ EAPI="5" +inherit multilib + DESCRIPTION="Utility to select the default PostgreSQL slot" HOMEPAGE="http://www.gentoo.org/" SRC_URI="http://dev.gentoo.org/~titanofold/${P}.tbz2" @@ -21,6 +23,14 @@ src_install() { doins postgresql.eselect dosym /usr/bin/eselect /usr/bin/postgresql-config + + # Create an env.d file that will append the currently-selected + # Postgres's pkgconfig path to the PKG_CONFIG_PATH environment + # variable. See bug #512236. + local pcp="${EPREFIX}/usr/$(get_libdir)/postgresql/pkgconfig" + echo "PKG_CONFIG_PATH=\"${pcp}\"" > "${T}"/99postgresql + + doenvd "${T}"/99postgresql } pkg_postinst() {