diff options
Diffstat (limited to 'dev-db/postgresql/postgresql-9999.ebuild')
| -rw-r--r-- | dev-db/postgresql/postgresql-9999.ebuild | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/dev-db/postgresql/postgresql-9999.ebuild b/dev-db/postgresql/postgresql-9999.ebuild index cbc1266c2067..0245d247103d 100644 --- a/dev-db/postgresql/postgresql-9999.ebuild +++ b/dev-db/postgresql/postgresql-9999.ebuild @@ -11,7 +11,7 @@ inherit eutils flag-o-matic git-2 linux-info multilib pam prefix \ KEYWORDS="" # Bump when rc released. -SLOT="10" +SLOT="11" EGIT_REPO_URI="git://git.postgresql.org/git/postgresql.git" @@ -207,14 +207,28 @@ src_install() { "/usr/bin/${bn}${SLOT/.}tmp" done - local linkname mansec - for mansec in {1,3,7} ; do - for f in "${ED}"/usr/share/postgresql-${SLOT}/man/man${mansec}/* ; do + # Create slot specific man pages + local bn f mansec slotted_name + for mansec in 1 3 7 ; do + local rel_manpath="../../postgresql-${SLOT}/man/man${mansec}" + + mkdir -p "${ED}"/usr/share/man/man${mansec} || die "making man dir" + pushd "${ED}"/usr/share/man/man${mansec} > /dev/null + + for f in "${ED}/usr/share/postgresql-${SLOT}/man/man${mansec}"/* ; do bn=$(basename "${f}") - linkname=${bn/%.${mansec}/${SLOT/.}.${mansec}} - dosym ../../postgresql-${SLOT}/man/man${mansec}/$bn \ - /usr/share/man/man${mansec}/${linkname} + slotted_name=${bn%.${mansec}}${SLOT}.${mansec} + case ${bn} in + TABLE.7|WITH.7) + echo ".so ${rel_manpath}/SELECT.7" > ${slotted_name} + ;; + *) + echo ".so ${rel_manpath}/${bn}" > ${slotted_name} + ;; + esac done + + popd > /dev/null done if use prefix ; then |
