1 |
commit: a691ab805f0def040fddb22957775502b445fc44 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 17 14:49:07 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 17 14:49:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a691ab80 |
7 |
|
8 |
app-shells/bash: Move bash-4.3 into its own slot. |
9 |
|
10 |
Removed SLOT="0" version. |
11 |
|
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
13 |
|
14 |
...sh-4.3_p48-r1.ebuild => bash-4.3_p48-r2.ebuild} | 86 +++------------------- |
15 |
1 file changed, 9 insertions(+), 77 deletions(-) |
16 |
|
17 |
diff --git a/app-shells/bash/bash-4.3_p48-r1.ebuild b/app-shells/bash/bash-4.3_p48-r2.ebuild |
18 |
similarity index 73% |
19 |
rename from app-shells/bash/bash-4.3_p48-r1.ebuild |
20 |
rename to app-shells/bash/bash-4.3_p48-r2.ebuild |
21 |
index 8de4b6e1701..059d894bdfa 100644 |
22 |
--- a/app-shells/bash/bash-4.3_p48-r1.ebuild |
23 |
+++ b/app-shells/bash/bash-4.3_p48-r2.ebuild |
24 |
@@ -36,7 +36,7 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" |
25 |
[[ ${PV} == *_rc* ]] && SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" |
26 |
|
27 |
LICENSE="GPL-3" |
28 |
-SLOT="0" |
29 |
+SLOT="${MY_PV}" |
30 |
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
31 |
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline" |
32 |
|
33 |
@@ -170,83 +170,15 @@ src_compile() { |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
- local d f |
38 |
- |
39 |
- default |
40 |
- |
41 |
- dodir /bin |
42 |
- mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die |
43 |
- dosym bash /bin/rbash |
44 |
- |
45 |
- insinto /etc/bash |
46 |
- doins "${FILESDIR}"/bash_logout |
47 |
- doins "${FILESDIR}"/bashrc |
48 |
- keepdir /etc/bash/bashrc.d |
49 |
- insinto /etc/skel |
50 |
- for f in bash{_logout,_profile,rc} ; do |
51 |
- newins "${FILESDIR}"/dot-${f} .${f} |
52 |
- done |
53 |
- |
54 |
- local sed_args=( |
55 |
- -e "s:#${USERLAND}#@::" |
56 |
- -e '/#@/d' |
57 |
- ) |
58 |
- if ! use readline ; then |
59 |
- sed_args+=( #432338 |
60 |
- -e '/^shopt -s histappend/s:^:#:' |
61 |
- -e 's:use_color=true:use_color=false:' |
62 |
- ) |
63 |
- fi |
64 |
- sed -i \ |
65 |
- "${sed_args[@]}" \ |
66 |
- "${ED}"/etc/skel/.bashrc \ |
67 |
- "${ED}"/etc/bash/bashrc || die |
68 |
+ into / |
69 |
+ newbin bash bash-${SLOT} |
70 |
|
71 |
- if use plugins ; then |
72 |
- exeinto /usr/$(get_libdir)/bash |
73 |
- doexe $(echo examples/loadables/*.o | sed 's:\.o::g') |
74 |
- insinto /usr/include/bash-plugins |
75 |
- doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h} |
76 |
- fi |
77 |
+ newman doc/bash.1 bash-${SLOT}.1 |
78 |
+ newman doc/builtins.1 builtins-${SLOT}.1 |
79 |
|
80 |
- if use examples ; then |
81 |
- for d in examples/{functions,misc,scripts,startup-files} ; do |
82 |
- exeinto /usr/share/doc/${PF}/${d} |
83 |
- insinto /usr/share/doc/${PF}/${d} |
84 |
- for f in ${d}/* ; do |
85 |
- if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then |
86 |
- doexe ${f} |
87 |
- else |
88 |
- doins ${f} |
89 |
- fi |
90 |
- done |
91 |
- done |
92 |
- fi |
93 |
- |
94 |
- doman doc/*.1 |
95 |
- newdoc CWRU/changelog ChangeLog |
96 |
- dosym bash.info /usr/share/info/bashref.info |
97 |
-} |
98 |
+ insinto /usr/share/info |
99 |
+ newins doc/bashref.info bash-${SLOT}.info |
100 |
+ dosym bash-${SLOT}.info /usr/share/info/bashref-${SLOT}.info |
101 |
|
102 |
-pkg_preinst() { |
103 |
- if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then |
104 |
- mkdir -p "${EROOT}"/etc/bash |
105 |
- mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/ |
106 |
- fi |
107 |
- |
108 |
- if [[ -L ${EROOT}/bin/sh ]] ; then |
109 |
- # rewrite the symlink to ensure that its mtime changes. having /bin/sh |
110 |
- # missing even temporarily causes a fatal error with paludis. |
111 |
- local target=$(readlink "${EROOT}"/bin/sh) |
112 |
- local tmp=$(emktemp "${EROOT}"/bin) |
113 |
- ln -sf "${target}" "${tmp}" |
114 |
- mv -f "${tmp}" "${EROOT}"/bin/sh |
115 |
- fi |
116 |
-} |
117 |
- |
118 |
-pkg_postinst() { |
119 |
- # If /bin/sh does not exist, provide it |
120 |
- if [[ ! -e ${EROOT}/bin/sh ]] ; then |
121 |
- ln -sf bash "${EROOT}"/bin/sh |
122 |
- fi |
123 |
+ dodoc README NEWS AUTHORS CHANGES COMPAT Y2K doc/FAQ doc/INTRO |
124 |
} |