commit:     a691ab805f0def040fddb22957775502b445fc44
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 17 14:49:07 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Sep 17 14:49:26 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a691ab80

app-shells/bash: Move bash-4.3 into its own slot.

Removed SLOT="0" version.

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 ...sh-4.3_p48-r1.ebuild => bash-4.3_p48-r2.ebuild} | 86 +++-------------------
 1 file changed, 9 insertions(+), 77 deletions(-)

diff --git a/app-shells/bash/bash-4.3_p48-r1.ebuild 
b/app-shells/bash/bash-4.3_p48-r2.ebuild
similarity index 73%
rename from app-shells/bash/bash-4.3_p48-r1.ebuild
rename to app-shells/bash/bash-4.3_p48-r2.ebuild
index 8de4b6e1701..059d894bdfa 100644
--- a/app-shells/bash/bash-4.3_p48-r1.ebuild
+++ b/app-shells/bash/bash-4.3_p48-r2.ebuild
@@ -36,7 +36,7 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 [[ ${PV} == *_rc* ]] && SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz";
 
 LICENSE="GPL-3"
-SLOT="0"
+SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~amd64-fbsd ~x86-fbsd"
 IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline"
 
@@ -170,83 +170,15 @@ src_compile() {
 }
 
 src_install() {
-       local d f
-
-       default
-
-       dodir /bin
-       mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
-       dosym bash /bin/rbash
-
-       insinto /etc/bash
-       doins "${FILESDIR}"/bash_logout
-       doins "${FILESDIR}"/bashrc
-       keepdir /etc/bash/bashrc.d
-       insinto /etc/skel
-       for f in bash{_logout,_profile,rc} ; do
-               newins "${FILESDIR}"/dot-${f} .${f}
-       done
-
-       local sed_args=(
-               -e "s:#${USERLAND}#@::"
-               -e '/#@/d'
-       )
-       if ! use readline ; then
-               sed_args+=( #432338
-                       -e '/^shopt -s histappend/s:^:#:'
-                       -e 's:use_color=true:use_color=false:'
-               )
-       fi
-       sed -i \
-               "${sed_args[@]}" \
-               "${ED}"/etc/skel/.bashrc \
-               "${ED}"/etc/bash/bashrc || die
+       into /
+       newbin bash bash-${SLOT}
 
-       if use plugins ; then
-               exeinto /usr/$(get_libdir)/bash
-               doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
-               insinto /usr/include/bash-plugins
-               doins *.h builtins/*.h include/*.h 
lib/{glob/glob.h,tilde/tilde.h}
-       fi
+       newman doc/bash.1 bash-${SLOT}.1
+       newman doc/builtins.1 builtins-${SLOT}.1
 
-       if use examples ; then
-               for d in examples/{functions,misc,scripts,startup-files} ; do
-                       exeinto /usr/share/doc/${PF}/${d}
-                       insinto /usr/share/doc/${PF}/${d}
-                       for f in ${d}/* ; do
-                               if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} 
!= *README ]] ; then
-                                       doexe ${f}
-                               else
-                                       doins ${f}
-                               fi
-                       done
-               done
-       fi
-
-       doman doc/*.1
-       newdoc CWRU/changelog ChangeLog
-       dosym bash.info /usr/share/info/bashref.info
-}
+       insinto /usr/share/info
+       newins doc/bashref.info bash-${SLOT}.info
+       dosym bash-${SLOT}.info /usr/share/info/bashref-${SLOT}.info
 
-pkg_preinst() {
-       if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
-               mkdir -p "${EROOT}"/etc/bash
-               mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
-       fi
-
-       if [[ -L ${EROOT}/bin/sh ]] ; then
-               # rewrite the symlink to ensure that its mtime changes. having 
/bin/sh
-               # missing even temporarily causes a fatal error with paludis.
-               local target=$(readlink "${EROOT}"/bin/sh)
-               local tmp=$(emktemp "${EROOT}"/bin)
-               ln -sf "${target}" "${tmp}"
-               mv -f "${tmp}" "${EROOT}"/bin/sh
-       fi
-}
-
-pkg_postinst() {
-       # If /bin/sh does not exist, provide it
-       if [[ ! -e ${EROOT}/bin/sh ]] ; then
-               ln -sf bash "${EROOT}"/bin/sh
-       fi
+       dodoc README NEWS AUTHORS CHANGES COMPAT Y2K doc/FAQ doc/INTRO
 }

Reply via email to